drm/gk104/fb/ram: skip table entry for mode we're already in
NVIDIA binary driver appears to, not sure if it's for a good reason, but grasping at straws for some GDDR5 reclocking issues here. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
50c4088313
commit
4cc6c3fe39
1 changed files with 12 additions and 11 deletions
|
@ -1173,18 +1173,19 @@ nve0_ram_init(struct nouveau_object *object)
|
||||||
|
|
||||||
cnt = nv_ro08(bios, data + 0x14); /* guess at count */
|
cnt = nv_ro08(bios, data + 0x14); /* guess at count */
|
||||||
data = nv_ro32(bios, data + 0x10); /* guess u32... */
|
data = nv_ro32(bios, data + 0x10); /* guess u32... */
|
||||||
save = nv_rd32(pfb, 0x10f65c);
|
save = nv_rd32(pfb, 0x10f65c) & 0x000000f0;
|
||||||
for (i = 0; i < cnt; i++) {
|
for (i = 0; i < cnt; i++, data += 4) {
|
||||||
nv_mask(pfb, 0x10f65c, 0x000000f0, i << 4);
|
if (i != save >> 4) {
|
||||||
nvbios_exec(&(struct nvbios_init) {
|
nv_mask(pfb, 0x10f65c, 0x000000f0, i << 4);
|
||||||
.subdev = nv_subdev(pfb),
|
nvbios_exec(&(struct nvbios_init) {
|
||||||
.bios = bios,
|
.subdev = nv_subdev(pfb),
|
||||||
.offset = nv_ro32(bios, data), /* guess u32 */
|
.bios = bios,
|
||||||
.execute = 1,
|
.offset = nv_ro32(bios, data),
|
||||||
});
|
.execute = 1,
|
||||||
data += 4;
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
nv_wr32(pfb, 0x10f65c, save);
|
nv_mask(pfb, 0x10f65c, 0x000000f0, save);
|
||||||
nv_mask(pfb, 0x10f584, 0x11000000, 0x00000000);
|
nv_mask(pfb, 0x10f584, 0x11000000, 0x00000000);
|
||||||
|
|
||||||
switch (ram->base.type) {
|
switch (ram->base.type) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue