drm/i915/selftests: Provide full mb() around clflush
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Jul 2018 17:49:26 +0000 (18:49 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Jul 2018 20:28:11 +0000 (21:28 +0100)
commit3a32497f0dbe170794e1506deb41dc44c4fea8d9
treef62703594d024a6d75e61178c4023ad098c05787
parent8b293eb53a7d7605f762351918083a4e402dc784
drm/i915/selftests: Provide full mb() around clflush

clflush is an unserialised instruction and the IA manual strongly advises
you to serialise it with a mb. To be cautious, apply one before and one
after, so that it is serialised with both writes and reads without
worrying too much about the required direction.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180706174926.4712-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem_coherency.c