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)
commite3e7aeec3281af446d7410d6982020e1aa5795fc
treeff02d22ad614fc5bea5aaf37ab8f424ee7cb8635
parentdff2a11b065c552979d9e9ff1a00ff57cbc26ce7
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