aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorJohn Harrison <John.C.Harrison@Intel.com>2014-12-05 08:49:35 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-12-05 19:46:27 -0500
commit67e2937bf470718b3a7812de80c8a3dc2c2136f9 (patch)
tree1719c74de7132125cad965c6ef5415b39b4212f0 /drivers/gpu/drm/i915/i915_drv.h
parentaaeb1ba041aedf2b58cd1303fd5fa9cf9173fa9b (diff)
drm/i915: Add unique id to the request structure for debugging
For debugging purposes, it is useful to be able to uniquely identify a given request structure as it works its way through the system. This becomes especially tricky once the seqno value is lazily allocated as then the request has nothing but its pointer to identify it for much of its life. Change-Id: Ie76b2268b940467f4cdf5a4ba6f5a54cbb96445d For: VIZ-4377 Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Reviewed-by: Thomas Daniel <Thomas.Daniel@intel.com> 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 502a01bef1ed..95dfa2dd35b9 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -1787,6 +1787,8 @@ struct drm_i915_private {
1787 void (*stop_ring)(struct intel_engine_cs *ring); 1787 void (*stop_ring)(struct intel_engine_cs *ring);
1788 } gt; 1788 } gt;
1789 1789
1790 uint32_t request_uniq;
1791
1790 /* 1792 /*
1791 * NOTE: This is the dri1/ums dungeon, don't add stuff here. Your patch 1793 * NOTE: This is the dri1/ums dungeon, don't add stuff here. Your patch
1792 * will be rejected. Instead look for a better place. 1794 * will be rejected. Instead look for a better place.
@@ -2019,6 +2021,8 @@ struct drm_i915_gem_request {
2019 struct drm_i915_file_private *file_priv; 2021 struct drm_i915_file_private *file_priv;
2020 /** file_priv list entry for this request */ 2022 /** file_priv list entry for this request */
2021 struct list_head client_list; 2023 struct list_head client_list;
2024
2025 uint32_t uniq;
2022}; 2026};
2023 2027
2024void i915_gem_request_free(struct kref *req_ref); 2028void i915_gem_request_free(struct kref *req_ref);