drm/nouveau/fifo/gk104: don't attempt recovery of unknown mmu engines
authorBen Skeggs <bskeggs@redhat.com>
Fri, 11 Mar 2016 03:09:28 +0000 (13:09 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 14 Mar 2016 00:13:40 +0000 (10:13 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c

index a46971a541690ac6e30a9f45a13bca2a69ca5a3b..4529adc7835b44db090b6484254d7286393385d5 100644 (file)
@@ -399,7 +399,7 @@ gk104_fifo_intr_fault(struct gk104_fifo *fifo, int unit)
                snprintf(gpcid, sizeof(gpcid), "GPC%d/", gpc);
        }
 
-       if (eu) {
+       if (eu && eu->data2) {
                switch (eu->data2) {
                case NVKM_SUBDEV_BAR:
                        nvkm_mask(device, 0x001704, 0x00000000, 0x00000000);