summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_debugfs.c
diff options
context:
space:
mode:
authorChris Wilson2016-04-28 10:56:51 +0200
committerChris Wilson2016-04-28 13:17:32 +0200
commit5d1808ecbc370ce6a083947f8866c8e857671914 (patch)
treea126fde5d6f0266ec212e7b6b32b882333bbdfa3 /drivers/gpu/drm/i915/i915_debugfs.c
parentdrm/i915: Update execlists context descriptor format commentary (diff)
downloadkernel-qcow2-linux-5d1808ecbc370ce6a083947f8866c8e857671914.tar.gz
kernel-qcow2-linux-5d1808ecbc370ce6a083947f8866c8e857671914.tar.xz
kernel-qcow2-linux-5d1808ecbc370ce6a083947f8866c8e857671914.zip
drm/i915: Assign every HW context a unique ID
The hardware tracks contexts and expects all live contexts (those active on the hardware) to have a unique identifier. This is used by the hardware to assign pagefaults and the like to a particular context. v2: Reorder to make sure ctx->link is not left dangling if the assignment of a hw_id fails (Mika). v3: We have 21bits of context space, not 20. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1461833819-3991-17-git-send-email-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_debugfs.c')
-rw-r--r--drivers/gpu/drm/i915/i915_debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index e1bc5ec04a92..e35d0cc16e03 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -2001,7 +2001,7 @@ static int i915_context_status(struct seq_file *m, void *unused)
ctx->legacy_hw_ctx.rcs_state == NULL)
continue;
- seq_puts(m, "HW context ");
+ seq_printf(m, "HW context %u ", ctx->hw_id);
describe_ctx(m, ctx);
if (ctx == dev_priv->kernel_context)
seq_printf(m, "(kernel context) ");