drm/i915/ringbuffer: Serialize load of PD_DIR
authorChris Wilson <[email protected]>
Mon, 11 Jun 2018 17:18:25 +0000 (18:18 +0100)
committerChris Wilson <[email protected]>
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 <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Mika Kuoppala <[email protected]>
Cc: Matthew Auld <[email protected]>
Reviewed-by: Joonas Lahtinen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/intel_engine_cs.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h