Commit 24c66274 authored by Chris Wilson's avatar Chris Wilson

drm/i915/gt: Tweak flushes around ivb ppgtt

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: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Acked-by: default avatarMika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191231120857.4014900-1-chris@chris-wilson.co.uk
parent 2b64e616
...@@ -1394,7 +1394,7 @@ static int load_pd_dir(struct i915_request *rq, ...@@ -1394,7 +1394,7 @@ static int load_pd_dir(struct i915_request *rq,
intel_ring_advance(rq, cs); 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) 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) ...@@ -1584,7 +1584,7 @@ static int switch_mm(struct i915_request *rq, struct i915_address_space *vm)
if (ret) if (ret)
return 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) static int switch_context(struct i915_request *rq)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment