Skip to content

Dual-stream 5K: qualify the integrated tile and rollback paths across supported boards #45

Open

Description

@chriskearney

Tiled route-following and shared-clock handling are integrated. J413 has reported4K60 LG UltraFine output with the base-M2 allowlists, coldplug, both-port hotplug and resume. Earlier dual-tile test successes do not qualify every final package/board.

Priority: P2 · Readiness: needs-retest · Implementation owner: kernel

Baseline: Aurora 2026.10.11.13, development commit 5dcdeb8cda8dafe203d4d2f03952ade392c3fe23. Earlier reproductions retain the exact versions above.

Code: drivers/gpu/drm/apple/dcp.c · drivers/phy/apple/atc.c · drivers/thunderbolt/apple.c

Completion criteria: Verify full-panel5K without seam/duplicate connector, two-tile teardown, failed setup rollback, coldplug, DPMS, route changes, replug and actual resume. Preserve ordinary single-stream/independent monitors. Keep unsupported T6030 DP-IN1 admission and base-M2 qualification explicit.

Original reports/candidate: original #12 · original #16

This ticket carries forward the remaining work; source inclusion, release delivery and hardware acceptance are recorded separately.

Activity

  1. added
    priority:P2
    owner:kernel
    area:display
    status:needs-retest
    on Oct 11, 2026
  2. added
    launch:follow-up
    on Oct 11, 2026
  3. cb2206 commented on Oct 12, 2026

    @cb2206

    J314S (14" M1 Pro), Aurora 2026.10.11.15 (7.1.12-2-20261011.15-sep-ARCH, stock release package and its j314s device tree, m1n1 aurora17). LG UltraFine 5K on the left Thunderbolt port; Dell U2715H on the built-in HDMI port for the handback case.

    Case Result
    Coldplug, LG alone 5120x2880@60 on one connector (DP-1, no second LG connector). Both tiles joined on dcpext1 (28cc00000.dcp); the route and both tiles then followed CRTC 59 to dcpext0 (289c00000.dcp). 0 × Invalid argument.
    Full panel Continuous across the tile seam, no offset or duplicated half (checked by eye)
    DPMS off/on (LG alone) Back at 5K about 1 s after enable, no 80000104 retries
    HDMI plugged while the LG holds dcpext0 HDMI display takes its pipeline back: the route and both tiles moved to dcpext1 (CRTC 73) and the Dell took dcpext0 (CRTC 59). Both lit about 1 s later.
    DPMS with both All three outputs back in about 1.5 s
    HDMI unplugged, then DPMS Route and both tiles followed CRTC 59 back to dcpext0, 5K
    Unplug/replug tiled: dpin1 released on unplug. On replug it went straight to dcpext0, both tiles joined, 5K in about 1.4 s, and it stayed lit (the shared-clock blackout from 12.6 is gone)
    s2idle Resumed at 5K, mode set as the resume finished, stayed lit

    Not exercised: failed setup rollback (I have no way to make the crossbar or DPTX port 1 fail on purpose), T6030, base M2.

  4. seancain commented on Oct 12, 2026

    @seancain

    j413 (MacBook Air 13" M2, 2022) on aurora-2026.10.11.15: tiling is detected and both tiles route, but the 5120x2880 modeset fails with a DCP link fault and drops the display. 4K60 is unaffected.

    • Machine: apple,j413 / apple,t8112. GRUB, Omarchy, Hyprland 0.56.2.
    • Firmware: asahi,system-fw-version = 26.6.2, asahi,os-fw-version = 13.5.
    • Build: linux-aurora 7.1.12.aurora2-20261011.15, m1n1-aurora 1.6.1.aurora17-5, installed with --read-only. No local patches; the stock thunderbolt_apple and phy-apple-atc modules are loaded.
    • Display: LG UltraFine 5K (27MD5KL), original TB3 cable, left-back port (381f00000.nhi / 38304c000.mux), no dock.

    Coldplug and replug: both tiles are found and routed. 5120x2880 is offered alongside 3840x2160, and the default 3840x2160@60 works:

    DPTXPort: port 0 carries tile (0,0) of a 2x1 tiled 5120x2880 display
    apple-display-crossbar 38304c000.mux: Switched dpin0 to dispext1,0
    tiled: dpin1 joins dpin0 on DPTX port 1 (crossbar state 3)
    DPTXPort: port 1 carries tile (1,0) of a 2x1 tiled 5120x2880 display
    apple-display-crossbar 38304c000.mux: Switched dpin1 to dispext1,1
    dcp_hotplug() connected:1 valid_mode:0 nr_modes:6
    set_digital_out_mode(color:43 timing:38) "3840x2160": 60 522610 ...
    

    Selecting 5120x2880@60 (Hyprland mode = "5120x2880@60", scale 2): DCP rejects the link and disconnects. The connector goes disconnected until a physical replug, and the replug comes back cleanly at 3840x2160.

    set_digital_out_mode(color:43 timing:2000) "5120x2880": 60 995220 5120 5136 5200 5600 2880 2881 2889 2962 0x48 0x0
    set_digital_out_mode() color mode depth:10 format:0 colorimetry:16 eotf:0 range:0 vrr:0
    DPTXPort: firmware reports link fault 22 on target 0:0
    DPTXPort: firmware reports link fault 22 on target 0:0
    set_digital_out_mode finished:7228
    dcp_hotplug() connected:0 valid_mode:0 nr_modes:6
    dcp_poweroff() done
    DPTXPort: SET_LINK_RATE 0x0
    DPTXPort: INACTIVE_SINK_DETECTED (keep waiting for lanes)
    dcp_dptx_disconnect(port=0)
    DPTXPort: DEACTIVATE
    dcp_dptx_disconnect(port=1)
    DPTXPort: DEACTIVATE
    

    The modeset goes out as a single full-panel 5120x2880 timing (timing 2000, about 995 MHz pixel clock), and the fault is on target 0:0. The OS firmware is 13.5 on this Mac. I only tried once, and haven't tested 5K at boot (with the mode already set in the config) or 10-bit vs 8-bit.

    Happy to rerun with extra logging or a test build.

  5. chriskearney commented on Oct 13, 2026

    @chriskearney
    Author

    Current M3 Pro report: connecting one monitor to a CalDigit TS3 Plus DisplayPort output and a second via a USB-C video adapter on its downstream Thunderbolt port leaves the second monitor blank. This is a valid CalDigit dual-display configuration, but T6030 currently rejects the second DP-IN tunnel:

    thunderbolt-apple-acio 701ac0000.cio: dpin1: DP tunnel setup failed: -95
    

    The explicit restriction is in apple_dp_tunnel_t6030_pclk: only source 0/2 on DP-IN0 are admitted. This is an independent-monitor case, separate from tiled 5K qualification.

    Release .16 includes #96's built-in HDMI plus one dock display coexistence fix. Its supported workaround is one monitor on the dock and the second on the Mac's built-in HDMI. DP-IN1 still needs implementation and testing; it is not enabled by that release.

  6. seancain commented on Nov 7, 2026

    @seancain

    j413 (MacBook Air 13" M2) on .20: 5K still fails. The DCP firmware prepares a single DP link for the whole 5120x2880 mode instead of splitting it across both tiles' ports. This follows up my October report, with more firmware logging.

    Setup

    Mac MacBook Air 13" M2, 2022 (apple,j413 / apple,t8112)
    Base aurora-2026.10.17.20, kernel 7.1.12-2-20261017.20 built from the release recipe
    Local patches The t8112 PCIe-C patches from #143 (they don't touch display code), plus a logging-only change to drivers/gpu/drm/apple (below)
    Firmware asahi,os-fw-version 13.5, so the DCP uses the DCP_FIRMWARE_V_13_5 / iomfb_v13_3 path
    Boot loader m1n1-aurora 1.6.1.aurora17-5, uboot-asahi 2026.07.asahi2-1
    Display LG UltraFine 5K (27MD5KL), original cable, left port (381ac0000.cio, dcpext 271c00000.dcp)

    Result

    Same as in October:

    • 3840x2160@60 works.
    • Selecting 5120x2880@60 (hl.monitor, scale 2) fails with link fault 22.
    • The one difference: the connector now comes back at 4K by itself about 10 s later. Before, it needed a replug.

    What the firmware logs

    When the monitor connects, both tiles are found and routed:

    DPTXPort: port 0 carries tile (0,0) of a 2x1 tiled 5120x2880 display
    PAVSplitDisplay.cpp:104: [AFK]single tile support: tileLocation … (0,0)
    PAVSplitDisplay.cpp:126: [AFK]matching: tileLocation … (0,0)
    DPTXPort: port 1 carries tile (1,0) of a 2x1 tiled 5120x2880 display
    PAVSplitDisplay.cpp:107: [AFK]no single tile support: tileLocation … (1,0)
    

    The 5K modeset, with the AFK mailbox lines removed:

    set_digital_out_mode(color:43 timing:2000) "5120x2880": 60 995220 5120 5136 5200 5600 2880 2881 2889 2962 0x48 0x0
    set_digital_out_mode() color mode depth:10 format:0 colorimetry:16 eotf:0 range:0 vrr:0
    nifiedPipeline.cpp:7462: set_digital_out_mode: Modeset requested for colorID: 43, timingID: 2000
    PPipeDCP_H13P.cpp:18011: Dual pipe disabled offset 0
    nifiedPipeline.cpp:7700: set_mode: timingID: 2000 colorID: 43
    eoInterfaceIOAV.cpp:632: mapped video element 1200
    DPTXPort: firmware reports link fault 22 on target 0:0
    DPTXPort: firmware reports link fault 22 on target 0:0
    eoInterfaceIOAV.cpp:911: IOMFBStatus VideoInterfaceIOAV::plug_gated(IOAVVideoInterface *, bool): IOAVVideoInterface prepareLink() failed with 0xe00002ed
    nifiedPipeline.cpp:7739: setmode failed
    nifiedPipeline.cpp:7758: ERROR: Modeset done, but pipe not enabled: fSoftPowerState=1, fDisplayPowerState=0, fHardPowerState=1
    nifiedPipeline.cpp:7465: set_digital_out_mode returned 80000104
    

    The fault names only target 0:0. There's no sign of a second link, or of port 1, during the modeset.

    Why I think the link can't come up

    This is my reading of the logs, not confirmed:

    • Both ports train at SET_LINK_RATE 0x14 (HBR2). Assuming four lanes, one link carries at most 17.28 Gb/s.
    • The full 5K timing is 995.22 MHz. At the 10 bpc the driver requests, that's about 29.9 Gb/s. At 8 bpc it would still be about 23.9 Gb/s, so color depth alone won't fix it.
    • One tile (2560x2880, about 497.6 MHz) needs about 14.9 Gb/s, which fits on one link.

    So the mode can only work split across ports 0 and 1. On this Mac, the firmware tries prepareLink() for the whole mode on target 0:0, and that fails with 0xe00002ed (kIOReturnNotResponding).

    What I ruled out

    • Tiling-state callbacks. iomfb_v13_3 answers callback 114 (get_tiling_state) with 0 and callback 115 (set_tiling_state) with false. I suspected the firmware asks whether the display is tiled before picking a layout. I added logging to both callbacks (and changed nothing else). The firmware never calls either one: not at boot, not at hotplug, and not during the 5K modeset.
    • Dual pipe disabled offset 0. This isn't specific to 5K. It's logged on every modeset, including 4K on the external display and the built-in panel's modeset on 231c00000.dcp.
    • The dispext clock. The firmware logs minimum-frequency property not found and getClockFrequency(0) (0) < videoClock … Giving up on frequencies, because clk_dispext0 is a fixed clock with frequency 0. But that's also true on t8103, t600x and t602x, and 5K works on the M1 Pro. The t8112 ADT doesn't store a rate either: dispext0's clcdclk_frequency is a reference to a pmgr function, <0x7e 'RGBC' 1>.

    Questions

    1. For the J314S (M1 Pro) report above: could you post the same firmware lines from a 5K modeset that works? I'm interested in the PAVSplitDisplay lines at hotplug, the timing ID 5120x2880 uses, any mapped video element and prepareLink lines, and which link targets appear. Your asahi,os-fw-version would help too. Comparing them should show whether the M1 Pro firmware prepares both links for the same request, or whether it gets a different timing.
    2. For maintainers: is there a known way for the host to ask the 13.5 DCP firmware for a split (two-link) modeset? For example a different timing ID, a per-tile timing on both ports, or a property set before set_digital_out_mode. Or is this tied to the base-M2 DCP?

    I can rerun with more logging or try a test build.

    The logging-only change
    --- a/drivers/gpu/drm/apple/iomfb_template.c
    +++ b/drivers/gpu/drm/apple/iomfb_template.c
    @@ dcpep_cb_get_tiling_state
     {
    +	/* CAI-5K pass 1: log what the firmware asks; the answer is unchanged. */
    +	dev_info(dcp->dev,
    +		 "cai5k: get_tiling_state event=%#x param=%#x value=%#x value_null=%u -> value 0 ret 1\n",
    +		 req->event, req->param, req->value, req->value_null);
     	return (struct dcpep_get_tiling_state_resp){
    @@
    +/* CAI-5K pass 1: same answer as trampoline_false, but logged. */
    +static u8 __maybe_unused
    +dcpep_cb_set_tiling_state(struct apple_dcp *dcp,
    +			  struct dcpep_get_tiling_state_req *req)
    +{
    +	dev_info(dcp->dev,
    +		 "cai5k: set_tiling_state event=%#x param=%#x value=%#x value_null=%u -> false\n",
    +		 req->event, req->param, req->value, req->value_null);
    +	return false;
    +}
    @@
    +TRAMPOLINE_INOUT(trampoline_set_tiling_state, dcpep_cb_set_tiling_state,
    +		 struct dcpep_get_tiling_state_req, u8);
    --- a/drivers/gpu/drm/apple/iomfb_v13_3.c
    +++ b/drivers/gpu/drm/apple/iomfb_v13_3.c
    -	[115] = trampoline_false, /* set_tiling_state */
    +	[115] = trampoline_set_tiling_state, /* CAI-5K pass 1: logged, still false */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:displaylaunch:follow-upowner:kernelpriority:P2status:needs-retest

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions