Skip to contentSkip to conversation

drm/nv41/pm: Write to correct registers on nv41_fan_set()

PATCH In review Emil Velikov 2 participants 2 messages Aug 4, 2011 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/nv41/pm: Write to correct registers on nv41_fan_set()

---
 drivers/gpu/drm/nouveau/nv40_pm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/nouveau/nv40_pm.c +2 -2
index c5ad31c..aa9fded 100644
@@ -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;
 }
Signature · 1 line
1.7.6

A message that is not in the archive (sent off-list or not yet received): 1312482164-11599-1-git-send-email-emil.l.velikov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#2 lore raw
Quoted 4 lines · Emil Velikov
---
 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.

Quoted 15 lines
drivers/gpu/drm/nouveau/nv40_pm.c +2 -2
index c5ad31c..aa9fded 100644
@@ -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;
 }