diff options
author | Mika Kuoppala <mika.kuoppala@linux.intel.com> | 2013-05-02 16:48:08 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-05-06 11:21:51 +0200 |
commit | 0e50e96bf2d89c3415cb68aead301f485938f1ca (patch) | |
tree | 236c4dc86081d2e82436f4900569b915bf07dd6d /drivers/gpu/drm/i915/i915_drv.h | |
parent | 112522f6789581824903f6f72082b5b841a7f0f9 (diff) | |
download | lwn-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.h | 3 |
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; |