From: Le Ma Date: Fri, 11 Oct 2019 11:00:00 +0000 (+0800) Subject: drm/amd/powerplay: add BACO platformCaps for VEGA20 X-Git-Tag: for-linus-20191205~71^2~26^2~89 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=c0cff9e43edc68e7efe531bce94a772a7103226c;p=linux-2.6-block.git drm/amd/powerplay: add BACO platformCaps for VEGA20 BACO reset is needed for RAS recovery. Signed-off-by: Le Ma Reviewed-by: Alex Deucher Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c index 6629c475fe5d..3d3c647a63ff 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c @@ -182,6 +182,9 @@ static int vega20_set_features_platform_caps(struct pp_hwmgr *hwmgr) phm_cap_set(hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_TablelessHardwareInterface); + phm_cap_set(hwmgr->platform_descriptor.platformCaps, + PHM_PlatformCaps_BACO); + phm_cap_set(hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_EnableSMU7ThermalManagement);