From: Alex Deucher Date: Fri, 10 Aug 2018 18:21:09 +0000 (-0500) Subject: drm/amdgpu/powerplay/vega10: enable AVFS control via ppfeaturemask X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a19c3bea8ebea8f4ee740c56a6796dbcef692474;p=openwrt%2Fstaging%2Fblogic.git drm/amdgpu/powerplay/vega10: enable AVFS control via ppfeaturemask Allow the user to disable AFVS via ppfeaturemask for debugging. Reviewed-by: Rex Zhu Reviewed-by: Huang Rui Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c index 704b237ecf70..ca9be583fb62 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c @@ -129,7 +129,8 @@ static void vega10_set_default_registry_data(struct pp_hwmgr *hwmgr) data->registry_data.thermal_support = 1; data->registry_data.fw_ctf_enabled = 1; - data->registry_data.avfs_support = 1; + data->registry_data.avfs_support = + hwmgr->feature_mask & PP_AVFS_MASK ? true : false; data->registry_data.led_dpm_enabled = 1; data->registry_data.vr0hot_enabled = 1;