Skip to content

drm/apple: park the DCPEXT crossbar output for s2idle too - #1723

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
neodpwake/dcpext-s2idle-route
Nov 12, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
neodpwake/dcpext-s2idle-route

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

On a T8140 (J700) with deep sleep selectable, an s2idle wake leaves the external display on the USB-C port disconnected. Every wake logs dcp_dptx_connect: timed out waiting for port 0 link configuration, then external display activation failed: -110 and display link not restored (-5), reporting it disconnected. The display stays off until the next deep sleep or a reboot.

Cause: when deep is selected, dwc3-apple stops the USB host for every sleep, s2idle included, so nothing holds the ATC power domain. The display crossbar sits in that domain and loses its route during the s2idle, while the mux core still holds the selection. DCPEXT's link then never trains: the firmware reports DEVICE_NOT_RESPONDING on every attempt. The s2r path already parks the crossbar output before the sleep and selects it again after the wake (dcp_typec_route_park()/dcp_typec_route_unpark()). The s2idle path of an H17P external DCP did not. This change makes it do the same.

Tested on J700 with a USB-C dock and an external DP monitor, aura b12 Stage 2, mem_sleep = s2idle [deep], one-shot kernels on integration cc76969:

without (cc76969) / 7.3.0-36 with this change
s2idle, displays on, external back 0/6 (-110, then disconnected) 10/10
s2idle, displays off, then DPMS on fails on DPMS on (-110) 3/3 + DPMS on with modeset
s2r, external back 5/5 5/5 (outside the SIO case below, which fails the same way without this change)
new kernel errors / AVC -110 x2 per wake / 0 0 / 0

With mem_sleep = s2idle (USB host kept) or without deep at all, s2idle was already fine. The dyndbg trace shows power domain was off, restoring mode 3 on the ATC PHY at the failing wakes.

Not caused by this change and present without it on cc76969: after an s2idle with the displays off, DPMS on, then an s2r, the SIO firmware crashes on the s2r wake ("Shim DMA unavailable", DPA-1 tx) and channel 102 refuses later sleeps. 7.3.0-36 doesn't show this.

🤖 Generated with Claude Code

With deep sleep selected, the USB controller stops for every sleep,
s2idle included, and stops holding the ATC power domain. The display
crossbar sits in that domain, so an s2idle can now power it off as
well. It wakes with its route lost while the mux core still holds the
selection, and DCPEXT's link never trains again: the firmware reports
DEVICE_NOT_RESPONDING, the activation times out with -110, and the
external display stays disconnected until the next deep sleep or a
reboot.

The s2r path already takes the crossbar output down before the sleep
and selects it again after the wake. Do the same in the s2idle path of
an H17P external DCP.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide
RyanTheTide merged commit 3fe3966 into integration/aurora Nov 12, 2026
1 check passed
@RyanTheTide
RyanTheTide deleted the neodpwake/dcpext-s2idle-route branch November 12, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant