drm/i915: Serialise access to GFX_FLSH_CNTL
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 30 Nov 2019 16:23:20 +0000 (16:23 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 30 Nov 2019 16:55:03 +0000 (16:55 +0000)
commit19b6304aee84644482ceb6a87f0ce09db9a8f714
tree179e7038e1720e2f22e214cb7279321e73176c50
parentf997056d5b17c6b0bdc250d509f384fbd7f8d33a
drm/i915: Serialise access to GFX_FLSH_CNTL

Now that many threads may try to use the same mmio to flush the global
buffers after updating the PTE, serialise access to the mmio to prevent
concurrent access on gen7.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191130162320.1683424-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c