drm/nouveau/gr/gf100-: properly ack all FECS error interrupts
authorBen Skeggs <bskeggs@redhat.com>
Fri, 9 Dec 2016 08:02:17 +0000 (18:02 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 13 Dec 2016 01:38:51 +0000 (11:38 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c

index 60a1b5c8214be5671e3f0baf3f55a7981bbc1184..6a8551053b47eb77469f5bd19cfdc699cc3e5adf 100644 (file)
@@ -1270,12 +1270,11 @@ gf100_gr_ctxctl_isr(struct gf100_gr *gr)
                        nvkm_error(subdev, "FECS MTHD subc %d class %04x "
                                           "mthd %04x data %08x\n",
                                   subc, class, mthd, data);
-
-                       nvkm_wr32(device, 0x409c20, 0x00000001);
-                       stat &= ~0x00000001;
                } else {
                        nvkm_error(subdev, "FECS ucode error %d\n", code);
                }
+               nvkm_wr32(device, 0x409c20, 0x00000001);
+               stat &= ~0x00000001;
        }
 
        if (stat & 0x00080000) {