aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2014-01-17 00:13:05 -0500
committerBen Skeggs <bskeggs@redhat.com>2014-01-22 22:39:17 -0500
commitea7dce90105ff2eb81958498d6d9f30a0753bbe8 (patch)
tree9daabd610f9fc7430ab25383adda9c1071c599a6
parentf750ecc95068b2b492819ca15182fc4c632b4cca (diff)
drm/nv50/gr: print mpc trap name when it's not an mp trap
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
-rw-r--r--drivers/gpu/drm/nouveau/core/engine/graph/nv50.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/nv50.c b/drivers/gpu/drm/nouveau/core/engine/graph/nv50.c
index 0f8d18ae6802..30ed19c52e05 100644
--- a/drivers/gpu/drm/nouveau/core/engine/graph/nv50.c
+++ b/drivers/gpu/drm/nouveau/core/engine/graph/nv50.c
@@ -315,6 +315,20 @@ static const struct nouveau_bitfield nv50_mp_exec_errors[] = {
315 {} 315 {}
316}; 316};
317 317
318static const struct nouveau_bitfield nv50_mpc_traps[] = {
319 { 0x0000001, "LOCAL_LIMIT_READ" },
320 { 0x0000010, "LOCAL_LIMIT_WRITE" },
321 { 0x0000040, "STACK_LIMIT" },
322 { 0x0000100, "GLOBAL_LIMIT_READ" },
323 { 0x0001000, "GLOBAL_LIMIT_WRITE" },
324 { 0x0010000, "MP0" },
325 { 0x0020000, "MP1" },
326 { 0x0040000, "GLOBAL_LIMIT_RED" },
327 { 0x0400000, "GLOBAL_LIMIT_ATOM" },
328 { 0x4000000, "MP2" },
329 {}
330};
331
318static const struct nouveau_bitfield nv50_graph_trap_m2mf[] = { 332static const struct nouveau_bitfield nv50_graph_trap_m2mf[] = {
319 { 0x00000001, "NOTIFY" }, 333 { 0x00000001, "NOTIFY" },
320 { 0x00000002, "IN" }, 334 { 0x00000002, "IN" },
@@ -524,6 +538,12 @@ nv50_priv_tp_trap(struct nv50_graph_priv *priv, int type, u32 ustatus_old,
524 nv50_priv_mp_trap(priv, i, display); 538 nv50_priv_mp_trap(priv, i, display);
525 ustatus &= ~0x04030000; 539 ustatus &= ~0x04030000;
526 } 540 }
541 if (ustatus && display) {
542 nv_error("%s - TP%d:", name, i);
543 nouveau_bitfield_print(nv50_mpc_traps, ustatus);
544 pr_cont("\n");
545 ustatus = 0;
546 }
527 break; 547 break;
528 case 8: /* PROP error */ 548 case 8: /* PROP error */
529 if (display) 549 if (display)