]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Apply a heavy handed flush to i915_active
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Mar 2020 13:38:36 +0000 (13:38 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 7 Mar 2020 00:05:54 +0000 (00:05 +0000)
commit1584afa22389351eb7e429541db582f906aaee63
treeff02d22ad614fc5bea5aaf37ab8f424ee7cb8635
parentaf6288b3f0e622c7f391c91d4f0e483ef6ab403c
drm/i915/selftests: Apply a heavy handed flush to i915_active

Due to the ordering of cmpxchg()/dma_fence_signal() inside node_retire(),
we must also use the xchg() as our primary memory barrier to flush the
outstanding callbacks after expected completion of the i915_active.

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/20200306133852.3420322-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_active.c