drm/nouveau/top/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:34 +0000 (15:01 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/top/gk104.c

index 4a2d413f12b92bc83f7690240fc9082b08f78f42..777ba68f4a0f8bb3a410e82b3c7098d51f41aa77 100644 (file)
@@ -2400,6 +2400,7 @@ nv140_chipset = {
        .bios = nvkm_bios_new,
        .devinit = gv100_devinit_new,
        .pci = gp100_pci_new,
+       .top = gk104_top_new,
 };
 
 static int
index fea4957291da26084745271c053b02c4da22eb82..4f1f3e890650601a4514e2aaa84805d346bb8d1b 100644 (file)
@@ -48,7 +48,8 @@ gk104_top_oneinit(struct nvkm_top *top)
                case 0x00000001: /* DATA */
                        inst        = (data & 0x3c000000) >> 26;
                        info->addr  = (data & 0x00fff000);
-                       info->fault = (data & 0x000000f8) >> 3;
+                       if (data & 0x00000004)
+                               info->fault = (data & 0x000003f8) >> 3;
                        break;
                case 0x00000002: /* ENUM */
                        if (data & 0x00000020)