Commit 3e48e836 authored by Chris Wilson's avatar Chris Wilson

drm/i915/gt: Include context status in debug dumps

This may be useful to identify contexts that are running even though
they are supposed to be closed or banned.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarMika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200610154046.22449-1-chris@chris-wilson.co.uk
parent 174b976d
...@@ -1421,9 +1421,11 @@ static void intel_engine_print_registers(struct intel_engine_cs *engine, ...@@ -1421,9 +1421,11 @@ static void intel_engine_print_registers(struct intel_engine_cs *engine,
int len; int len;
len = scnprintf(hdr, sizeof(hdr), len = scnprintf(hdr, sizeof(hdr),
"\t\tActive[%d]: ccid:%08x, ", "\t\tActive[%d]: ccid:%08x%s%s, ",
(int)(port - execlists->active), (int)(port - execlists->active),
rq->context->lrc.ccid); rq->context->lrc.ccid,
intel_context_is_closed(rq->context) ? "!" : "",
intel_context_is_banned(rq->context) ? "*" : "");
len += print_ring(hdr + len, sizeof(hdr) - len, rq); len += print_ring(hdr + len, sizeof(hdr) - len, rq);
scnprintf(hdr + len, sizeof(hdr) - len, "rq: "); scnprintf(hdr + len, sizeof(hdr) - len, "rq: ");
print_request(m, rq, hdr); print_request(m, rq, hdr);
...@@ -1433,9 +1435,11 @@ static void intel_engine_print_registers(struct intel_engine_cs *engine, ...@@ -1433,9 +1435,11 @@ static void intel_engine_print_registers(struct intel_engine_cs *engine,
int len; int len;
len = scnprintf(hdr, sizeof(hdr), len = scnprintf(hdr, sizeof(hdr),
"\t\tPending[%d]: ccid:%08x, ", "\t\tPending[%d]: ccid:%08x%s%s, ",
(int)(port - execlists->pending), (int)(port - execlists->pending),
rq->context->lrc.ccid); rq->context->lrc.ccid,
intel_context_is_closed(rq->context) ? "!" : "",
intel_context_is_banned(rq->context) ? "*" : "");
len += print_ring(hdr + len, sizeof(hdr) - len, rq); len += print_ring(hdr + len, sizeof(hdr) - len, rq);
scnprintf(hdr + len, sizeof(hdr) - len, "rq: "); scnprintf(hdr + len, sizeof(hdr) - len, "rq: ");
print_request(m, rq, hdr); print_request(m, rq, hdr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment