Skip to contentSkip to conversation

adlp_tc_phy_connect [i915] floods logs with drm_WARN_ON(tc->mode == TC_PORT_LEGACY) call traces

PATCH In review [email protected] 2 participants 5 messages Nov 18 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 adlp_tc_phy_connect [i915] floods logs with drm_WARN_ON(tc->mode == TC_PORT_LEGACY) call traces

With a further report/example of this issue together with additional testing carried out on a proposed fix, please can you consider accepting the following patch to reduce the excessive logging produced by the i915 module on affected systems.

Issue and discussion at : https://gitlab.freedesktop.org/drm/i915/kernel/-/work_items/12246

---
 drivers/gpu/drm/i915/display/intel_display_utils.h | 3 +++
 drivers/gpu/drm/i915/display/intel_tc.c            | 6 +++---
 2 files changed, 6 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/display/intel_display_utils.h +3 -0
index affa3179f..5d8cc50ad 100644
@@ -12,6 +12,9 @@ struct intel_display;
 #define MISSING_CASE(x) WARN(1, "Missing case (%s == %ld)\n", \
 			     __stringify(x), (long)(x))
 
+#define MISSING_CASE_ONCE(x) WARN_ONCE(1, "Missing case (%s == %ld)\n", \
+			     __stringify(x), (long)(x))
+
 #define fetch_and_zero(ptr) ({						\
 	typeof(*ptr) __T = *(ptr);					\
 	*(ptr) = (typeof(*ptr))0;					\
drivers/gpu/drm/i915/display/intel_tc.c +3 -3
index f878494bc..bb09ae795 100644
@@ -312,7 +312,7 @@ get_pin_assignment(struct intel_tc_port *tc)
 	with_intel_display_power(display, POWER_DOMAIN_DISPLAY_CORE)
 		val = intel_de_read(display, reg);
 
-	drm_WARN_ON(display->drm, val == 0xffffffff);
+	drm_WARN_ON_ONCE(display->drm, val == 0xffffffff);
 	assert_tc_cold_blocked(tc);
 
 	pin_assignment = (val & mask) >> (ffs(mask) - 1);
@@ -329,7 +329,7 @@ get_pin_assignment(struct intel_tc_port *tc)
 	case INTEL_TC_PIN_ASSIGNMENT_E:
 		break;
 	default:
-		MISSING_CASE(pin_assignment);
+		MISSING_CASE_ONCE(pin_assignment);
 	}
 
 	return pin_assignment;
@@ -923,7 +923,7 @@ static bool adlp_tc_phy_connect(struct intel_tc_port *tc, int required_lanes)
 	port_wakeref = intel_display_power_get(display, port_power_domain);
 
 	if (!adlp_tc_phy_take_ownership(tc, true) &&
-	    !drm_WARN_ON(display->drm, tc->mode == TC_PORT_LEGACY)) {
+	    !drm_WARN_ON_ONCE(display->drm, tc->mode == TC_PORT_LEGACY)) {
 		drm_dbg_kms(display->drm, "Port %s: can't take PHY ownership\n",
 			    tc->port_name);
 		goto out_put_port_power;
Signature · 1 line
2.53.0
author Tested-by Nicola Fiorillo on v1 1/1
#2 lore raw

***** My Apologies - wrong patch attached , I will re-send . *** PLEASE IGNORE ***

-------- Forwarded Message --------
Subject: [PATCH] adlp_tc_phy_connect [i915] floods logs with drm_WARN_ON(tc->mode == TC_PORT_LEGACY) call traces
Date: Tue, 17 Nov 2026 19:06:04 +0000
From: [email protected]
To: [email protected]
CC: [email protected], [email protected]

With a further report/example of this issue together with additional testing carried out on a proposed fix, please can you consider accepting the following patch to reduce the excessive logging produced by the i915 module on affected systems.

Issue and discussion at : https://gitlab.freedesktop.org/drm/i915/kernel/-/work_items/12246

---
 drivers/gpu/drm/i915/display/intel_display_utils.h | 3 +++
 drivers/gpu/drm/i915/display/intel_tc.c            | 6 +++---
 2 files changed, 6 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/display/intel_display_utils.h +3 -0
index affa3179f..5d8cc50ad 100644
@@ -12,6 +12,9 @@ struct intel_display;
 #define MISSING_CASE(x) WARN(1, "Missing case (%s == %ld)\n", \
 			     __stringify(x), (long)(x))
 
+#define MISSING_CASE_ONCE(x) WARN_ONCE(1, "Missing case (%s == %ld)\n", \
+			     __stringify(x), (long)(x))
+
 #define fetch_and_zero(ptr) ({						\
 	typeof(*ptr) __T = *(ptr);					\
 	*(ptr) = (typeof(*ptr))0;					\
drivers/gpu/drm/i915/display/intel_tc.c +3 -3
index f878494bc..bb09ae795 100644
@@ -312,7 +312,7 @@ get_pin_assignment(struct intel_tc_port *tc)
 	with_intel_display_power(display, POWER_DOMAIN_DISPLAY_CORE)
 		val = intel_de_read(display, reg);
 
-	drm_WARN_ON(display->drm, val == 0xffffffff);
+	drm_WARN_ON_ONCE(display->drm, val == 0xffffffff);
 	assert_tc_cold_blocked(tc);
 
 	pin_assignment = (val & mask) >> (ffs(mask) - 1);
@@ -329,7 +329,7 @@ get_pin_assignment(struct intel_tc_port *tc)
 	case INTEL_TC_PIN_ASSIGNMENT_E:
 		break;
 	default:
-		MISSING_CASE(pin_assignment);
+		MISSING_CASE_ONCE(pin_assignment);
 	}
 
 	return pin_assignment;
@@ -923,7 +923,7 @@ static bool adlp_tc_phy_connect(struct intel_tc_port *tc, int required_lanes)
 	port_wakeref = intel_display_power_get(display, port_power_domain);
 
 	if (!adlp_tc_phy_take_ownership(tc, true) &&
-	    !drm_WARN_ON(display->drm, tc->mode == TC_PORT_LEGACY)) {
+	    !drm_WARN_ON_ONCE(display->drm, tc->mode == TC_PORT_LEGACY)) {
 		drm_dbg_kms(display->drm, "Port %s: can't take PHY ownership\n",
 			    tc->port_name);
 		goto out_put_port_power;
Signature · 1 line
2.53.0
author Tested-by Nicola Fiorillo
#3 lore raw

(Correct patch now attached)

With a further report/example of this issue together with additional testing carried out on a proposed fix, please can you consider accepting the following patch to reduce the excessive logging produced by the i915 module on affected systems.

Issue and discussion at : https://gitlab.freedesktop.org/drm/i915/kernel/-/work_items/12246

---
 drivers/gpu/drm/i915/display/intel_display_utils.h | 3 +++
 drivers/gpu/drm/i915/display/intel_tc.c            | 6 +++---
 2 files changed, 6 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/display/intel_display_utils.h +3 -0
index affa3179f..5d8cc50ad 100644
@@ -12,6 +12,9 @@ struct intel_display;
 #define MISSING_CASE(x) WARN(1, "Missing case (%s == %ld)\n", \
                             __stringify(x), (long)(x))
 
+#define MISSING_CASE_ONCE(x) WARN_ONCE(1, "Missing case (%s == %ld)\n", \
+                            __stringify(x), (long)(x))
+
 #define fetch_and_zero(ptr) ({                                         \
        typeof(*ptr) __T = *(ptr);                                      \
        *(ptr) = (typeof(*ptr))0;                                       \
drivers/gpu/drm/i915/display/intel_tc.c +3 -3
index f878494bc..86d6ae68e 100644
@@ -312,7 +312,7 @@ get_pin_assignment(struct intel_tc_port *tc)
        with_intel_display_power(display, POWER_DOMAIN_DISPLAY_CORE)
                val = intel_de_read(display, reg);
 
-       drm_WARN_ON(display->drm, val == 0xffffffff);
+       drm_WARN_ON_ONCE(display->drm, val == 0xffffffff);
        assert_tc_cold_blocked(tc);
 
        pin_assignment = (val & mask) >> (ffs(mask) - 1);
@@ -329,7 +329,7 @@ get_pin_assignment(struct intel_tc_port *tc)
        case INTEL_TC_PIN_ASSIGNMENT_E:
                break;
        default:
-               MISSING_CASE(pin_assignment);
+               MISSING_CASE_ONCE(pin_assignment);
        }
 
        return pin_assignment;
@@ -930,7 +930,7 @@ static bool adlp_tc_phy_connect(struct intel_tc_port *tc, int required_lanes)
        }
 
        if (!tc_phy_is_ready(tc) &&
-           !drm_WARN_ON(display->drm, tc->mode == TC_PORT_LEGACY)) {
+           !drm_WARN_ON_ONCE(display->drm, tc->mode == TC_PORT_LEGACY)) {
                drm_dbg_kms(display->drm, "Port %s: PHY not ready\n",
                            tc->port_name);
                goto out_release_phy;
Signature · 1 line
2.53.0
#4 lore raw

✗ LGCI.VerificationFailed: failure for : [PATCH] adlp_tc_phy_connect [i915] floods logs with drm_WARN_ON(tc->mode == TC_PORT_LEGACY) call traces

In reply to [email protected]
== Series Details ==

== Series Details ==

Series: : [PATCH] adlp_tc_phy_connect [i915] floods logs with drm_WARN_ON(tc->mode == TC_PORT_LEGACY) call traces
URL : https://patchwork.freedesktop.org/series/178906/
State : failure

== Summary ==

Series author address '[email protected]' is not on the allowlist, which prevents CI from being automatically triggered. If you want CI to run for this series, ask Patchwork project owners to click 'retest' on the series in Patchwork. Exception occurred during validation, bailing out!
Build URL: http://gfx-ci.igk.intel.com:8080/job/CI_PW_kernel/193455/ (on built-in)

#5 lore raw

✗ LGCI.VerificationFailed: failure for adlp_tc_phy_connect [i915] floods logs with drm_WARN_ON(tc->mode == TC_PORT_LEGACY) call traces (rev4)

In reply to a message not in the archive
== Series Details ==

== Series Details ==

Series: adlp_tc_phy_connect [i915] floods logs with drm_WARN_ON(tc->mode == TC_PORT_LEGACY) call traces (rev4)
URL : https://patchwork.freedesktop.org/series/175762/
State : failure

== Summary ==

Series author address '[email protected]' is not on the allowlist, which prevents CI from being automatically triggered. If you want CI to run for this series, ask Patchwork project owners to click 'retest' on the series in Patchwork. Exception occurred during validation, bailing out!
Build URL: http://gfx-ci.igk.intel.com:8080/job/CI_PW_kernel/193457/ (on built-in)