drm/i915/execlists: Reduce barrier on context switch to a wmb()
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 10 Nov 2019 18:57:51 +0000 (18:57 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 Nov 2019 13:27:03 +0000 (13:27 +0000)
commit69a48c1d28e05893607b89515442b993cd5326ed
treefc267619f0ee56b7b4b3546efe569453095e80bf
parent7a73e671acbaf00ad6aa4ee0e3f39e3c9a9ef563
drm/i915/execlists: Reduce barrier on context switch to a wmb()

Having been forced to reduce Braswell back to using the aliasing ppgtt,
the coherency issue we previously observed cannot impact us. Reduce the
performance penalty imposed on all platforms from using the mfence to a
mere sfence.

References: cf66b8a0ba14 ("drm/i915/execlists: Apply a full mb before execution for Braswell")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191110185806.17413-10-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c