drm/nouveau/bios/gv100: initial support
authorBen Skeggs <bskeggs@redhat.com>
Tue, 8 May 2018 10:39:47 +0000 (20:39 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 18 May 2018 05:01:31 +0000 (15:01 +1000)
No real surprises here so far.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowramin.c

index 3674db6a1a0f2d0ad6b99e890f8610e543e1d3d4..939452276a2db3ce679d24426e0f3db830a2999f 100644 (file)
@@ -2397,6 +2397,7 @@ nv13b_chipset = {
 static const struct nvkm_device_chip
 nv140_chipset = {
        .name = "GV100",
+       .bios = nvkm_bios_new,
        .pci = gp100_pci_new,
 };
 
index 0f537c22804cf2bed0e88bdf4eb064c8a4c74a87..3634cd0630b81ce4d697261ee0100f1ce4ec5b39 100644 (file)
@@ -78,7 +78,10 @@ pramin_init(struct nvkm_bios *bios, const char *name)
         * important as we don't want to be touching vram on an
         * uninitialised board
         */
-       addr = nvkm_rd32(device, 0x619f04);
+       if (device->card_type >= GV100)
+               addr = nvkm_rd32(device, 0x625f04);
+       else
+               addr = nvkm_rd32(device, 0x619f04);
        if (!(addr & 0x00000008)) {
                nvkm_debug(subdev, "... not enabled\n");
                return ERR_PTR(-ENODEV);