Repository navigation
thunderbolt: apple: T6050: J714s: the dock's USB4 link trains in place after a deep sleep (follow-up to #2046) - #2057
Merged
Conversation
Contributor
Author
|
Hardware result for the first commit on the public set. Default candidate intg9c6 =
The second commit (8724c2c, DP connectors kept across the sleep) is running in the next candidate now. This PR leaves draft once that confirms. |
Contributor
Author
|
Hardware result for the second commit on the public set. Default candidate intg9c7, which carries 8724c2c, on the J714s with the TB5 dock:
Together with the intg9c6 result above, both commits are proven on the public set. Taking this out of draft. Both branches are being rebased onto |
DjDeveloperr
force-pushed
the
j714s/usb4-dock-sleep
branch
from
November 16, 2026 07:18
6dd5cdb to
52ab745
Compare
DjDeveloperr
force-pushed
the
j714s/usb4-dock-wake
branch
from
November 16, 2026 07:18
8724c2c to
9e0de8b
Compare
DjDeveloperr
marked this pull request as ready for review
November 16, 2026 07:18
…gh the PHY's restart On a wake from a USB4 router's sleep in place, the J714s dock's link reached the dock's broadcast and never trained: about a second later the router firmware reported its sideband lost and the dock was given up, then enumerated again from cold. The difference from macOS is the order of the router's own domain, ATC2_CIO. macOS takes it down before the PHY's CIO shutdown, and raises it at the wake only once the PHY's CIO mode is up (right after UC_TNBL_DONE and the PHY's reset release), before CIO_PCIE, CIO_USB and AUSS. Here the router's DART still held the domain at the entry, so the PMGR's driver raised it at the very start of the wake and the router was powered while the PHY was reset and started again. Take the domain down through the sleep driver at the entry, which then leaves it to this driver at the wake, and raise it right after the PHY. On a J714s with a Thunderbolt 5 dock the link then trains in place in about 0.35 s and the dock comes back with its tunnels. Signed-off-by: Diljit Singh <[email protected]>
… pipeline T6050's DP connectors are port/pipeline pairs. After a deep sleep in which the dock's USB4 router slept in place, the dock's DP IN 0 tunnel came back first and took the lowest free pipeline: the one a DP-alt display on another port had before the sleep. Both external displays then came back on other connectors (DP-2/DP-3 before, DP-1/DP-4 after), which compositor monitor rules, workspaces and wallpapers follow. Hold a tunnel's last pipeline for its return, for 20 s of running time after its teardown: the tunnel goes back there, waiting until that pipeline is free and ready, and takes another only after that. With this both displays keep their connectors and modes across the sleep. Signed-off-by: Diljit Singh <[email protected]>
DjDeveloperr
changed the base branch from
j714s/usb4-dock-sleep
to
integration/aurora
November 16, 2026 08:53
DjDeveloperr
force-pushed
the
j714s/usb4-dock-wake
branch
from
November 16, 2026 08:54
9e0de8b to
af2f974
Compare
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.
Follow-up to #2046, which is now merged. The two commits are rebased onto
integration/aurora(b2026aa) with their patch-ids unchanged (e913d5ab…, ca9ff11e…), and the files they touch are byte-identical to the tested branch head 9e0de8b.What it fixes
With #2046 the J714s puts the dock's USB4 router to sleep in place across a deep sleep. On every wake, though, the dock was given up and enumerated again from cold, about 14 s later:
The cause is the power order of the router's own domain, ATC2_CIO:
Changes
thunderbolt: apple: T6050: J714s: keep the router's domain down through the PHY's restartapple_sleep_domain_set()). The sleep driver then leaves it alone at the wake.drm/apple: fabric: J714s: a returning DP tunnel goes back to its last pipelineTesting
.enter) sleeps across two boots, every wake trained in place:Not in this PR (follow-ups)
dart_cio_check()(T6050: J714s: a USB4 dock's router sleeps in place across a deep sleep, and the dock comes back #2046) does not catch everything the later snapshot refuses. A stream enabled above the DART's hardware stream count is refused only bydart_cio_capture()(-EUCLEAN). On the NHI side that refusal would come after the router's sleep, in the panic path that the early check is meant to avoid. Real hardware should not report enable bits beyond its stream count, so this is theoretical. The fix is to make the same check indart_cio_check()once the requesters are stopped.tools/asahi/dart-cio-power-tests.ccurrently records the gap as the one capture-only refusal (kind 8).🤖 Generated with Claude Code