summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem_request.c
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2017-02-21 11:01:42 +0000
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2017-02-21 13:18:14 +0000
commit354d036fcf70654cff2e2cbdda54a835d219b9d2 (patch)
tree1fe5b60f3d9efbc26496624ed603642eddc6f5ef /drivers/gpu/drm/i915/i915_gem_request.c
parent90aa412d50a94b5d48de8991614877d3242f46b1 (diff)
downloadop-kernel-dev-354d036fcf70654cff2e2cbdda54a835d219b9d2.zip
op-kernel-dev-354d036fcf70654cff2e2cbdda54a835d219b9d2.tar.gz
drm/i915/tracepoints: Add request submit and execute tracepoints
These new tracepoints are emitted once the request is ready to be submitted to the GPU and once the request is about to be submitted to the GPU, respectively. Former condition triggers as soon as all the fences and dependencies have been resolved, and the latter once the backend is about to submit it to the GPU. New tracepoint are enabled via the new DRM_I915_LOW_LEVEL_TRACEPOINTS Kconfig option which is disabled by default to alleviate the performance impact concerns. v2: Move execute tracepoint to __i915_gem_request_submit. (Chris Wilson) Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_request.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_request.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_request.c b/drivers/gpu/drm/i915/i915_gem_request.c
index 543cef5..12b06e0 100644
--- a/drivers/gpu/drm/i915/i915_gem_request.c
+++ b/drivers/gpu/drm/i915/i915_gem_request.c
@@ -426,6 +426,7 @@ void __i915_gem_request_submit(struct drm_i915_gem_request *request)
spin_unlock(&request->timeline->lock);
i915_sw_fence_commit(&request->execute);
+ trace_i915_gem_request_execute(request);
}
void i915_gem_request_submit(struct drm_i915_gem_request *request)
@@ -449,6 +450,7 @@ submit_notify(struct i915_sw_fence *fence, enum i915_sw_fence_notify state)
switch (state) {
case FENCE_COMPLETE:
+ trace_i915_gem_request_submit(request);
request->engine->submit_request(request);
break;
OpenPOWER on IntegriCloud