Permalink
Browse files

and add hack to make voltages work on my card

  • Loading branch information...
1 parent 1780bb4 commit 0a86581ba8d6ea91b9f5766765bad06a4ab670b0 @mlankhorst mlankhorst committed Feb 2, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 pscnv/nouveau_mem.c
  2. +1 −1 pscnv/nouveau_volt.c
View
@@ -190,9 +190,9 @@ nvc0_mem_timing_calc(struct drm_device *dev, u32 freq,
t->reg[4] = (boot->reg[4] & 0xfff00fff) |
(e->tRRD&0x1f) << 15;
- NV_WARN(dev, "Entry %d: 290: %08x %08x %08x %08x\n", t->id,
+ NV_DEBUG(dev, "Entry %d: 290: %08x %08x %08x %08x\n", t->id,
t->reg[0], t->reg[1], t->reg[2], t->reg[3]);
- NV_WARN(dev, " 2a0: %08x\n", t->reg[4]);
+ NV_DEBUG(dev, " 2a0: %08x\n", t->reg[4]);
return 0;
}
View
@@ -79,7 +79,7 @@ nouveau_volt_vid_lookup(struct drm_device *dev, int voltage)
int i;
for (i = 0; i < volt->nr_level; i++) {
- if (volt->level[i].voltage == voltage)
+ if (volt->level[i].voltage == voltage || (volt->level[i].voltage == voltage + 500))
return volt->level[i].vid;
}

0 comments on commit 0a86581

Please sign in to comment.