Skip to content

Support USB4/TB DisplayPort Tunneling - #9

Open
zachfleeman wants to merge 2 commits into
omacom:tbfrom
zachfleeman:usb4_dp_tunneling
Open

zachfleeman wants to merge 2 commits into
omacom:tbfrom
zachfleeman:usb4_dp_tunneling

Conversation

@zachfleeman

@zachfleeman zachfleeman commented Sep 21, 2026 •

Copy link
Copy Markdown

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:

  • External display at 3840×2160 100 Hz.
  • Boot with the dock attached.
  • Unplug/replug while awake.
  • Suspend/resume with the dock attached.
  • Unplug/replug while suspended.

Limitations

  • Board configuration is currently limited to j316c.
  • One tunneled display per DCP.
  • Type-C port 0 shares its display pipeline with HDMI.
  • Refresh rate limited to 100Hz with 4K monitor

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]>
@chriskearney

Copy link
Copy Markdown

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 integration/aurora. Shared functionality alone does not establish that the complete series is integrated. A narrow rebase should identify the remaining changes against #27, #38, #40 and #41; tracking this in roadmap #56.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

launch:follow-up Retained improvements or broader retests outside the initial launch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants