Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307515
b: refs/heads/master
c: 30e5339
h: refs/heads/master
i:
  307513: b4195b0
  307511: 2c4554f
v: v3
  • Loading branch information
Ben Skeggs committed May 24, 2012
1 parent 14925f8 commit 557fbc2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 27740383dde9e1f309a74cf39d96f3223dbf281c
refs/heads/master: 30e533900ea74a3499dad5c4660ebaf80b50d152
24 changes: 23 additions & 1 deletion trunk/drivers/gpu/drm/nouveau/nva3_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,34 @@ mclk_clock_set(struct nouveau_mem_exec_func *exec)
static void
mclk_timing_set(struct nouveau_mem_exec_func *exec)
{
struct drm_device *dev = exec->dev;
struct nva3_pm_state *info = exec->priv;
struct nouveau_pm_level *perflvl = info->perflvl;
u8 *ramcfg, ver, len;
int i;

for (i = 0; i < 9; i++)
nv_wr32(exec->dev, 0x100220 + (i * 4), perflvl->timing.reg[i]);
nv_wr32(dev, 0x100220 + (i * 4), perflvl->timing.reg[i]);

ramcfg = nouveau_perf_ramcfg(dev, perflvl->memory, &ver, &len);
if (ramcfg) {
u32 unk714 = nv_rd32(dev, 0x100714) & ~0xf0000010;
u32 unk718 = nv_rd32(dev, 0x100718) & ~0x00000100;
u32 unk71c = nv_rd32(dev, 0x10071c) & ~0x00000100;
if ( (ramcfg[2] & 0x20))
unk714 |= 0xf0000000;
if (!(ramcfg[2] & 0x04))
unk714 |= 0x00000010;
nv_wr32(dev, 0x100714, unk714);

if (ramcfg[2] & 0x01)
unk71c |= 0x00000100;
nv_wr32(dev, 0x10071c, unk71c);

if (ramcfg[2] & 0x02)
unk718 |= 0x00000100;
nv_wr32(dev, 0x100718, unk718);
}
}

static void
Expand Down

0 comments on commit 557fbc2

Please sign in to comment.