Commit 4fdc6ba3 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/fb/ram/nv40-: use new devinit script interpreter entry-point

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 28c62976
...@@ -1424,12 +1424,7 @@ gk104_ram_init(struct nvkm_ram *ram) ...@@ -1424,12 +1424,7 @@ gk104_ram_init(struct nvkm_ram *ram)
for (i = 0; i < cnt; i++, data += 4) { for (i = 0; i < cnt; i++, data += 4) {
if (i != save >> 4) { if (i != save >> 4) {
nvkm_mask(device, 0x10f65c, 0x000000f0, i << 4); nvkm_mask(device, 0x10f65c, 0x000000f0, i << 4);
nvbios_exec(&(struct nvbios_init) { nvbios_init(subdev, nvbios_rd32(bios, data));
.subdev = subdev,
.bios = bios,
.offset = nvbios_rd32(bios, data),
.execute = 1,
});
} }
} }
nvkm_mask(device, 0x10f65c, 0x000000f0, save); nvkm_mask(device, 0x10f65c, 0x000000f0, save);
......
...@@ -59,12 +59,7 @@ gp100_ram_init(struct nvkm_ram *ram) ...@@ -59,12 +59,7 @@ gp100_ram_init(struct nvkm_ram *ram)
for (i = 0; i < cnt; i++, data += 4) { for (i = 0; i < cnt; i++, data += 4) {
if (i != save >> 4) { if (i != save >> 4) {
nvkm_mask(device, 0x9a065c, 0x000000f0, i << 4); nvkm_mask(device, 0x9a065c, 0x000000f0, i << 4);
nvbios_exec(&(struct nvbios_init) { nvbios_init(subdev, nvbios_rd32(bios, data));
.subdev = subdev,
.bios = bios,
.offset = nvbios_rd32(bios, data),
.execute = 1,
});
} }
} }
nvkm_mask(device, 0x9a065c, 0x000000f0, save); nvkm_mask(device, 0x9a065c, 0x000000f0, save);
......
...@@ -150,16 +150,8 @@ nv40_ram_prog(struct nvkm_ram *base) ...@@ -150,16 +150,8 @@ nv40_ram_prog(struct nvkm_ram *base)
udelay(100); udelay(100);
/* execute memory reset script from vbios */ /* execute memory reset script from vbios */
if (!bit_entry(bios, 'M', &M)) { if (!bit_entry(bios, 'M', &M))
struct nvbios_init init = { nvbios_init(subdev, nvbios_rd16(bios, M.offset + 0x00));
.subdev = subdev,
.bios = bios,
.offset = nvbios_rd16(bios, M.offset + 0x00),
.execute = 1,
};
nvbios_exec(&init);
}
/* make sure we're in vblank (hopefully the same one as before), and /* make sure we're in vblank (hopefully the same one as before), and
* then re-enable crtc memory access * then re-enable crtc memory access
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment