Skip to contentSkip to conversation

drm/i915/cx0: fix PLL enable failure handling on Meteor Lake

PATCH In review Aaron Esau 7 participants 11 messages May 9 – May 13

Subsystems (4)
lore
Share & tools
lore

Aaron Esau

author
#0 lore raw

cover drm/i915/cx0: fix PLL enable failure handling on Meteor Lake

On Meteor Lake with a hybrid Intel/NVIDIA GPU setup, s2idle resume can leave the CX0 PHY MSGBUS unresponsive. When this happens, the PLL enable sequence silently fails: register writes via MSGBUS are dropped, the PLL never locks, but the driver marks it as enabled and proceeds to drive the pipe.

The root cause of the MSGBUS becoming unresponsive appears to be the NVIDIA dGPU not participating in S0ix (addressed via the NVreg_EnableS0ixPowerManagement module parameter). However, the i915 driver should handle PLL enable failures gracefully regardless of the trigger.

This series:
1. Fixes intel_cx0_pll_is_enabled() to check the hardware ACK bit, not just the driver-set REQUEST bit, so a PLL that failed to lock is correctly reported as disabled.
2. Adds error propagation through the DPLL enable path: changes the .enable callback to return int, threads errors through _intel_enable_shared_dpll() and intel_dpll_enable(), and checks the result in hsw_crtc_enable() and ilk_pch_enable().
3. Makes the CX0 PLL enable path return -ETIMEDOUT when the PHY fails to come out of reset or the PLL fails to lock.

Found on a Lenovo ThinkPad with Intel Ultra 7 155H and NVIDIA RTX 2000 Ada. Kernel traces before each crash:

i915: Failed to bring PHY A to idle.
i915: PHY A Read 0c70 failed after 3 retries.
i915: Timeout waiting for DDI BUF A to get active
i915: [CRTC:149:pipe A] flip_done timed out

Aaron Esau (3):
drm/i915/cx0: check PLL ACK bit in intel_cx0_pll_is_enabled() drm/i915/dpll: add error propagation to DPLL enable path drm/i915/cx0: return errors from CX0 PLL enable on failure

 drivers/gpu/drm/i915/display/intel_cx0_phy.c  | 54 ++++++++----
 drivers/gpu/drm/i915/display/intel_cx0_phy.h  |  6 +-
 drivers/gpu/drm/i915/display/intel_display.c  | 10 ++-
 drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 87 ++++++++++++++-----
 drivers/gpu/drm/i915/display/intel_dpll_mgr.h |  2 +-
 .../gpu/drm/i915/display/intel_pch_display.c  |  7 +-
 6 files changed, 117 insertions(+), 49 deletions(-)
Signature · 1 line
2.54.0
author
#1 lore raw

PATCH 1/3 drm/i915/cx0: check PLL ACK bit in intel_cx0_pll_is_enabled()

intel_cx0_pll_is_enabled() only checks the PCLK_PLL_REQUEST bit in PORT_CLOCK_CTL, which is set by the driver during the PLL enable sequence. It does not check the PCLK_PLL_ACK bit, which is the hardware's response indicating the PLL actually locked.

When the CX0 PHY MSGBUS is unresponsive (e.g. after a failed s2idle resume), the PLL register programming via MSGBUS silently fails and the PLL never locks, but intel_cx0_pll_is_enabled() returns true because the driver-set REQUEST bit is present. This causes all downstream state readout and verification to operate on a PLL that is not actually enabled.

Check both the REQUEST and ACK bits so that a PLL is only reported as enabled when the hardware has confirmed it locked.

Fixes bf8531990380 ("drm/i915/display: Allow display PHYs to reset power state")
Cc Mika Kahola <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_cx0_phy.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_cx0_phy.c +5 -2
index 7288065d2..4cacea802 100644
@@ -3581,9 +3581,12 @@ static bool intel_cx0_pll_is_enabled(struct intel_encoder *encoder)
 	struct intel_display *display = to_intel_display(encoder);
 	struct intel_digital_port *dig_port = enc_to_dig_port(encoder);
 	u8 lane = dig_port->lane_reversal ? INTEL_CX0_LANE1 : INTEL_CX0_LANE0;
+	u32 val;
 
-	return intel_de_read(display, XELPDP_PORT_CLOCK_CTL(display, encoder->port)) &
-			     intel_cx0_get_pclk_pll_request(lane);
+	val = intel_de_read(display, XELPDP_PORT_CLOCK_CTL(display, encoder->port));
+
+	return (val & intel_cx0_get_pclk_pll_request(lane)) &&
+	       (val & intel_cx0_get_pclk_pll_ack(lane));
 }
 
 void intel_mtl_tbt_pll_disable_clock(struct intel_encoder *encoder)
Signature · 1 line
2.54.0
#2 lore raw

RE: [PATCH 1/3] drm/i915/cx0: check PLL ACK bit in intel_cx0_pll_is_enabled()

drivers/gpu/drm/i915/display/intel_cx0_phy.c static bool intel_cx0_pll_is_enabled(struct intel_encoder *encoder)

Quoted 31 lines

-----Original Message-----
From: Aaron Esau <[email protected]>
Sent: Saturday, 9 May 2026 19.24
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; Vivi, Rodrigo <[email protected]>; [email protected]; [email protected]; Kahola, Mika <[email protected]>; [email protected]; Aaron Esau <[email protected]>
Subject: [PATCH 1/3] drm/i915/cx0: check PLL ACK bit in intel_cx0_pll_is_enabled()

intel_cx0_pll_is_enabled() only checks the PCLK_PLL_REQUEST bit in PORT_CLOCK_CTL, which is set by the driver during the PLL enable sequence. It does not check the PCLK_PLL_ACK bit, which is the hardware's response indicating the PLL actually locked.

When the CX0 PHY MSGBUS is unresponsive (e.g. after a failed s2idle resume), the PLL register programming via MSGBUS silently fails and the PLL never locks, but intel_cx0_pll_is_enabled() returns true because the driver-set REQUEST bit is present. This causes all downstream state readout and verification to operate on a PLL that is not actually enabled.

Check both the REQUEST and ACK bits so that a PLL is only reported as enabled when the hardware has confirmed it locked.

Fixes bf8531990380 ("drm/i915/display: Allow display PHYs to reset power state")
Cc Mika Kahola <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_cx0_phy.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_cx0_phy.c +0 -0
index 7288065d2..4cacea802 100644
@@ -3581,9 +3581,12 @@ static bool intel_cx0_pll_is_enabled(struct intel_encoder *encoder)

intel_cx0_pll_is_enabled() does not tell us that the PLL is enabled in HW, only that SW has set the enable/request bit. I agree the function name could be clearer about that since it really checks whether SW has initiated PLL enable. Given that, I don't think intel_cx0pll_readout_hw_state() or intel_cx0_pll_power_save_wa() needs to wait for the HW ack before reading state back. For this readout path, checking that enable was requested should be sufficient.

-Mika-

Quoted 17 lines
drivers/gpu/drm/i915/display/intel_cx0_phy.c +6 -3
 	struct intel_display *display = to_intel_display(encoder);
 	struct intel_digital_port *dig_port = enc_to_dig_port(encoder);
 	u8 lane = dig_port->lane_reversal ? INTEL_CX0_LANE1 : INTEL_CX0_LANE0;
+	u32 val;
 
-	return intel_de_read(display, XELPDP_PORT_CLOCK_CTL(display, encoder->port)) &
-			     intel_cx0_get_pclk_pll_request(lane);
+	val = intel_de_read(display, XELPDP_PORT_CLOCK_CTL(display,
+encoder->port));
+
+	return (val & intel_cx0_get_pclk_pll_request(lane)) &&
+	       (val & intel_cx0_get_pclk_pll_ack(lane));
 }
 
 void intel_mtl_tbt_pll_disable_clock(struct intel_encoder *encoder)
--

2.54.0

author
#3 lore raw

PATCH 2/3 drm/i915/dpll: add error propagation to DPLL enable path

In reply to Aaron Esau

The .enable callback in struct intel_dpll_funcs returns void, providing no way to report PLL enable failures to callers. This leaves _intel_enable_shared_dpll() and intel_dpll_enable() unable to detect when a PLL fails to lock, causing pll->on to be set to true unconditionally and the CRTC enable sequence to proceed against a non-functional PLL.

Change the .enable callback to return int. Update all implementations to return 0 (no functional change for platforms where enable cannot fail). Thread the error through _intel_enable_shared_dpll() and intel_dpll_enable(), rolling back active_mask and power domain state on failure.

Update hsw_crtc_enable() and ilk_pch_enable() to check the return value and bail out before attempting to drive a pipe with no working PLL.

No functional change on any platform yet, as all .enable callbacks return 0. A subsequent patch will make the CX0 PHY PLL enable path return errors on failure.

---
 drivers/gpu/drm/i915/display/intel_display.c  | 10 ++-
 drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 87 ++++++++++++++-----
 drivers/gpu/drm/i915/display/intel_dpll_mgr.h |  2 +-
 .../gpu/drm/i915/display/intel_pch_display.c  |  7 +-
 4 files changed, 80 insertions(+), 26 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +8 -2
index 0f82bf771..74bfeed31 100644
@@ -1645,8 +1645,14 @@ static void hsw_crtc_enable(struct intel_atomic_state *state,
 
 	intel_encoders_pre_pll_enable(state, crtc);
 
-	if (new_crtc_state->intel_dpll)
-		intel_dpll_enable(new_crtc_state);
+	if (new_crtc_state->intel_dpll) {
+		if (intel_dpll_enable(new_crtc_state)) {
+			drm_err(display->drm,
+				"[CRTC:%d:%s] PLL enable failed, aborting crtc enable\n",
+				crtc->base.base.id, crtc->base.name);
+			return;
+		}
+	}
 
 	intel_encoders_pre_enable(state, crtc);
 
drivers/gpu/drm/i915/display/intel_dpll_mgr.c +65 -22

252 lines not on this page · raw message

drivers/gpu/drm/i915/display/intel_dpll_mgr.h +1 -1
index 5b71c8605..21fae6fd0 100644
@@ -435,7 +435,7 @@ int intel_dpll_get_freq(struct intel_display *display,
 bool intel_dpll_get_hw_state(struct intel_display *display,
 			     struct intel_dpll *pll,
 			     struct intel_dpll_hw_state *dpll_hw_state);
-void intel_dpll_enable(const struct intel_crtc_state *crtc_state);
+int intel_dpll_enable(const struct intel_crtc_state *crtc_state);
 void intel_dpll_disable(const struct intel_crtc_state *crtc_state);
 void intel_dpll_swap_state(struct intel_atomic_state *state);
 void intel_dpll_init(struct intel_display *display);
drivers/gpu/drm/i915/display/intel_pch_display.c +6 -1
index 16619f7be..cb979a946 100644
@@ -399,7 +399,12 @@ void ilk_pch_enable(struct intel_atomic_state *state,
 	 * get_dpll unconditionally resets the pll - we need that
 	 * to have the right LVDS enable sequence.
 	 */
-	intel_dpll_enable(crtc_state);
+	if (intel_dpll_enable(crtc_state)) {
+		drm_err(display->drm,
+			"[CRTC:%d:%s] PCH PLL enable failed, aborting PCH enable\n",
+			crtc->base.base.id, crtc->base.name);
+		return;
+	}
 
 	/* set transcoder timing, panel must allow it */
 	assert_pps_unlocked(display, pipe);
Signature · 1 line
2.54.0
author
#4 lore raw

PATCH 3/3 drm/i915/cx0: return errors from CX0 PLL enable on failure

In reply to Aaron Esau

intel_cx0pll_enable() silently continues when the PHY fails to come out of SOC reset or the PLL fails to lock. When the CX0 PHY MSGBUS is unresponsive, this causes all subsequent PLL register writes to be silently dropped and the PLL lock request to time out, leaving the display hardware in a broken state.

Return -ETIMEDOUT from intel_cx0_phy_lane_reset() when the PHY fails to come out of SOC reset. Return -ETIMEDOUT from intel_cx0pll_enable() when the PLL fails to lock. Propagate these errors through intel_mtl_pll_enable() and mtl_pll_enable() to the shared DPLL framework, which (as of the previous patch) will abort the CRTC enable sequence rather than driving a pipe with a non-functional PLL.

Fixes 51390cc0e00a ("drm/i915/mtl: Add Support for C10 PHY message bus and pll programming")
---
 drivers/gpu/drm/i915/display/intel_cx0_phy.c  | 47 ++++++++++++-------
 drivers/gpu/drm/i915/display/intel_cx0_phy.h  |  6 +--
 drivers/gpu/drm/i915/display/intel_dpll_mgr.c |  4 +-
 3 files changed, 34 insertions(+), 23 deletions(-)
drivers/gpu/drm/i915/display/intel_cx0_phy.c +30 -17
index 4cacea802..f5c8444ef 100644
@@ -3103,8 +3103,8 @@ static u32 intel_cx0_get_pclk_refclk_ack(u8 lane_mask)
 	return val;
 }
 
-static void intel_cx0_phy_lane_reset(struct intel_encoder *encoder,
-				     bool lane_reversal)
+static int intel_cx0_phy_lane_reset(struct intel_encoder *encoder,
+				    bool lane_reversal)
 {
 	struct intel_display *display = to_intel_display(encoder);
 	enum port port = encoder->port;
@@ -3121,10 +3121,12 @@ static void intel_cx0_phy_lane_reset(struct intel_encoder *encoder,
 
 	if (intel_de_wait_for_set_us(display, XELPDP_PORT_BUF_CTL1(display, port),
 				     XELPDP_PORT_BUF_SOC_PHY_READY,
-				     XELPDP_PORT_BUF_SOC_READY_TIMEOUT_US))
-		drm_warn(display->drm,
-			 "PHY %c failed to bring out of SOC reset\n",
-			 phy_name(phy));
+				     XELPDP_PORT_BUF_SOC_READY_TIMEOUT_US)) {
+		drm_err(display->drm,
+			"PHY %c failed to bring out of SOC reset\n",
+			phy_name(phy));
+		return -ETIMEDOUT;
+	}
 
 	intel_de_rmw(display, XELPDP_PORT_BUF_CTL2(display, port), lane_pipe_reset,
 		     lane_pipe_reset);
@@ -3160,6 +3162,8 @@ static void intel_cx0_phy_lane_reset(struct intel_encoder *encoder,
 		drm_warn(display->drm,
 			 "PHY %c failed to bring out of lane reset\n",
 			 phy_name(phy));
+
+	return 0;
 }
 
 static void intel_cx0_program_phy_lane(struct intel_encoder *encoder, int lane_count,
@@ -3220,17 +3224,18 @@ static u32 intel_cx0_get_pclk_pll_ack(u8 lane_mask)
 	return val;
 }
 
-static void intel_cx0pll_enable(struct intel_encoder *encoder,
-				const struct intel_cx0pll_state *pll_state)
+static int intel_cx0pll_enable(struct intel_encoder *encoder,
+			       const struct intel_cx0pll_state *pll_state)
 {
 	int port_clock = pll_state->use_c10 ? pll_state->c10.clock : pll_state->c20.clock;
 	struct intel_display *display = to_intel_display(encoder);
 	enum phy phy = intel_encoder_to_phy(encoder);
 	struct intel_digital_port *dig_port = enc_to_dig_port(encoder);
+	struct ref_tracker *wakeref = intel_cx0_phy_transaction_begin(encoder);
 	bool lane_reversal = dig_port->lane_reversal;
 	u8 maxpclk_lane = lane_reversal ? INTEL_CX0_LANE1 :
 					  INTEL_CX0_LANE0;
-	struct ref_tracker *wakeref = intel_cx0_phy_transaction_begin(encoder);
+	int ret;
 
 	/*
 	 * Lane reversal is never used in DP-alt mode, in that case the
@@ -3246,7 +3251,9 @@ static void intel_cx0pll_enable(struct intel_encoder *encoder,
 	intel_program_port_clock_ctl(encoder, pll_state, port_clock, lane_reversal);
 
 	/* 2. Bring PHY out of reset. */
-	intel_cx0_phy_lane_reset(encoder, lane_reversal);
+	ret = intel_cx0_phy_lane_reset(encoder, lane_reversal);
+	if (ret)
+		goto out;
 
 	/*
 	 * 3. Change Phy power state to Ready.
@@ -3296,9 +3303,12 @@ static void intel_cx0pll_enable(struct intel_encoder *encoder,
 	if (intel_de_wait_us(display, XELPDP_PORT_CLOCK_CTL(display, encoder->port),
 			     intel_cx0_get_pclk_pll_ack(INTEL_CX0_BOTH_LANES),
 			     intel_cx0_get_pclk_pll_ack(maxpclk_lane),
-			     XELPDP_PCLK_PLL_ENABLE_TIMEOUT_US, NULL))
-		drm_warn(display->drm, "Port %c PLL not locked\n",
-			 phy_name(phy));
+			     XELPDP_PCLK_PLL_ENABLE_TIMEOUT_US, NULL)) {
+		drm_err(display->drm, "Port %c PLL not locked\n",
+			phy_name(phy));
+		ret = -ETIMEDOUT;
+		goto out;
+	}
 
 	/*
 	 * 11. Follow the Display Voltage Frequency Switching Sequence After
@@ -3320,7 +3330,10 @@ static void intel_cx0pll_enable(struct intel_encoder *encoder,
 						    XELPDP_P2_STATE_READY);
 	}
 
+out:
 	intel_cx0_phy_transaction_end(encoder, wakeref);
+
+	return ret;
 }
 
 void intel_mtl_tbt_pll_calc_state(struct intel_dpll_hw_state *hw_state)
@@ -3458,11 +3471,11 @@ void intel_mtl_tbt_pll_enable_clock(struct intel_encoder *encoder, int port_cloc
 		       port_clock);
 }
 
-void intel_mtl_pll_enable(struct intel_encoder *encoder,
-			  struct intel_dpll *pll,
-			  const struct intel_dpll_hw_state *dpll_hw_state)
+int intel_mtl_pll_enable(struct intel_encoder *encoder,
+			 struct intel_dpll *pll,
+			 const struct intel_dpll_hw_state *dpll_hw_state)
 {
-	intel_cx0pll_enable(encoder, &dpll_hw_state->cx0pll);
+	return intel_cx0pll_enable(encoder, &dpll_hw_state->cx0pll);
 }
 
 void intel_mtl_pll_enable_clock(struct intel_encoder *encoder,
drivers/gpu/drm/i915/display/intel_cx0_phy.h +3 -3
index ae98ac23e..1d6cc32d7 100644
@@ -28,9 +28,9 @@ struct intel_hdmi;
 void intel_clear_response_ready_flag(struct intel_encoder *encoder,
 				     int lane);
 bool intel_encoder_is_c10phy(struct intel_encoder *encoder);
-void intel_mtl_pll_enable(struct intel_encoder *encoder,
-			  struct intel_dpll *pll,
-			  const struct intel_dpll_hw_state *dpll_hw_state);
+int intel_mtl_pll_enable(struct intel_encoder *encoder,
+			 struct intel_dpll *pll,
+			 const struct intel_dpll_hw_state *dpll_hw_state);
 void intel_mtl_pll_disable(struct intel_encoder *encoder);
 enum icl_port_dpll_id
 intel_mtl_port_pll_type(struct intel_encoder *encoder,
drivers/gpu/drm/i915/display/intel_dpll_mgr.c +1 -3
index 78fd2e5f9..ce31deadc 100644
@@ -4441,9 +4441,7 @@ static int mtl_pll_enable(struct intel_display *display,
 	if (drm_WARN_ON(display->drm, !encoder))
 		return -ENODEV;
 
-	intel_mtl_pll_enable(encoder, pll, dpll_hw_state);
-
-	return 0;
+	return intel_mtl_pll_enable(encoder, pll, dpll_hw_state);
 }
 
 static void mtl_pll_disable(struct intel_display *display,
Signature · 1 line
2.54.0
#5 lore raw
In reply to Aaron Esau

Hi Aaron,

Short version: same regression reproduces on Arrow Lake-P with a different NVIDIA SKU, and NVreg_EnableS0ixPowerManagement=1 is already set on this machine. The S0ix knob alone is not sufficient to suppress the race here, so the i915 side of the fix matters even on systems where the NVIDIA workaround is in place.

Hardware:
Dell Pro Max 16 Premium (MA16250)
Intel Arrow Lake-P, Arc Pro 140T iGPU [8086:7d51] NVIDIA RTX PRO 1000 Blackwell [10de:2db8] NVIDIA driver 595.71.05 (open kernel modules)

Kernel: 7.0.4+deb13-amd64 (Debian 7.0.4-1~bpo13+1).

NVIDIA module options:
NVreg_EnableS0ixPowerManagement=1
NVreg_PreserveVideoMemoryAllocations=1
NVreg_DynamicPowerManagement=0x00

Representative trace from a recent boot, ~45 minutes in, on the internal eDP panel. The trigger was a VT switch out of the graphical session via systemd-logind (vt_ioctl, fbcon_switch, intel_fbdev_pan_display), not a direct s2idle resume; a suspend/resume cycle had occurred earlier in the same boot:

i915 0000:00:02.0: [drm] *ERROR* Failed to bring PHY A to idle. i915 0000:00:02.0: [drm] *ERROR* PHY A Read 0c70 failed after 3 retries. i915 0000:00:02.0: [drm] *ERROR* PHY A Write 0c70 failed after 3 retries. i915 0000:00:02.0: [drm] *ERROR* Timeout waiting for DDI BUF A to get active i915 0000:00:02.0: [drm] *ERROR* Timed out waiting for DP idle patterns i915 0000:00:02.0: [drm] *ERROR* [CRTC:149:pipe A] flip_done timed out i915 0000:00:02.0: [drm] *ERROR* [CRTC:149:pipe A] mismatch in port_clock

                                   (expected 540000, found 61440)

WARNING ... intel_modeset_verify_crtc+0x325/0x550 [i915] WARNING ... verify_single_dpll_state+0x1a2/0x560 [i915]

After this point, every suspend/resume cycle in the same boot is followed by [CONNECTOR:506:eDP-1] commit wait timed out, which is the symptom your series is meant to make the driver fail cleanly on.

Happy to test the series on this hardware. Let me know whether you prefer it tested against the current posting on drm-tip, or if a v2 is in flight.

One small note: the cover-letter title says Meteor Lake, but the cx0/C10 PHY path is shared with Arrow Lake-P (and Lunar Lake), so the scope of the fix is wider than the title suggests. Worth widening in v2 if you respin.

Thanks,
Marco

Signature · 2 lines
Marco Nenciarini - [email protected]
7C23 B804 3E65 D298 0A21  B6E2 589F 03F0 1BA5 5038
#6 lore raw
In reply to Aaron Esau
Quoted 23 lines · Aaron Esau

On Meteor Lake with a hybrid Intel/NVIDIA GPU setup, s2idle resume can leave the CX0 PHY MSGBUS unresponsive. When this happens, the PLL enable sequence silently fails: register writes via MSGBUS are dropped, the PLL never locks, but the driver marks it as enabled and proceeds to drive the pipe.

The root cause of the MSGBUS becoming unresponsive appears to be the NVIDIA dGPU not participating in S0ix (addressed via the NVreg_EnableS0ixPowerManagement module parameter). However, the i915 driver should handle PLL enable failures gracefully regardless of the trigger.

This series:
1. Fixes intel_cx0_pll_is_enabled() to check the hardware ACK bit, not just the driver-set REQUEST bit, so a PLL that failed to lock is correctly reported as disabled.
2. Adds error propagation through the DPLL enable path: changes the .enable callback to return int, threads errors through _intel_enable_shared_dpll() and intel_dpll_enable(), and checks the result in hsw_crtc_enable() and ilk_pch_enable().
3. Makes the CX0 PLL enable path return -ETIMEDOUT when the PHY fails to come out of reset or the PLL fails to lock.

Quoted 7 lines

Found on a Lenovo ThinkPad with Intel Ultra 7 155H and NVIDIA RTX 2000 Ada. Kernel traces before each crash:

i915: Failed to bring PHY A to idle.
i915: PHY A Read 0c70 failed after 3 retries.
i915: Timeout waiting for DDI BUF A to get active
i915: [CRTC:149:pipe A] flip_done timed out

This looks to be an issue in the BIOS/FW leaving the PHY and display output HW state in general in a broken state. Could you please open a ticket and provide a full dmesg log booting with drm.debug=0xe, so we have a better idea on the sequence and proper ways to work around such issues?

Thanks.

Quoted 17 lines

Aaron Esau (3):
drm/i915/cx0: check PLL ACK bit in intel_cx0_pll_is_enabled() drm/i915/dpll: add error propagation to DPLL enable path drm/i915/cx0: return errors from CX0 PLL enable on failure

 drivers/gpu/drm/i915/display/intel_cx0_phy.c  | 54 ++++++++----
 drivers/gpu/drm/i915/display/intel_cx0_phy.h  |  6 +-
 drivers/gpu/drm/i915/display/intel_display.c  | 10 ++-
 drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 87 ++++++++++++++-----
 drivers/gpu/drm/i915/display/intel_dpll_mgr.h |  2 +-
 .../gpu/drm/i915/display/intel_pch_display.c  |  7 +-
 6 files changed, 117 insertions(+), 49 deletions(-)
Signature · 1 line
2.54.0
#7 lore raw

Hi,

Quoted 46 lines

-----Original Message-----
From: Intel-xe <[email protected]> On Behalf Of Imre Deak
Sent: Monday, 11 May 2026 11.03
To: Aaron Esau <[email protected]>
Cc: [email protected]; [email protected]; dri- [email protected]; [email protected]; Vivi, Rodrigo <[email protected]>; [email protected]; [email protected]; Kahola, Mika <[email protected]>; [email protected]
Subject: Re: [PATCH 0/3] drm/i915/cx0: fix PLL enable failure handling on Meteor Lake

Quoted 9 lines · Aaron Esau

On Meteor Lake with a hybrid Intel/NVIDIA GPU setup, s2idle resume can leave the CX0 PHY MSGBUS unresponsive. When this happens, the PLL enable sequence silently fails: register writes via MSGBUS are dropped, the PLL never locks, but the driver marks it as enabled and proceeds to drive the pipe.

The root cause of the MSGBUS becoming unresponsive appears to be the NVIDIA dGPU not participating in S0ix (addressed via the NVreg_EnableS0ixPowerManagement module parameter). However, the

i915

Quoted 14 lines

driver should handle PLL enable failures gracefully regardless of the trigger.

This series:
1. Fixes intel_cx0_pll_is_enabled() to check the hardware ACK bit, not just the driver-set REQUEST bit, so a PLL that failed to lock is correctly reported as disabled.
2. Adds error propagation through the DPLL enable path: changes the .enable callback to return int, threads errors through _intel_enable_shared_dpll() and intel_dpll_enable(), and checks the result in hsw_crtc_enable() and ilk_pch_enable().
3. Makes the CX0 PLL enable path return -ETIMEDOUT when the PHY fails to come out of reset or the PLL fails to lock.

Quoted 7 lines

Found on a Lenovo ThinkPad with Intel Ultra 7 155H and NVIDIA RTX 2000 Ada. Kernel traces before each crash:

i915: Failed to bring PHY A to idle.
i915: PHY A Read 0c70 failed after 3 retries.
i915: Timeout waiting for DDI BUF A to get active
i915: [CRTC:149:pipe A] flip_done timed out

Quoted 4 lines

This looks to be an issue in the BIOS/FW leaving the PHY and display output HW state in general in a broken state. Could you please open a ticket and provide a full dmesg log booting with drm.debug=0xe, so we have a better idea on the sequence and proper ways to work around such issues?

And this with this instruction https://drm.pages.freedesktop.org/intel-docs/how-to-file-i915-bugs.html

Quoted 2 lines

Thanks.

Br,
Jani

Quoted 18 lines
Quoted 18 lines

Aaron Esau (3):
drm/i915/cx0: check PLL ACK bit in intel_cx0_pll_is_enabled() drm/i915/dpll: add error propagation to DPLL enable path drm/i915/cx0: return errors from CX0 PLL enable on failure

 drivers/gpu/drm/i915/display/intel_cx0_phy.c  | 54 ++++++++----
drivers/gpu/drm/i915/display/intel_cx0_phy.h  |  6 +-
drivers/gpu/drm/i915/display/intel_display.c  | 10 ++-
drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 87 ++++++++++++++-----
drivers/gpu/drm/i915/display/intel_dpll_mgr.h |  2 +-
.../gpu/drm/i915/display/intel_pch_display.c  |  7 +-
 6 files changed, 117 insertions(+), 49 deletions(-)

--
2.54.0

maintainer
#8 lore raw
In reply to Aaron Esau
Quoted 11 lines · Aaron Esau

On Meteor Lake with a hybrid Intel/NVIDIA GPU setup, s2idle resume can leave the CX0 PHY MSGBUS unresponsive. When this happens, the PLL enable sequence silently fails: register writes via MSGBUS are dropped, the PLL never locks, but the driver marks it as enabled and proceeds to drive the pipe.

The root cause of the MSGBUS becoming unresponsive appears to be the NVIDIA dGPU not participating in S0ix (addressed via the NVreg_EnableS0ixPowerManagement module parameter). However, the i915 driver should handle PLL enable failures gracefully regardless of the trigger.

The way I read this is: There's an issue with an out-of-tree proprietary driver, you can only reproduce the issue with said proprietary driver, and the upstream driver should jump through hoops to workaround the issue in the proprietary driver, in ways that we won't be able to test in our CI. And the expectation to work around this upstream is because you can't really do anything about the proprietary driver.

Is that about right?

Apart from adding a bunch of generic error handling code superficially unrelated to the proprietary driver.

The reason the CRTC enable path generally doesn't have error propagation is that 1) the allowed errors on atomic commit are *very* limited, 2) nonblocking commits are even more limited, and 3) even on failures the display pipe must be running.

You simply can't bail out in the middle of hsw_crtc_enable() like suggested in patch 2.

See [1] for more. Also see parts about tainted kernels in [2].

BR,
Jani.

[1] https://docs.kernel.org/gpu/drm-kms.html#c.drm_mode_config_funcs
[2] https://docs.kernel.org/admin-guide/reporting-issues.html

Quoted 32 lines

This series:
1. Fixes intel_cx0_pll_is_enabled() to check the hardware ACK bit, not just the driver-set REQUEST bit, so a PLL that failed to lock is correctly reported as disabled.
2. Adds error propagation through the DPLL enable path: changes the .enable callback to return int, threads errors through _intel_enable_shared_dpll() and intel_dpll_enable(), and checks the result in hsw_crtc_enable() and ilk_pch_enable().
3. Makes the CX0 PLL enable path return -ETIMEDOUT when the PHY fails to come out of reset or the PLL fails to lock.

Found on a Lenovo ThinkPad with Intel Ultra 7 155H and NVIDIA RTX 2000 Ada. Kernel traces before each crash:

i915: Failed to bring PHY A to idle.
i915: PHY A Read 0c70 failed after 3 retries.
i915: Timeout waiting for DDI BUF A to get active
i915: [CRTC:149:pipe A] flip_done timed out

Aaron Esau (3):
drm/i915/cx0: check PLL ACK bit in intel_cx0_pll_is_enabled() drm/i915/dpll: add error propagation to DPLL enable path drm/i915/cx0: return errors from CX0 PLL enable on failure

 drivers/gpu/drm/i915/display/intel_cx0_phy.c  | 54 ++++++++----
 drivers/gpu/drm/i915/display/intel_cx0_phy.h  |  6 +-
 drivers/gpu/drm/i915/display/intel_display.c  | 10 ++-
 drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 87 ++++++++++++++-----
 drivers/gpu/drm/i915/display/intel_dpll_mgr.h |  2 +-
 .../gpu/drm/i915/display/intel_pch_display.c  |  7 +-
 6 files changed, 117 insertions(+), 49 deletions(-)
Signature · 1 line
Jani Nikula, Intel
#9 lore raw

✗ LGCI.VerificationFailed: failure for drm/i915/cx0: fix PLL enable failure handling on Meteor Lake

In reply to Aaron Esau
== Series Details ==

== Series Details ==

Series: drm/i915/cx0: fix PLL enable failure handling on Meteor Lake
URL : https://patchwork.freedesktop.org/series/166328/
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!

#10 lore raw

✗ LGCI.VerificationFailed: failure for drm/i915/cx0: fix PLL enable failure handling on Meteor Lake

In reply to Aaron Esau
== Series Details ==

== Series Details ==

Series: drm/i915/cx0: fix PLL enable failure handling on Meteor Lake
URL : https://patchwork.freedesktop.org/series/166331/
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!