All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/i915/ringbuffer: Clear semaphore sync registers on ring init
@ 2018-11-28 12:26 Chris Wilson
  2018-11-28 12:26 ` [PATCH 2/3] drm/i915: Allocate a common scratch page Chris Wilson
                   ` (9 more replies)
  0 siblings, 10 replies; 17+ messages in thread
From: Chris Wilson @ 2018-11-28 12:26 UTC (permalink / raw)
  To: intel-gfx

Ensure that the sync registers are cleared every time we restart the
ring to avoid stale values from creeping in from random neutrinos.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/intel_ringbuffer.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index e18a64d41843..82c844488755 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -529,6 +529,13 @@ static int init_ring_common(struct intel_engine_cs *engine)
 
 	intel_engine_reset_breadcrumbs(engine);
 
+	if (HAS_LEGACY_SEMAPHORES(engine->i915)) {
+		I915_WRITE(RING_SYNC_0(engine->mmio_base), 0);
+		I915_WRITE(RING_SYNC_1(engine->mmio_base), 0);
+		if (HAS_VEBOX(dev_priv))
+			I915_WRITE(RING_SYNC_2(engine->mmio_base), 0);
+	}
+
 	/* Enforce ordering by reading HEAD register back */
 	I915_READ_HEAD(engine);
 
-- 
2.20.0.rc1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2018-11-29 23:19 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-28 12:26 [PATCH 1/3] drm/i915/ringbuffer: Clear semaphore sync registers on ring init Chris Wilson
2018-11-28 12:26 ` [PATCH 2/3] drm/i915: Allocate a common scratch page Chris Wilson
2018-11-28 13:21   ` Mika Kuoppala
2018-11-28 13:37     ` Chris Wilson
2018-11-28 12:26 ` [PATCH 3/3] drm/i915: Pipeline PDP updates for Braswell Chris Wilson
2018-11-28 13:48   ` [PATCH v2] " Chris Wilson
2018-11-29 23:18     ` kbuild test robot
2018-11-28 12:54 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/3] drm/i915/ringbuffer: Clear semaphore sync registers on ring init Patchwork
2018-11-28 12:55 ` ✗ Fi.CI.SPARSE: " Patchwork
2018-11-28 13:19 ` ✓ Fi.CI.BAT: success " Patchwork
2018-11-28 13:31   ` Saarinen, Jani
2018-11-28 14:01 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/3] drm/i915/ringbuffer: Clear semaphore sync registers on ring init (rev2) Patchwork
2018-11-28 14:02 ` ✗ Fi.CI.SPARSE: " Patchwork
2018-11-28 14:18 ` ✓ Fi.CI.BAT: success " Patchwork
2018-11-28 14:21   ` Chris Wilson
2018-11-28 18:50 ` ✓ Fi.CI.IGT: success for series starting with [1/3] drm/i915/ringbuffer: Clear semaphore sync registers on ring init Patchwork
2018-11-28 19:39 ` ✓ Fi.CI.IGT: success for series starting with [1/3] drm/i915/ringbuffer: Clear semaphore sync registers on ring init (rev2) Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.