Repository navigation
drm/apple: park the DCPEXT crossbar output for s2idle too - #1723
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, thenexternal display activation failed: -110anddisplay 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:With
mem_sleep=s2idle(USB host kept) or without deep at all, s2idle was already fine. The dyndbg trace showspower domain was off, restoring mode 3on 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