]> 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)
commit695ccce09175e30db6df3fba5c85064a60ed0431
treef87c6f356b09ef6ff3d443ca43bd1abc73a6d7a8
parent06fa2f547f86443f2002f293952ad1e03a3a2457
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