aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_perf.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-08-15 02:13:34 -0400
committerBen Skeggs <bskeggs@redhat.com>2011-12-21 04:01:11 -0500
commit3f8e11e4b606a050007cd1020d59e7b74c68d088 (patch)
tree4d550be304e3229af2228bcd9469f34057395dbb /drivers/gpu/drm/nouveau/nouveau_perf.c
parent11b7d895216f7f954c6cfa0c23b76dccb7a890c1 (diff)
drm/nv50/pm: mostly nailed down fan pwm frequency selection
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_perf.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_perf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_perf.c b/drivers/gpu/drm/nouveau/nouveau_perf.c
index 3d20dca08fe8..6ea57c91162b 100644
--- a/drivers/gpu/drm/nouveau/nouveau_perf.c
+++ b/drivers/gpu/drm/nouveau/nouveau_perf.c
@@ -206,13 +206,12 @@ nouveau_perf_init(struct drm_device *dev)
206 if (version < 0x40) { 206 if (version < 0x40) {
207 recordlen = perf[3] + (perf[4] * perf[5]); 207 recordlen = perf[3] + (perf[4] * perf[5]);
208 entries = perf[2]; 208 entries = perf[2];
209
210 pm->pwm_divisor = ROM16(perf[6]);
209 } else { 211 } else {
210 recordlen = perf[2] + (perf[3] * perf[4]); 212 recordlen = perf[2] + (perf[3] * perf[4]);
211 entries = perf[5]; 213 entries = perf[5];
212 } 214 }
213
214 if (version < 0x30)
215 pm->pwm_divisor = ROM16(perf[6]);
216 } else { 215 } else {
217 if (bios->data[bios->offset + 6] < 0x25) { 216 if (bios->data[bios->offset + 6] < 0x25) {
218 legacy_perf_init(dev); 217 legacy_perf_init(dev);