]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Flush engine parking before release
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Jan 2020 14:33:39 +0000 (14:33 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Jan 2020 21:08:24 +0000 (21:08 +0000)
commit6760736f52681ca1645736f98d07c0166b1e8f9d
tree5cd7df6c24c4c1fe08ba3f7a38354b42702c00ff
parent8a9d10a79fc0f8a9234f559888d542af7a4d81f2
drm/i915/gt: Flush engine parking before release

Due to the asynchronous nature of releasing our wakerefs, we can signal
the main GT wakeref as complete before the individual engines have
cleared their own wakerefs. During shutdown we assert that the engines
are indeed parked before we release them, but for this to be always true
we need to flush their workers as well.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200124143339.140988-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine_cs.c