drm/i915/ringbuffer: Serialize load of PD_DIR
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 Jun 2018 17:18:25 +0000 (18:18 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Jun 2018 08:10:04 +0000 (09:10 +0100)
commitd9d117e40d4ffc03438177eeac83d96dfeee76be
tree4afacb2660a464017ea5e594fbb0d498d1a1cb60
parent68a8570375df647cf8b6626d63917b564dd9390e
drm/i915/ringbuffer: Serialize load of PD_DIR

After triggering the mm switch with a load of PD_DIR, which may be
deferred unto the MI_SET_CONTEXT on rcs, serialise the next commands
with that load by posting a read of PD_DIR (or else those subsequent
commands may access the stale page tables).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180611171825.13678-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_engine_cs.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h