]> asedeno.scripts.mit.edu Git - linux.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)
commite840130a25a7fbe1520f32b6113e0fd68af0fb54
treef87c6f356b09ef6ff3d443ca43bd1abc73a6d7a8
parent8ec21a7c4b52165211b47932c665ab2e9ca488ee
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