drm/i915: Remove redundant TLB invalidate on switching ppgtt
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 27 Feb 2017 13:59:12 +0000 (13:59 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 27 Feb 2017 16:01:46 +0000 (16:01 +0000)
commit12946eceeb97a36a7087995646e077e9872ac99b
tree557265fd3b7fd3be9b05f51aa6192bebf7b9797c
parent20fe17aa52dcafd3bdeb9e37281d027b0c1c5a15
drm/i915: Remove redundant TLB invalidate on switching ppgtt

We are required to reload the TLBs around ppgtt switches. However, we
already do an unconditional TLB invalidate before every batch and a flush
afterwards, so this condition is already satisfied without extra flushes
around the LRI instructions.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170227135913.8056-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c