[CI] drm/i915/gt: Tweak flushes around ivb ppgtt
diff mbox series

Message ID 20191231120857.4014900-1-chris@chris-wilson.co.uk
State New
Headers show
  • [CI] drm/i915/gt: Tweak flushes around ivb ppgtt
Related show

Commit Message

Chris Wilson Dec. 31, 2019, 12:08 p.m. UTC
A small tweak to flush then invalidate appears to improve the
reliability of ppGTT switches on Ivybridge -- but does not improve
hsw/vlv bcs reliability.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
 drivers/gpu/drm/i915/gt/intel_ring_submission.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff mbox series

diff --git a/drivers/gpu/drm/i915/gt/intel_ring_submission.c b/drivers/gpu/drm/i915/gt/intel_ring_submission.c
index 066c4eddf5d0..48dbe46edbff 100644
--- a/drivers/gpu/drm/i915/gt/intel_ring_submission.c
+++ b/drivers/gpu/drm/i915/gt/intel_ring_submission.c
@@ -1394,7 +1394,7 @@  static int load_pd_dir(struct i915_request *rq,
 	intel_ring_advance(rq, cs);
-	return 0;
+	return rq->engine->emit_flush(rq, EMIT_FLUSH);
 static inline int mi_set_context(struct i915_request *rq, u32 flags)
@@ -1584,7 +1584,7 @@  static int switch_mm(struct i915_request *rq, struct i915_address_space *vm)
 	if (ret)
 		return ret;
-	return rq->engine->emit_flush(rq, EMIT_FLUSH);
+	return rq->engine->emit_flush(rq, EMIT_INVALIDATE);
 static int switch_context(struct i915_request *rq)