drm/i915/gt: Use the local engine wakeref when checking RING registers
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 12 Aug 2019 09:10:44 +0000 (10:10 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 12 Aug 2019 12:18:31 +0000 (13:18 +0100)
commit4ecd20c929b86e87ee4a74379678d1c0ef90c68d
tree59f577c472741885dc04935159f2f7c76a8e184f
parentacb9488dcad866987406aefc4f8298f2bf971575
drm/i915/gt: Use the local engine wakeref when checking RING registers

Now that we can atomically acquire the engine wakeref, make use of it
when check whether the RING registers are idle.

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/20190812091045.29587-7-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine_cs.c