OSDN Git Service

drm/i915/execlists: Track begin/end of execlists submission sequences
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 31 Mar 2018 13:06:26 +0000 (14:06 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 3 Apr 2018 11:26:09 +0000 (12:26 +0100)
commitf26052079070cd0e8940717a7a7cb7cdd512ac05
treeaf66454d8c58ed301bef30a7a1182dc6ae67f6f9
parent1f901d59a5489e4dc7fdd339808d89b89f35483e
drm/i915/execlists: Track begin/end of execlists submission sequences

We would like to start doing some bookkeeping at the beginning, between
contexts and at the end of execlists submission. We already mark the
beginning and end using EXECLISTS_ACTIVE_USER, to provide an indication
when the HW is idle. This give us a pair of sequence points we can then
expand on for further bookkeeping.

v2: Refactor guc submission to share the same begin/end.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180331130626.10712-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_guc_submission.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.h