diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2016-07-28 05:36:35 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-08-08 11:32:53 -0400 |
commit | 66bc3f7f03d5457f6c65790319b636bbab53e3cd (patch) | |
tree | 0726c81b3b3f93f127d2a974f1ff0c05a7b044e6 /drivers/gpu/drm/amd/amdgpu/ci_dpm.c | |
parent | af223dfaf0d93e7a0ed75bed4f69e5db198b741e (diff) |
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/ci_dpm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c index e2f0e5d58d5c..7bd6174da476 100644 --- a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c | |||
@@ -5873,7 +5873,10 @@ static int ci_dpm_init(struct amdgpu_device *adev) | |||
5873 | pi->pcie_dpm_key_disabled = 0; | 5873 | pi->pcie_dpm_key_disabled = 0; |
5874 | pi->thermal_sclk_dpm_enabled = 0; | 5874 | pi->thermal_sclk_dpm_enabled = 0; |
5875 | 5875 | ||
5876 | pi->caps_sclk_ds = true; | 5876 | if (amdgpu_sclk_deep_sleep_en) |
5877 | pi->caps_sclk_ds = true; | ||
5878 | else | ||
5879 | pi->caps_sclk_ds = false; | ||
5877 | 5880 | ||
5878 | pi->mclk_strobe_mode_threshold = 40000; | 5881 | pi->mclk_strobe_mode_threshold = 40000; |
5879 | pi->mclk_stutter_mode_threshold = 40000; | 5882 | pi->mclk_stutter_mode_threshold = 40000; |