summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2016-07-28 17:36:35 +0800
committerAlex Deucher <alexander.deucher@amd.com>2016-08-08 11:32:53 -0400
commit66bc3f7f03d5457f6c65790319b636bbab53e3cd (patch)
tree0726c81b3b3f93f127d2a974f1ff0c05a7b044e6 /drivers/gpu/drm/amd/amdgpu/kv_dpm.c
parentaf223dfaf0d93e7a0ed75bed4f69e5db198b741e (diff)
downloadop-kernel-dev-66bc3f7f03d5457f6c65790319b636bbab53e3cd.zip
op-kernel-dev-66bc3f7f03d5457f6c65790319b636bbab53e3cd.tar.gz
drm/amdgpu: use modules parameter to ctrl deep sleep feature in dpm
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/kv_dpm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/kv_dpm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/kv_dpm.c b/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
index a845e88..f8618a3 100644
--- a/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
+++ b/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
@@ -2845,7 +2845,11 @@ static int kv_dpm_init(struct amdgpu_device *adev)
pi->caps_tcp_ramping = true;
}
- pi->caps_sclk_ds = true;
+ if (amdgpu_sclk_deep_sleep_en)
+ pi->caps_sclk_ds = true;
+ else
+ pi->caps_sclk_ds = false;
+
pi->enable_auto_thermal_throttling = true;
pi->disable_nb_ps3_in_battery = false;
if (amdgpu_bapm == 0)
OpenPOWER on IntegriCloud