Repository navigation
drm/apple: release a stale DPTX link before borrowing a Type-C route - #2
Merged
DjDeveloperr merged 1 commit intoSep 18, 2026
Conversation
DCP's DP2HDMI HPD handler leaves disconnects to the firmware, so after the HDMI display on a hybrid pipeline is unplugged dptxport[0].connected stays true. When the fabric then borrows that pipeline for a Type-C port, dcp_dptx_connect() sees the stale flag, returns early and never trains the link, leaving the Type-C display dark. Release the leftover link when a route is activated; route availability already excludes a pipeline whose fixed output is live. Signed-off-by: Marcelo Alcantara <[email protected]>
This was referenced Sep 17, 2026
cb2206
pushed a commit
to cb2206/linux
that referenced
this pull request
Oct 5, 2026
…inal-replug drm/apple: let a dock replug restore a parked dcpext scanout
This was referenced Nov 12, 2026
This was referenced Nov 15, 2026
This was referenced Nov 21, 2026
This was referenced Nov 22, 2026
This was referenced Nov 23, 2026
This was referenced Nov 23, 2026
This was referenced Nov 24, 2026
RyanTheTide
added a commit
that referenced
this pull request
Nov 25, 2026
make pacman-pkg rebuilds and relinks the kernel (the build number goes from #1 to #2), so the standalone Image.gz and modules tarball were not the binaries in the Arch package, and the QEMU smoke run booted the former. When the Arch packages build, take Image.gz (decoded from the package's EFI zboot vmlinuz), the modules tree (with depmod run against the package's System.map), the DTBs, the config and System.map from the runtime and headers packages, so every asset and the smoke run use the binaries that ship. Without makepkg the previous direct path stays. Checked against the Arch packages of run 45429366862: the staged Image equals the zstd payload of the package's vmlinuz byte for byte; 5915 modules with modules.dep; 1629 DTBs. Signed-off-by: Ryan Murray <[email protected]>
This was referenced Nov 27, 2026
This was referenced Nov 28, 2026
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.
The DP2HDMI HPD handler leaves disconnects to the firmware, so after the HDMI display on a hybrid pipeline is unplugged,
dptxport[0].connectedstays true. When the Type-C fabric later borrows that pipeline for a Type-C port,dcp_dptx_connect()sees the stale flag, logsconnected=1, returns early and never trains the link — the Type-C display stays dark.This releases the leftover link at the start of
dcp_typec_route_activate(). It is a no-op when nothing is connected, and route availability already excludes a pipeline whose fixed output is live, so it cannot tear down an active HDMI display.Tested on a MacBook Pro 16" M2 Max (J416c), internal panel plus four externals, on top of
tb@ 38c14f6. After unplugging HDMI and routing a Type-C display onto that pipeline, the log now showsdcp_dptx_disconnect(port=0)followed by a realdcp_dptx_connect(... route=borrowed ... connected=0)instead of the early return, with no DPTX faults.One related issue remains and is not addressed here: in some replug sequences the borrowed route connects cleanly but every atomic modeset on the port's CRTC is rejected with
-EINVAL, so the sink deactivates after ~10 s and reconnects in a loop until reboot. Each Type-C encoder advertises a single fixedpossible_crtcsbit, which may be related. Happy to share logs.Independent of the companion crossbar patch (
mux: apple-display-crossbar: replace the T602x selector fields instead of OR-ing them), which fixes the pipeline wedge seen in the same scenario.