summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorOleg Chernovskiy <algonkvel@gmail.com>2014-08-11 21:53:46 +0400
committerJiri Slaby <jslaby@suse.cz>2014-10-13 14:25:36 +0200
commit501aa36c9ccd2bc12911fa2ba9d9136d70b02d40 (patch)
treec4ad21c8e9b2b8088471d0375a33dffab7db8f50 /drivers/gpu
parentc3dabf0cb5672e5931dc592f927991925c372d5b (diff)
downloadlwn-501aa36c9ccd2bc12911fa2ba9d9136d70b02d40.tar.gz
lwn-501aa36c9ccd2bc12911fa2ba9d9136d70b02d40.zip
drm/radeon: Add missing lines to ci_set_thermal_temperature_range
commit 6bce8d9772c1c606921a9c99e566eb14202f6669 upstream. Properly set the thermal min and max temp on CI. Otherwise, we end up setting the thermal ranges to 0 on resume and end up in the lowest power state. Signed-off-by: Oleg Chernovskiy <algonkvel@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/ci_dpm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/ci_dpm.c b/drivers/gpu/drm/radeon/ci_dpm.c
index 78e25d2e2fc4..95f4ab99c44b 100644
--- a/drivers/gpu/drm/radeon/ci_dpm.c
+++ b/drivers/gpu/drm/radeon/ci_dpm.c
@@ -820,6 +820,9 @@ static int ci_set_thermal_temperature_range(struct radeon_device *rdev,
WREG32_SMC(CG_THERMAL_CTRL, tmp);
#endif
+ rdev->pm.dpm.thermal.min_temp = low_temp;
+ rdev->pm.dpm.thermal.max_temp = high_temp;
+
return 0;
}