Skip to contentSkip to conversation

drm/i915/dmc: Use drm_WARN_ONCE()

PATCH In review Petr Vorel 3 participants 4 messages Oct 15, 2025 – Oct 16, 2025

Subsystems (3)
lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 drm/i915/dmc: Use drm_WARN_ONCE()

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")

---
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(-)
drivers/gpu/drm/i915/display/intel_dmc.c +2 -2
index 517bebb0b4aac..53db7279c7c99 100644
@@ -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);
 	}
Signature · 1 line
2.51.0
#1 lore raw

✗ LGCI.VerificationFailed: failure for series starting with [1/1] drm/i915/dmc: Use drm_WARN_ONCE()

== Series Details ==

== Series Details ==

Series: series starting with [1/1] drm/i915/dmc: Use drm_WARN_ONCE()
URL : https://patchwork.freedesktop.org/series/155993/
State : failure

== Summary ==

Address '[email protected]' is not on the allowlist, which prevents CI from being triggered for this patch. If you want Intel GFX CI to accept this address, please contact the script maintainers at [email protected]. Exception occurred during validation, bailing out!

#2 lore raw
In reply to Petr Vorel
Quoted 11 lines · Petr Vorel

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")

---
Ville, am I wrong and it's really needed to see all the oops for the threads?

Kinda irrelevant because this should never happen. So the real question we need to ask is why are you seeing this at all?

Please file a bug at
https://gitlab.freedesktop.org/drm/i915/kernel/-/issues
and attch the full dmesg with drm.debug=0xe passed to the kernel cmdline.

Quoted 31 lines

Kind regards,
Petr

 drivers/gpu/drm/i915/display/intel_dmc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_dmc.c +2 -2
index 517bebb0b4aac..53db7279c7c99 100644
@@ -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);
 	}
Signature · 1 line
2.51.0
Signature · 2 lines
Ville Syrjälä
Intel
author
#3 lore raw
Quoted 7 lines · Petr Vorel
Quoted 5 lines

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().

Quoted 8 lines
Quoted 5 lines
Fixes 43175c92d4038 ("drm/i915/dmc: Assert DMC is loaded harder")

---
Ville, am I wrong and it's really needed to see all the oops for the threads?

Kinda irrelevant because this should never happen. So the real question we need to ask is why are you seeing this at all?

+1

Quoted 4 lines

Please file a bug at
https://gitlab.freedesktop.org/drm/i915/kernel/-/issues
and attch the full dmesg with drm.debug=0xe passed to the kernel cmdline.

https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/15153

Kind regards,
Petr