Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] drm/i915/dmc: Use drm_WARN_ONCE()
@ 2025-10-15 13:50 Petr Vorel
  2025-10-15 17:18 ` ✗ LGCI.VerificationFailed: failure for series starting with [1/1] " Patchwork
  2025-10-15 17:57 ` [PATCH 1/1] " Ville Syrjälä
  0 siblings, 2 replies; 4+ messages in thread
From: Petr Vorel @ 2025-10-15 13:50 UTC (permalink / raw)
  To: intel-gfx
  Cc: Petr Vorel, Ville Syrjälä, Uma Shankar, Jani Nikula,
	Lucas De Marchi, Simona Vetter, dri-devel

assert_dmc_loaded() removed in 43175c92d4038 used drm_WARN_ONCE(),
but new assert_dmc_loaded() use drm_WARN().

Log is already noise quite a lot due loop over dmc->dmc_info[dmc_id]
array (76 logs on my machine), therefore use drm_WARN_ONCE().

Fixes: 43175c92d4038 ("drm/i915/dmc: Assert DMC is loaded harder")
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Ville, am I wrong and it's really needed to see all the oops for the
threads?

Kind regards,
Petr

 drivers/gpu/drm/i915/display/intel_dmc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dmc.c b/drivers/gpu/drm/i915/display/intel_dmc.c
index 517bebb0b4aac..53db7279c7c99 100644
--- a/drivers/gpu/drm/i915/display/intel_dmc.c
+++ b/drivers/gpu/drm/i915/display/intel_dmc.c
@@ -626,7 +626,7 @@ static void assert_dmc_loaded(struct intel_display *display,
 	found = intel_de_read(display, DMC_PROGRAM(dmc->dmc_info[dmc_id].start_mmioaddr, 0));
 	expected = dmc->dmc_info[dmc_id].payload[0];
 
-	drm_WARN(display->drm, found != expected,
+	drm_WARN_ONCE(display->drm, found != expected,
 		 "DMC %d program storage start incorrect (expected 0x%x, current 0x%x)\n",
 		 dmc_id, expected, found);
 
@@ -642,7 +642,7 @@ static void assert_dmc_loaded(struct intel_display *display,
 			expected &= ~DMC_EVT_CTL_ENABLE;
 		}
 
-		drm_WARN(display->drm, found != expected,
+		drm_WARN_ONCE(display->drm, found != expected,
 			 "DMC %d mmio[%d]/0x%x incorrect (expected 0x%x, current 0x%x)\n",
 			 dmc_id, i, i915_mmio_reg_offset(reg), expected, found);
 	}
-- 
2.51.0


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

end of thread, other threads:[~2025-10-16 12:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-15 13:50 [PATCH 1/1] drm/i915/dmc: Use drm_WARN_ONCE() Petr Vorel
2025-10-15 17:18 ` ✗ LGCI.VerificationFailed: failure for series starting with [1/1] " Patchwork
2025-10-15 17:57 ` [PATCH 1/1] " Ville Syrjälä
2025-10-16 12:55   ` Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox