drm/i915/selftests: Replace wmb() with i915_gem_chipset_flush()
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 26 Sep 2017 15:34:09 +0000 (16:34 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 29 Sep 2017 11:30:17 +0000 (12:30 +0100)
commit60456d5c2d25cbe91cd0747d12ec9d909bf8d5b9
tree0a8743bf642d49df35bb7d42e1b699a2c7a4a986
parente18063e88bd579c479a2b45820be6c4625f841c3
drm/i915/selftests: Replace wmb() with i915_gem_chipset_flush()

Currently, we are being fairly lazy and only using a wmb() following an
update to an active batch. Previously, we have found that to be
insufficient to ensure that a write from the CPU reaches memory in a
timely fashion, and in some caches we may need to flush a chipset cache.
To that end, we have i915_gem_chipset_flush() so use it.

Suggested-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170926153409.7928-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/selftests/i915_gem_request.c
drivers/gpu/drm/i915/selftests/intel_hangcheck.c