|
@@ -377,9 +377,9 @@ static void error_print_request(struct drm_i915_error_state_buf *m,
|
|
if (!erq->seqno)
|
|
if (!erq->seqno)
|
|
return;
|
|
return;
|
|
|
|
|
|
- err_printf(m, "%s pid %d, ban score %d, seqno %8x:%08x, emitted %dms ago, head %08x, tail %08x\n",
|
|
|
|
|
|
+ err_printf(m, "%s pid %d, ban score %d, seqno %8x:%08x, prio %d, emitted %dms ago, head %08x, tail %08x\n",
|
|
prefix, erq->pid, erq->ban_score,
|
|
prefix, erq->pid, erq->ban_score,
|
|
- erq->context, erq->seqno,
|
|
|
|
|
|
+ erq->context, erq->seqno, erq->priority,
|
|
jiffies_to_msecs(jiffies - erq->jiffies),
|
|
jiffies_to_msecs(jiffies - erq->jiffies),
|
|
erq->head, erq->tail);
|
|
erq->head, erq->tail);
|
|
}
|
|
}
|
|
@@ -388,9 +388,9 @@ static void error_print_context(struct drm_i915_error_state_buf *m,
|
|
const char *header,
|
|
const char *header,
|
|
const struct drm_i915_error_context *ctx)
|
|
const struct drm_i915_error_context *ctx)
|
|
{
|
|
{
|
|
- err_printf(m, "%s%s[%d] user_handle %d hw_id %d, ban score %d guilty %d active %d\n",
|
|
|
|
|
|
+ err_printf(m, "%s%s[%d] user_handle %d hw_id %d, prio %d, ban score %d guilty %d active %d\n",
|
|
header, ctx->comm, ctx->pid, ctx->handle, ctx->hw_id,
|
|
header, ctx->comm, ctx->pid, ctx->handle, ctx->hw_id,
|
|
- ctx->ban_score, ctx->guilty, ctx->active);
|
|
|
|
|
|
+ ctx->priority, ctx->ban_score, ctx->guilty, ctx->active);
|
|
}
|
|
}
|
|
|
|
|
|
static void error_print_engine(struct drm_i915_error_state_buf *m,
|
|
static void error_print_engine(struct drm_i915_error_state_buf *m,
|
|
@@ -1271,6 +1271,7 @@ static void record_request(struct drm_i915_gem_request *request,
|
|
struct drm_i915_error_request *erq)
|
|
struct drm_i915_error_request *erq)
|
|
{
|
|
{
|
|
erq->context = request->ctx->hw_id;
|
|
erq->context = request->ctx->hw_id;
|
|
|
|
+ erq->priority = request->priotree.priority;
|
|
erq->ban_score = atomic_read(&request->ctx->ban_score);
|
|
erq->ban_score = atomic_read(&request->ctx->ban_score);
|
|
erq->seqno = request->global_seqno;
|
|
erq->seqno = request->global_seqno;
|
|
erq->jiffies = request->emitted_jiffies;
|
|
erq->jiffies = request->emitted_jiffies;
|
|
@@ -1364,6 +1365,7 @@ static void record_context(struct drm_i915_error_context *e,
|
|
|
|
|
|
e->handle = ctx->user_handle;
|
|
e->handle = ctx->user_handle;
|
|
e->hw_id = ctx->hw_id;
|
|
e->hw_id = ctx->hw_id;
|
|
|
|
+ e->priority = ctx->priority;
|
|
e->ban_score = atomic_read(&ctx->ban_score);
|
|
e->ban_score = atomic_read(&ctx->ban_score);
|
|
e->guilty = atomic_read(&ctx->guilty_count);
|
|
e->guilty = atomic_read(&ctx->guilty_count);
|
|
e->active = atomic_read(&ctx->active_count);
|
|
e->active = atomic_read(&ctx->active_count);
|