[PATCH 4/6] drm/i915/ringbuffer: Remove irq-seqno w/a for gen6/7
Chris Wilson
chris at chris-wilson.co.uk
Tue Dec 18 17:41:43 UTC 2018
Having transitioned to using PIPECONTROL and MI_FLUSH_DW to combine the
flush with the breadcrumb write using their post-sync functions, assume
that this will resolve the serialisation with the subsequent
MI_USER_INTERRUPT. That is when inspecting the breadcrumb after an
interrupt we can rely on the write being posted (i.e. the HWSP will be
coherent).
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
drivers/gpu/drm/i915/intel_ringbuffer.c | 26 -------------------------
1 file changed, 26 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index c54f058ef01b..da81c20c8d11 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -880,31 +880,6 @@ gen5_seqno_barrier(struct intel_engine_cs *engine)
usleep_range(125, 250);
}
-static void
-gen6_seqno_barrier(struct intel_engine_cs *engine)
-{
- struct drm_i915_private *dev_priv = engine->i915;
-
- /* Workaround to force correct ordering between irq and seqno writes on
- * ivb (and maybe also on snb) by reading from a CS register (like
- * ACTHD) before reading the status page.
- *
- * Note that this effectively stalls the read by the time it takes to
- * do a memory transaction, which more or less ensures that the write
- * from the GPU has sufficient time to invalidate the CPU cacheline.
- * Alternatively we could delay the interrupt from the CS ring to give
- * the write time to land, but that would incur a delay after every
- * batch i.e. much more frequent than a delay when waiting for the
- * interrupt (with the same net latency).
- *
- * Also note that to prevent whole machine hangs on gen7, we have to
- * take the spinlock to guard against concurrent cacheline access.
- */
- spin_lock_irq(&dev_priv->uncore.lock);
- POSTING_READ_FW(RING_ACTHD(engine->mmio_base));
- spin_unlock_irq(&dev_priv->uncore.lock);
-}
-
static void
gen5_irq_enable(struct intel_engine_cs *engine)
{
@@ -2124,7 +2099,6 @@ static void intel_ring_init_irq(struct drm_i915_private *dev_priv,
if (INTEL_GEN(dev_priv) >= 6) {
engine->irq_enable = gen6_irq_enable;
engine->irq_disable = gen6_irq_disable;
- engine->irq_seqno_barrier = gen6_seqno_barrier;
} else if (INTEL_GEN(dev_priv) >= 5) {
engine->irq_enable = gen5_irq_enable;
engine->irq_disable = gen5_irq_disable;
--
2.20.0
More information about the Intel-gfx-trybot
mailing list