1 From b2298fd27127f872881048fd37cb9217a648ae06 Mon Sep 17 00:00:00 2001
2 From: Alex Deucher <alexdeucher@gmail.com>
3 Date: Mon, 8 Nov 2010 18:39:18 +0000
4 Subject: drm/radeon/kms: fix thermal sensor reporting on rv6xx
6 From: Alex Deucher <alexdeucher@gmail.com>
8 commit b2298fd27127f872881048fd37cb9217a648ae06 upstream.
10 Temperature is not shifted as on newer asics.
12 Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
13 Signed-off-by: Dave Airlie <airlied@redhat.com>
14 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 drivers/gpu/drm/radeon/r600.c | 8 +-------
18 1 file changed, 1 insertion(+), 7 deletions(-)
20 --- a/drivers/gpu/drm/radeon/r600.c
21 +++ b/drivers/gpu/drm/radeon/r600.c
22 @@ -97,14 +97,8 @@ u32 rv6xx_get_temp(struct radeon_device
24 u32 temp = (RREG32(CG_THERMAL_STATUS) & ASIC_T_MASK) >>
26 - u32 actual_temp = 0;
28 - if ((temp >> 7) & 1)
31 - actual_temp = (temp >> 1) & 0xff;
33 - return actual_temp * 1000;
37 void r600_pm_get_dynpm_state(struct radeon_device *rdev)