Skip to content

Commit 3148310

Browse files
committed
drm/i915: Drop the fudge warning on ring restart for ctg/elk
Since we have already stopped the ring, cleared the ring, disabled the ring (and verifying the ring is clear), a later debug message that the ring is no longer clear serves no function. It appears it restarts anyway, and we verify that the ring started correctly afterwards. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190808074207.18274-4-chris@chris-wilson.co.uk
1 parent 1a07e86 commit 3148310

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

drivers/gpu/drm/i915/gt/intel_ringbuffer.c

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,7 @@ static int xcs_resume(struct intel_engine_cs *engine)
644644

645645
intel_uncore_forcewake_get(engine->uncore, FORCEWAKE_ALL);
646646

647+
/* WaClearRingBufHeadRegAtInit:ctg,elk */
647648
if (!stop_ring(engine)) {
648649
/* G45 ring initialization often fails to reset head to zero */
649650
DRM_DEBUG_DRIVER("%s head not reset to zero "
@@ -675,19 +676,16 @@ static int xcs_resume(struct intel_engine_cs *engine)
675676
intel_engine_reset_breadcrumbs(engine);
676677

677678
/* Enforce ordering by reading HEAD register back */
678-
ENGINE_READ(engine, RING_HEAD);
679+
ENGINE_POSTING_READ(engine, RING_HEAD);
679680

680-
/* Initialize the ring. This must happen _after_ we've cleared the ring
681+
/*
682+
* Initialize the ring. This must happen _after_ we've cleared the ring
681683
* registers with the above sequence (the readback of the HEAD registers
682684
* also enforces ordering), otherwise the hw might lose the new ring
683-
* register values. */
685+
* register values.
686+
*/
684687
ENGINE_WRITE(engine, RING_START, i915_ggtt_offset(ring->vma));
685688

686-
/* WaClearRingBufHeadRegAtInit:ctg,elk */
687-
if (ENGINE_READ(engine, RING_HEAD))
688-
DRM_DEBUG_DRIVER("%s initialization failed [head=%08x], fudging\n",
689-
engine->name, ENGINE_READ(engine, RING_HEAD));
690-
691689
/* Check that the ring offsets point within the ring! */
692690
GEM_BUG_ON(!intel_ring_offset_valid(ring, ring->head));
693691
GEM_BUG_ON(!intel_ring_offset_valid(ring, ring->tail));

0 commit comments

Comments
 (0)