summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorMika Kuoppala <mika.kuoppala@linux.intel.com>2013-05-02 16:48:08 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-05-06 11:21:51 +0200
commit0e50e96bf2d89c3415cb68aead301f485938f1ca (patch)
tree236c4dc86081d2e82436f4900569b915bf07dd6d /drivers/gpu/drm/i915/i915_drv.h
parent112522f6789581824903f6f72082b5b841a7f0f9 (diff)
downloadlwn-0e50e96bf2d89c3415cb68aead301f485938f1ca.tar.gz
lwn-0e50e96bf2d89c3415cb68aead301f485938f1ca.zip
drm/i915: add context into request struct
Storing context reference into request struct allows us to inspect context and its associated objects when requests are retired. Both ppgtt and arb robustness work will need this. Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com> Reviewed-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 3ac71db78e9e..ca0b0ce6e276 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -1270,6 +1270,9 @@ struct drm_i915_gem_request {
/** Postion in the ringbuffer of the end of the request */
u32 tail;
+ /** Context related to this request */
+ struct i915_hw_context *ctx;
+
/** Time at which this request was emitted, in jiffies. */
unsigned long emitted_jiffies;