drm/amdgpu/powerplay/vega10: enable AVFS control via ppfeaturemask
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 10 Aug 2018 18:21:09 +0000 (13:21 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:10:18 +0000 (11:10 -0500)
Allow the user to disable AFVS via ppfeaturemask for debugging.

Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c

index 704b237ecf7051da521d7d955471d57473ddca57..ca9be583fb62439a9c2686b93c743c5089baebfc 100644 (file)
@@ -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;