]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Report the currently active execlists request
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Jan 2020 11:32:59 +0000 (11:32 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Jan 2020 16:09:42 +0000 (16:09 +0000)
commit4b2be4e58b0390ebcb799dddeaee682f3e424db4
treeaa428571a0ae0df5210cd7af557c4b9ed3fee788
parent7eb27fbc369389e27d3238f6d79fa990aa67a8cd
drm/i915/gt: Report the currently active execlists request

Since commit c7e4d40378c6 ("drm/i915/execlists: Preempt-to-busy"), we
prune the engine->active.requests list prior to preemption, thus
removing the trace of the currently executing request. If that request
hangs rather than be preempted, we conclude that no active request was
on the GPU. Fortunately, this only impacts our debugging, and not our
means of hang detection or recovery.

v2: Use from to check the current iterator before continuing, and report
active as NULL if the current request is already completed.

References: c7e4d40378c6 ("drm/i915/execlists: Preempt-to-busy")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200117113259.3023890-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine_cs.c