summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorChris Wilson2016-10-28 14:58:54 +0200
committerChris Wilson2016-10-28 21:53:55 +0200
commit562f5d45508bc376cf537d414cd944cff5e453f7 (patch)
treed9d5334b4be5f2bbeaa8d337284aa2f78bd1ba48 /drivers/gpu/drm/i915/i915_drv.h
parentdrm/i915: Move the global sync optimisation to the timeline (diff)
downloadkernel-qcow2-linux-562f5d45508bc376cf537d414cd944cff5e453f7.tar.gz
kernel-qcow2-linux-562f5d45508bc376cf537d414cd944cff5e453f7.tar.xz
kernel-qcow2-linux-562f5d45508bc376cf537d414cd944cff5e453f7.zip
drm/i915: Create a unique name for the context
This will be used for communicating issues with this context to userspace, so we want to identify the parent process and the individual context. Note that the name isn't quite unique, it makes the presumption of there only being a single device fd per process. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20161028125858.23563-31-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 6bf40276ace6..8b987f772d47 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -937,6 +937,7 @@ struct i915_gem_context {
struct drm_i915_file_private *file_priv;
struct i915_hw_ppgtt *ppgtt;
struct pid *pid;
+ const char *name;
struct i915_ctx_hang_stats hang_stats;