Skip to content

Commit

Permalink
drm/nouveau/gr/gf100-: handle GPC/TPC/MPC trap
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Dec 13, 2016
1 parent 1fe487d commit 64373e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,13 @@ gf100_gr_trap_tpc(struct gf100_gr *gr, int gpc, int tpc)
stat &= ~0x00000008;
}

if (stat & 0x00000010) {
u32 trap = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x0430));
nvkm_error(subdev, "GPC%d/TPC%d/MPC: %08x\n", gpc, tpc, trap);
nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x0430), 0xc0000000);
stat &= ~0x00000010;
}

if (stat) {
nvkm_error(subdev, "GPC%d/TPC%d/%08x: unknown\n", gpc, tpc, stat);
}
Expand Down

0 comments on commit 64373e4

Please sign in to comment.