Skip to content

Commit ac3e095

Browse files
Oleg Chernovskiygregkh
authored andcommitted
drm/radeon: Add missing lines to ci_set_thermal_temperature_range
commit 6bce8d9 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 76325a9 commit ac3e095

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/gpu/drm/radeon/ci_dpm.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,9 @@ static int ci_set_thermal_temperature_range(struct radeon_device *rdev,
869869
WREG32_SMC(CG_THERMAL_CTRL, tmp);
870870
#endif
871871

872+
rdev->pm.dpm.thermal.min_temp = low_temp;
873+
rdev->pm.dpm.thermal.max_temp = high_temp;
874+
872875
return 0;
873876
}
874877

0 commit comments

Comments
 (0)