summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
diff options
context:
space:
mode:
authorAlex Deucher2018-08-10 20:21:09 +0200
committerAlex Deucher2018-08-27 18:10:18 +0200
commita19c3bea8ebea8f4ee740c56a6796dbcef692474 (patch)
treeab44e01578d8cf3ff777b65e95a2ba0f1b4ce3ca /drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
parentdrm/amdgpu/powerplay/smu7: enable AVFS control via ppfeaturemask (diff)
downloadkernel-qcow2-linux-a19c3bea8ebea8f4ee740c56a6796dbcef692474.tar.gz
kernel-qcow2-linux-a19c3bea8ebea8f4ee740c56a6796dbcef692474.tar.xz
kernel-qcow2-linux-a19c3bea8ebea8f4ee740c56a6796dbcef692474.zip
drm/amdgpu/powerplay/vega10: enable AVFS control via ppfeaturemask
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>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c')
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c3
1 files changed, 2 insertions, 1 deletions
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;