]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Move the reset bits to a more natural home
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 5 Feb 2018 15:24:30 +0000 (15:24 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 5 Feb 2018 15:27:25 +0000 (15:27 +0000)
commit0b1541ab448332487552bba4f5ae53ba945c2ab0
treef87c6f356b09ef6ff3d443ca43bd1abc73a6d7a8
parenteeedc0e4df2812b05ba151ef131a49004cdf9b43
drm/i915/execlists: Move the reset bits to a more natural home

In preparation for the next patch, we want the engine to appear idle
after a reset (if there are no requests in flight). For execlists, this
entails clearing the active status on reset, it will be regenerated on
restarting the engine after the reset. In the process, note that a
couple of other status flags and checks could be moved into the
describing function.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180205152431.12163-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c