All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/radeon/kms: fix thermal sensor reporting on rv6xx
@ 2010-11-08 18:39 Alex Deucher
  2010-11-08 23:40 ` Alex Deucher
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Deucher @ 2010-11-08 18:39 UTC (permalink / raw)
  To: airlied, dri-devel

Temperature is not shifted as on newer asics.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
---
 drivers/gpu/drm/radeon/r600.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c
index 951af00..bd69299 100644
--- a/drivers/gpu/drm/radeon/r600.c
+++ b/drivers/gpu/drm/radeon/r600.c
@@ -106,14 +106,8 @@ u32 rv6xx_get_temp(struct radeon_device *rdev)
 {
 	u32 temp = (RREG32(CG_THERMAL_STATUS) & ASIC_T_MASK) >>
 		ASIC_T_SHIFT;
-	u32 actual_temp = 0;
 
-	if ((temp >> 7) & 1)
-		actual_temp = 0;
-	else
-		actual_temp = (temp >> 1) & 0xff;
-
-	return actual_temp * 1000;
+	return temp * 1000;
 }
 
 void r600_pm_get_dynpm_state(struct radeon_device *rdev)
-- 
1.7.1.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/radeon/kms: fix thermal sensor reporting on rv6xx
  2010-11-08 18:39 [PATCH] drm/radeon/kms: fix thermal sensor reporting on rv6xx Alex Deucher
@ 2010-11-08 23:40 ` Alex Deucher
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Deucher @ 2010-11-08 23:40 UTC (permalink / raw)
  To: airlied, dri-devel

On Mon, Nov 8, 2010 at 1:39 PM, Alex Deucher <alexdeucher@gmail.com> wrote:
> Temperature is not shifted as on newer asics.
>
> Signed-off-by: Alex Deucher <alexdeucher@gmail.com>

Should be CC'ed to stable as well.

Alex

> ---
>  drivers/gpu/drm/radeon/r600.c |    8 +-------
>  1 files changed, 1 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c
> index 951af00..bd69299 100644
> --- a/drivers/gpu/drm/radeon/r600.c
> +++ b/drivers/gpu/drm/radeon/r600.c
> @@ -106,14 +106,8 @@ u32 rv6xx_get_temp(struct radeon_device *rdev)
>  {
>        u32 temp = (RREG32(CG_THERMAL_STATUS) & ASIC_T_MASK) >>
>                ASIC_T_SHIFT;
> -       u32 actual_temp = 0;
>
> -       if ((temp >> 7) & 1)
> -               actual_temp = 0;
> -       else
> -               actual_temp = (temp >> 1) & 0xff;
> -
> -       return actual_temp * 1000;
> +       return temp * 1000;
>  }
>
>  void r600_pm_get_dynpm_state(struct radeon_device *rdev)
> --
> 1.7.1.1
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-08 23:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-08 18:39 [PATCH] drm/radeon/kms: fix thermal sensor reporting on rv6xx Alex Deucher
2010-11-08 23:40 ` Alex Deucher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.