Repository navigation
Support USB4/TB DisplayPort Tunneling - #9
Open
zachfleeman wants to merge 2 commits into
Open
zachfleeman wants to merge 2 commits into
zachfleeman wants to merge 2 commits into
Conversation
Drive an external display over a USB4/Thunderbolt dock on Apple Silicon. The DCP hands its DPTX endpoint to an ATC DP IN bridge instead of the fixed PHY, the display crossbar follows the native connect and take-down sequence, and the Thunderbolt layer pairs the host DP IN adapter with the dock's DP OUT so the tunnel carries the link. Also fixes the sleep handling, so that a dock survives suspend and a cable changed while the machine is asleep, and adds host-side selftests that compile the real driver functions against mocked MMIO. Tested on a MacBook Pro 16" M1 Max (j316c) with a CalDigit TS4.
Remove redundant PLL setup code, consolidate the j316c route declarations, and tighten lifecycle and locking comments without changing hardware sequencing. Mark the host selftests executable for the kselftest runner.
chriskearney
referenced
this pull request
in chriskearney/aurora-linux
Sep 27, 2026
…t-remote ASoC: cs42l42/cs42l84: Apple headset remote (vol up/down, play/pause)
chriskearney
pushed a commit
to chriskearney/aurora-linux
that referenced
this pull request
Oct 1, 2026
…rce early A Thunderbolt DP tunnel on t8103 leaves the crossbar's DP IN output at its idle source, dispext0, until DCP reports DidChangeLinkConfig. That works there because dispext0 is the only external pipeline. On t600x the Type-C ports are driven by dcpext1 (mux index 2), and a pipeline whose output still points at dispext0 activates the link, gets no answer from the sink and gives up before it sets a link rate. Add apple_dpxbar_preselect(), which writes only the source select of a DP IN output that is not selected yet. The connection itself still comes up in the normal mux selection. MUX_IDLE_DISCONNECT puts the output back at its idle source. Also skip the FIFO_RD_PCLK1 cycle-slip toggle for DP IN on t6000, which runs without it, as found on j316c in omacom#9. The DP PHY output keeps the toggle. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Christian Bartels <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> [Chris Kearney: ported onto aurora-silicon/linux#8; comment and message reworded to describe the observed behaviour only.] Signed-off-by: Chris Kearney <[email protected]>
|
Keeping this PR open: the current tunneling stack shares some functionality, but this series also contains distinct DP input/API/device-tree changes and display selftests that are not fully accounted for in |
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.
Add USB4 DisplayPort tunnelling support for the M1 Max Macbook Pro (j316c), allowing an external display to run through a USB4/Thunderbolt dock. Based on work done in #2.
The feature is opt-in with
appledrm.usb4_dp=1.Validation
Tested on an M1 Max Macbook Pro with a CalDigit TS4 dock and 4K monitor:
Limitations