All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/nv41/pm: Write to correct registers on nv41_fan_set()
@ 2011-08-04 18:22 Emil Velikov
       [not found] ` <1312482164-11599-1-git-send-email-emil.l.velikov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Emil Velikov @ 2011-08-04 18:22 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Signed-off-by: Emil Velikov <emil.l.velikov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 drivers/gpu/drm/nouveau/nv40_pm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nv40_pm.c b/drivers/gpu/drm/nouveau/nv40_pm.c
index c5ad31c..aa9fded 100644
--- a/drivers/gpu/drm/nouveau/nv40_pm.c
+++ b/drivers/gpu/drm/nouveau/nv40_pm.c
@@ -380,7 +380,7 @@ nv41_pm_fanspeed_set(struct drm_device *dev, int percent)
 	u32 divs = pm->pwm_divisor;
 	u32 duty = ((100 - percent) * divs) / 100;
 
-	nv_wr32(dev, 0x0010f8, divs);
-	nv_wr32(dev, 0x0010f4, duty | 0x80000000);
+	nv_wr32(dev, 0x0015f8, divs);
+	nv_wr32(dev, 0x0015f4, duty | 0x80000000);
 	return 0;
 }
-- 
1.7.6

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

* Re: [PATCH] drm/nv41/pm: Write to correct registers on nv41_fan_set()
       [not found] ` <1312482164-11599-1-git-send-email-emil.l.velikov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2011-08-04 23:08   ` Ben Skeggs
  0 siblings, 0 replies; 2+ messages in thread
From: Ben Skeggs @ 2011-08-04 23:08 UTC (permalink / raw)
  To: Emil Velikov; +Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On Thu, 2011-08-04 at 19:22 +0100, Emil Velikov wrote:
> Signed-off-by: Emil Velikov <emil.l.velikov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> ---
>  drivers/gpu/drm/nouveau/nv40_pm.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
Oops, copy+pasto probably.  I just rebased nouveau git onto 3.0-final,
and squashed the fix into the original commit.

Ben.
> 
> diff --git a/drivers/gpu/drm/nouveau/nv40_pm.c b/drivers/gpu/drm/nouveau/nv40_pm.c
> index c5ad31c..aa9fded 100644
> --- a/drivers/gpu/drm/nouveau/nv40_pm.c
> +++ b/drivers/gpu/drm/nouveau/nv40_pm.c
> @@ -380,7 +380,7 @@ nv41_pm_fanspeed_set(struct drm_device *dev, int percent)
>  	u32 divs = pm->pwm_divisor;
>  	u32 duty = ((100 - percent) * divs) / 100;
>  
> -	nv_wr32(dev, 0x0010f8, divs);
> -	nv_wr32(dev, 0x0010f4, duty | 0x80000000);
> +	nv_wr32(dev, 0x0015f8, divs);
> +	nv_wr32(dev, 0x0015f4, duty | 0x80000000);
>  	return 0;
>  }

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

end of thread, other threads:[~2011-08-04 23:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-04 18:22 [PATCH] drm/nv41/pm: Write to correct registers on nv41_fan_set() Emil Velikov
     [not found] ` <1312482164-11599-1-git-send-email-emil.l.velikov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-08-04 23:08   ` Ben Skeggs

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.