Repository navigation
soc: apple: display gate: let the port controllers wait instead of probing them again - #564
Merged
RyanTheTide merged 2 commits intoOct 29, 2026
Merged
Conversation
…obing them again The T6041 stage enables dcpext1, the processor that registers the routes' Type-C mode switches, only once the PMP is bound. The Type-C port controllers usually probe before that. The Type-C core passes over a mode switch inside a disabled node, so they took only the USB muxes, and once dcpext1 was bound the stage probed each of them again to take the display ones too. Probing a port controller again unbinds it first, and its remove drops the USB role, so dwc3 removed its xHCI host and the PHY went to sleep. That happened about 7.7 s into every such boot, right after the SuperSpeed root hub had registered and while udev and the devices behind a dock were being enumerated. The host came back about 1.4 s later. On the J616s with a dock attached, boots now and then stopped there, with PID 1 making no further progress. Add a supplier link from each port controller wired to a route to the processor that registers that route, when the stage prepares the tree. The device core then defers the port controller until the processor is bound, so it probes once and takes every mux it is wired to, and USB comes up once. If the stage falls back to the internal panel, drop the links and attach the port controllers, which then probe with the USB muxes as before. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
|
Loop result on the J616s, test kernel fleet4 + this commit:
Still to do: a dock-attached loop once the dock is back on the J616s, and a Neo sanity boot through the fleet kit. 🤖 Generated with Claude Code |
…bled A port controller whose node is disabled never gets a device. The link from it to the route's processor then lands on its nearest device, the already bound SPMI controller, as a sync-state-only link, which the device core refuses with an error on every boot: apple-spmi 509188000.spmi: Failed to create device link (0x180) with supplier 602e00000.dcp for /spmi@509188000/usb-pd@c There is nothing to hold for such a controller, so add the link only for the enabled ones. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]> Co-Authored-By: Claude Opus 5.5 <[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 the J616s, boots now and then stopped about 8 s in. The screen froze on the USB lines, PID 1 made no further progress after "Finished systemd-vconsole-setup", and the machine had to be reset. Four of the J616s boots on the night of 28 October stopped this way, and one the night before.
Cause
device_reprobe()on each port controller wired to a route, so that it would take the display muxes too.cd321x_remove()drops the USB role, so dwc3 removed its xHCI host ("remove, state 1" on both buses) and the USB3 PHY went to sleep. That happened about 7.7 s into every such boot, right after the SuperSpeed root hub had registered and while udev and the devices behind a dock were being enumerated. The port controllers then probed again and USB came back about 1.4 s later.Change
staged_reprobe_port_controllers()and itsdevice_reprobe()are gone.Testing on the J616s (test kernel: fleet4 with only this commit added)
Still to do
🤖 Generated with Claude Code