diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-10-28 13:58:54 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-10-28 20:53:55 +0100 |
commit | 562f5d45508bc376cf537d414cd944cff5e453f7 (patch) | |
tree | d9d5334b4be5f2bbeaa8d337284aa2f78bd1ba48 /drivers/gpu/drm/i915/i915_drv.h | |
parent | drm/i915: Move the global sync optimisation to the timeline (diff) | |
download | linux-562f5d45508bc376cf537d414cd944cff5e453f7.tar.gz linux-562f5d45508bc376cf537d414cd944cff5e453f7.tar.bz2 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.h | 1 |
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; |