Skip to content

drm/apple: iboot: leave the outputs to the DCPEXTs when iBoot lit nothing (J873g) - #2873

Merged
RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
sithglan:thomas/j873-dcp-unlit
Nov 23, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
sithglan:thomas/j873-dcp-unlit

Conversation

@sithglan

@sithglan sithglan commented Nov 22, 2026 •

Copy link
Copy Markdown

The change is one commit, e91600d, on integration/aurora (#1800, which it was stacked on, has merged).

Problem

On the M6 (J873g), HDMI stays black when nothing is plugged into the back-right USB-C port at boot, for example with a USB4 enclosure there instead of a monitor:

  • the main DCP (286e00000) reads the EDID, then set_power failed: -110;
  • the link drops to "0 active lanes" about 30 s later;
  • an HDMI replug then blocks the display path for about 20 s on further AFK timeouts.

It happens with this driver and with the desktop's apple_dcpib alike.

Cause

  • iBoot lights a display only on the back-right port (ATC3, route 1, through the main DCP). With nothing there it lights none, and /chosen carries its 640x1136 placeholder framebuffer.
  • The main DCP was then never set up for a display, and its SET_POWER never completes, on HDMI and on USB-C alike. An AFK trace shows the firmware sends nothing between the EDID and the timeout, so it is not waiting on the AP.
  • A 1280x720 boot surface instead of the placeholder's size changes nothing.
  • The DCPEXTs start cold without trouble.
  • The main DCP also probes first and powers the shared HDMI PHY. The DCPEXTs then see a source on it and never register the shared port, so the cold main DCP is the only HDMI candidate.

Fix

dcp_iboot_probe() keeps the main DCP unbound with -ENODEV when the bootloader left it no display, as it already does for DCPEXT0 when HDMI is on the main DCP.

  • The decision reads the hardware state the bootloader leaves. The main DCP has a display when:
    • the HDMI PHY's source select names it, or
    • a USB-C port has the link atc_port_init() adopts: powered, routed from the main DCP by the crossbar, CFG 0x1b.
  • The checks are shared with atc_port_init().
  • A port in USB4 has the same CFG but routes from no DCP (route field 0xf).
  • t8152_atc_boot_link() reads the ports once, by the first DCP to probe, under the port claim lock, before any DCP claims or powers one. A deferred main DCP still gets the bootloader's state.
  • If a port can't be read, the main DCP binds as before.
  • The boot arguments can't tell the two cases apart: the video block's display flag is 1 when iBoot lit nothing as well.
  • With the main DCP off, the boot runs on the two DCPEXTs for HDMI and the three USB-C ports.
  • DCPEXT0 then takes the shared HDMI port (source 1), and DCPEXT1 takes the USB-C display.
  • It also evicts simpledrm from the bootloader's framebuffers. Nothing scans them out, and sway would otherwise show one as a third output.
  • When the main DCP has a display from the bootloader, nothing changes.

Testing (M6, Ugreen USB4 enclosure on back-right, EIZO on HDMI and on back-left USB-C)

  • drm/apple (7.3.0-aurora-j873-unlit+ = the J873g: USB4 on the rear USB-C ports through tipd and atc.c (T8152 routers, PCIe-C, M6 Mac mini) #2178 stack 5f89281a + this commit, 3 boots each of 0efc574 and 7582d1e):
    • each boot logs "no display from the bootloader: main DCP off, the DCPEXTs drive the outputs";
    • DCPEXT0: "HDMI: PHY up from cold, source 1", then modeset 2560x1440@60;
    • DCPEXT1: "USB-C display on ATC1 now", then modeset 2560x1440@60;
    • sway has the two EIZOs, both active at 2560x1440;
    • no SET_POWER failure, 0 failed units;
    • simpledrm is gone, and the enclosure is attached as before.
  • The signal, from the M6 journal (all boots of 2026-11-22):
    • all 21 boots with a monitor on back-right logged ATC3 inherited state: active 1, ... route 1 (cfg 0x1b) from the main DCP;
    • all 16 boots without one logged ATC3 powered down.
  • ATC3 in USB4 (enclosure up, read on the running system):
    • DP PS on, CFG 0x1b, XBAR 0 / +0x3c 0, route field 0xf;
    • so it has no route from the main DCP.
  • The first version (the 640x1136 check) in the desktop's apple_dcpib passed 6 of 6 boots with the same result. The M6 runs it by default.
  • Before the change, every boot with the enclosure on back-right had HDMI black, on both drivers.
  • checkpatch --strict clean.
  • Cable rows (at ce8ee11, on the rebased J873g: USB4 on the rear USB-C ports through tipd and atc.c (T8152 routers, PCIe-C, M6 Mac mini) #2178 stack):
    • Back-right lit: the main DCP binds on the inherited ATC3 link.
    • No display at all: console, VT switch and 0 failed units; a later HDMI plug lights it.
    • HDMI only: iBoot lit nothing; DCPEXT0 drives HDMI.
    • A back-right monitor plugged in after an unlit boot: DCPEXT1 takes ATC3.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown

Review at 629dd55 (non-author, draft; reviewed only the new commit on top of #1800). The diagnosis is clear and the fix direction (leave a cold main DCP unbound, let the DCPEXTs take the outputs) looks right; the detection needs a better signal.

  • dcp_iboot_unlit() decides "iBoot lit nothing" from the framebuffer size: the first simple-framebuffer under /chosen being exactly 640x1136. That is a property of one iBoot's placeholder, not a statement from the firmware: another iBoot release, another board or a different placeholder size changes it, and a real 640x1136 surface would read as unlit. iBoot's boot arguments already say whether it brought a display up (the video block's display-on flag, which the boot loader sees before it writes /chosen). Having aura export that as a /chosen property, and keying on it here, would make the decision come from what the machine reports. If that flag turns out not to distinguish this case, saying so in the commit message (and why the size is the only signal) would at least document the constant.
  • The eviction of simpledrm happens before the DCPEXTs have bound. If neither DCPEXT then brings up an output (no cable, a DCPEXT probe failure), the machine ends with no framebuffer at all, where today it keeps the (unscanned) simpledrm one. That matches "nothing scans it out", but a boot with no display attached anywhere is worth a row to confirm nothing else (Plymouth, the console, a VT switch) depended on the simpledrm device existing.
  • Only the first simple-framebuffer child is checked in dcp_iboot_unlit(), while the eviction loop walks all of them; using the same walk for both keeps the two in step if /chosen ever carries two.
  • The commit merges cleanly on the current integration/aurora tip together with J873g: HDMI and USB-C displays in drm/apple (iBoot interface, T8152 Gen3 display DARTs, M6 Mac mini) #1800.

Assisted-by: LLM (Claude:Opus 5.5)

@sithglan
sithglan force-pushed the thomas/j873-dcp-unlit branch from 629dd55 to 0efc574 Compare November 22, 2026 23:17
@sithglan

Copy link
Copy Markdown
Author

Thanks. Reworked in 0efc574; it still merges cleanly on the integration tip together with #1800.

The signal. I checked the boot-arguments flag first. On a boot where iBoot lit nothing it reads 1 as well (aura's Stage 1 log: display 0x1, 640x1136). It can't tell the two cases apart, and the placeholder size was the only difference /chosen offered.

So the decision now reads the hardware state the bootloader leaves, the state the driver adopts anyway. The main DCP has a display from the bootloader when:

  • the HDMI PHY's source select names it, or
  • one of its USB-C ports is powered, has a running crossbar route from it, and has its link up (t8152_atc_lit()).

Otherwise it stays unbound. Details:

  • The ATC checks are now small helpers shared with atc_port_init() (atc_powered, atc_routed, atc_route_started, atc_link_up), so the two can't drift. The 640x1136 constant is gone, and the commit message says why the boot arguments don't help.
  • The M6 journal backs it up. All 21 boots of 2026-11-22 with a monitor on back-right logged ATC3 inherited state: active 1, ... route 1 (cfg 0x1b) from the main DCP. All 16 without one logged ATC3 powered down.
  • The route check matters because a port in USB4 looks like a display otherwise. I read ATC3 with the enclosure up in USB4: DP PS on, CFG 0x1b (the same as a DP link), XBAR 0, +0x3c 0, route field 0xf. With the route required, it isn't taken for a display, even when the main DCP probes after USB4 is up.
  • The condition is now source != 0 rather than source < 0. A main DCP that probes after DCPEXT0 already has HDMI (source 1) is just as cold. It used to bind there and now stays off.

One walk. Only the eviction walk is left: dcp_iboot_drop_boot_fbs() goes over every /chosen simple-framebuffer.

Rows (7.3.0-aurora-j873-unlit+ = the #2178 stack 5f89281 + this commit, enclosure on back-right, EIZOs on HDMI and back-left):

  • 3 of 3 boots: "no display from the bootloader: main DCP off, ...".
  • DCPEXT0 took HDMI (source 1) and DCPEXT1 took ATC1, both modeset 2560x1440@60.
  • sway had both outputs active.
  • No SET_POWER failure, 0 failed units, the enclosure attached, simpledrm gone.

Still open: a boot with no display attached anywhere. It needs someone at the machine to unplug both monitors; I'll add the row once that's done. Plymouth isn't installed on that system, so the row covers the console and a VT switch.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown

Re-review at 0efc574 (non-author, draft; only the commit on top of #1800). Read from the diff and the tree, nothing built or booted here.

The three points from the first round are answered: the 640x1136 constant is gone and the decision reads the PHY source select and the ATC power/route/link state; the boot-arguments flag is explained in the commit message; one walk is left for the framebuffers. No new cmdline or module parameter, Signed-off-by is there. The code is reached only through the apple,t8152-dcp-iboot compatible (dcp.c:10203), and "main DCP" is taken from DT (apple,hdmi, apple,dp-source, the port children), so there is no chip or board gate and no other Mac runs it. The register offsets in the new helpers are #1800's, moved, not new.

What is left:

  1. The lit case has no row at this head. "When the main DCP has a display, nothing changes" rests on the 21 journal boots, and those lines were logged by the old atc_port_init(). The new test is stricter than what that function adopts: atc_port_lit() also needs atc_route_started() (t8152_atc.c:893), while port->active never did. If one boot has the link up with the route bits not yet set, the main DCP now stays off with a live monitor on it and simpledrm evicted. Please add boots at 0efc574 with a monitor on back-right (main DCP binds, both DCPEXT outputs as before), and one with HDMI only.

  2. Unknown reads as unlit. t8152_atc_lit() returns false when the node has no port children and no atc regs, or when an of_iomap() fails (t8152_atc.c:885-923), and with no apple,hdmi node source is -ENODEV, so iomfb_iboot.c:758 then unbinds the main DCP and drops the framebuffers. On the J873g DT that cannot happen, but a DT for this block without USB-C ports on the main DCP (or a mapping failure) would lose its only display. It would be safer the other way round: stay unbound only when at least one port was actually read and none is lit, and bind as before when nothing could be read.

  3. The reads are guarded by atc_powered() first, as in atc_port_init(), which is right. Two things differ from there. atc_port_init() runs under atc_owner_lock; t8152_atc_lit() takes nothing. And atc_powered() looks at DP_0 and the PSD only (t8152_atc.c:792), while atc_activate()/atc_deactivate() of a DCPEXT step through four dependencies without that lock. With the usual order (main DCP first) nothing else touches the ports yet. If the main DCP is deferred behind a DCPEXT, the DCPEXT's hotplug work can gate a port between the check and the XBAR/CFG reads, and that hangs the bus. The same DCPEXT can also claim the bootloader's port before the main DCP looked (no atc_owner entry yet), after which the main DCP reads "not lit". A sentence in the commit message on why the order holds, or the check under the lock with the power transitions, would close it.

  4. A row for a monitor plugged into back-right after an unlit boot would be good: the main DCP is gone then, so the port has to be picked up by a DCPEXT, and the machine has two pipes for four connectors. The commit message could say that an unlit boot runs with two controllers.

  5. Small things:

    • iomfb_iboot.c:762: dp_source is always 0 when t8152_atc_lit() is called, so the !dp_source && test really means "this is the main DCP". A named bool would read better than the argument.
    • The comment above dcp_iboot_probe() (iomfb_iboot.c:730) still says the bootloader drives HDMI from the main DCP without a USB-C display. The commit message says it lights nothing then. One of the two needs a word.
    • dcp_iboot_drop_boot_fbs() (iomfb_iboot.c:142) only removes a simpledrm that has already bound; if simpledrm loads after this probe, the extra output is back. Fine for a built-in simpledrm, worth a line in the comment.
  6. Still owed from the first round, as you say: the boot with no display attached anywhere (console, VT switch, 0 failed units, and a later hotplug lighting up).

Points 1 and 6 are the rows I would want before this leaves draft; 2 is the one code change I would ask for.

Assisted-by: LLM (Claude:Opus 5.5)

@sithglan
sithglan force-pushed the thomas/j873-dcp-unlit branch from 0efc574 to 7582d1e Compare November 22, 2026 23:37
@sithglan

Copy link
Copy Markdown
Author

Thanks. Reworked in 7582d1e; it still merges cleanly on the integration tip together with #1800.

  1. The lit test is now exactly what atc_port_init() adopts: powered, routed from the main DCP (route field), and CFG 0x1b. atc_route_started() is gone again, so the 21 journal boots logged active 1 under the same conditions this test checks. USB4 is still excluded: in CIO the route field reads 0xf, so no DCP is named. If a USB4 port ever did read as lit, the main DCP would bind, which is the old behaviour. The rows at this head with a monitor on back-right, and with HDMI only, need someone to move the cables. I'll add them then.
  2. Unknown now binds. t8152_atc_boot_link() returns 1 for lit, 0 when every port was read and none is lit, and an error when a port can't be read (no regs, an of_iomap() failure, a node without ports or atc regs). The main DCP stays unbound only on 0.
  3. Ordering. Every DCP calls t8152_atc_boot_link() first thing in dcp_iboot_probe(). The first one reads the shared ports under atc_owner_lock and caches the answer; the others get that cached answer. This happens before any DCP claims or powers a port: claims happen in atc_detect() and power transitions in KMS, both after a probe completes. So a main DCP deferred behind a DCPEXT still gets the bootloader's state, and no DCPEXT hotplug work can gate a port during the read.
    • The reads keep atc_powered() first, as atc_port_init() does. A power transition by the USB4 PHY driver during the read is the same exposure atc_port_init() already has.
    • The commit message describes this.
  4. Two controllers. The commit message now says an unlit boot runs on two display controllers for HDMI and the three USB-C ports. The row with a monitor plugged into back-right after an unlit boot also needs the cables moved.
  5. Small things:
    • There is a named main_dcp now. dp_source is read once, outside the condition.
    • The probe comment and the commit message now describe the case actually seen. With no monitor on back-right, iBoot lit nothing, even with HDMI and back-left in use (every boot seen). J873g: HDMI and USB-C displays in drm/apple (iBoot interface, T8152 Gen3 display DARTs, M6 Mac mini) #1800's comment covers a boot without any USB-C display, where the bootloader drives HDMI from source 0. The code keeps the main DCP whenever source == 0, and the HDMI-only row will show which of the two holds there.
    • dcp_iboot_drop_boot_fbs() now says it detaches an already bound simpledrm: the built-in one (CONFIG_DRM_SIMPLEDRM=y here) binds long before this probe, while a module loaded later would bind again.
  6. The no-display row is still owed.

Row at this head (7.3.0-aurora-j873-unlit+ = 5f89281 + this commit, same setup):

  • 3 of 3 boots: the main DCP stayed off.
  • DCPEXT0 took HDMI (source 1) and DCPEXT1 took ATC1, both modeset 2560x1440@60, and sway had both outputs active.
  • No SET_POWER failure, 0 failed units, the enclosure attached.

checkpatch --strict is clean.

Still open, all needing someone at the machine:

  • back-right lit (main DCP binds);
  • HDMI only;
  • no display attached;
  • a monitor plugged into back-right after an unlit boot.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown

Re-checked at 7582d1e. The code points are closed:

  • The lit test is back to what atc_port_init() adopts (powered, routed from the main DCP, CFG 0x1b), so the 21 journal boots now describe this test.
  • t8152_atc_boot_link() returns an error when a port cannot be read and the main DCP stays unbound only on 0, so missing ports, regs or a failed of_iomap() bind as before. A port that errors ends the walk with that error, which also binds; that is the safe side.
  • The read is done once under atc_owner_lock and cached. Both DCPEXTs point apple,usb-c-ports at &dcp_iboot (t8152-j873-dcp.dtsi:525, :588) and the main DCP has no such property, so every caller resolves to the same port set and the first caller's answer is the main DCP's answer whichever probes first.
  • Named main_dcp, the comments and the two-controller note in the commit message are fine.

No code concerns from my side. Before this leaves draft it needs the four rows you list, all at the machine: back-right lit (main DCP binds), HDMI only, no display attached (console, VT switch, 0 failed units), and a monitor plugged into back-right after an unlit boot.

Assisted-by: LLM (Claude:Opus 5.5)

@sithglan
sithglan force-pushed the thomas/j873-dcp-unlit branch from 7582d1e to ce8ee11 Compare November 23, 2026 00:45
@sithglan

Copy link
Copy Markdown
Author

#1797 has merged with its trailer-free head a7907d9. This branch still carried #1797's earlier commits, including 17cb996 with the Co-Authored-By: trailer Ryan asked to drop. I replaced them with the merged ones.

  • This is a message-only remap: 7582d1e → ce8ee11, and the tree is identical (d9b98688a8d2).
  • This PR's own 29 commits keep the same patches, authors, dates and messages. GitHub now lists only those commits.
  • It merges cleanly into integration/aurora daa9e2d.

Assisted-by: LLM (Claude:Opus 5.5)

…hing

On the J873g, iBoot lights a display only on the back-right USB-C port,
through the main DCP. With no monitor there it lit none in every boot
seen, with HDMI alone too, so the comment that had the bootloader drive
HDMI from the main DCP without a USB-C display is corrected. The main
DCP was then never set up for a display: its SET_POWER never completes,
on HDMI and on USB-C alike. The firmware sends nothing until the
timeout, and the output stays black. The DCPEXTs start cold without
trouble.

The main DCP also probes first and powers the shared HDMI PHY. The
DCPEXTs then see a source on it and never register the shared port, so
the cold main DCP is the only HDMI candidate.

Keep the main DCP unbound when the bootloader left it no display, as
DCPEXT0 already is when HDMI is on the main DCP. The shared HDMI port
and the USB-C displays then go to the DCPEXTs, so such a boot runs on
two display controllers for HDMI and the three USB-C ports. Evict
simpledrm from the bootloader's framebuffers too: nothing scans them
out, and each would show up as an extra output. When the main DCP has a
display from the bootloader, nothing changes.

The decision reads the state the bootloader leaves in the hardware. The
main DCP has a display when the HDMI PHY's source select names it, or
when a USB-C port has the link atc_port_init() adopts: powered, routed
from the main DCP by the crossbar, its common block up. The checks are
shared with atc_port_init(). A port in USB4 runs its common block the
same way but routes from no DCP. The ports are read once, by the first
DCP to probe and under the port claim lock, before any DCP claims or
powers one, so a deferred main DCP still gets the bootloader's state.
Where a port cannot be read, the main DCP binds as before.

The boot arguments cannot tell the cases apart: the video block's
display flag is 1 when iBoot lit nothing as well, and /chosen then only
differs by the size of iBoot's placeholder surface, which no firmware
interface defines.

Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
@sithglan
sithglan force-pushed the thomas/j873-dcp-unlit branch from ce8ee11 to e91600d Compare November 23, 2026 04:50
@sithglan

Copy link
Copy Markdown
Author

Rows 1 and 6 from the second round, plus HDMI only and the back-right hotplug. All were on the M6 at ce8ee11 + the rebased #2178 stack (7.3.0-aurora-j873-unlit+), with the cables moved by hand between boots. The new head e91600d only corrects the probe comment (see the end).

Setup at boot Main DCP Outputs Failures
Monitor on back-right + HDMI binds: ATC3: inherited state: active 1, rate 0xa, route 1 (cfg 0x1b) main DCP takes HDMI (PHY up from cold, source 0), DCPEXT0 takes ATC3, both 2560x1440 in sway none
No display anywhere off ("no display from the bootloader") none; both DCPEXTs bound and waiting none
HDMI only off DCPEXT0 takes HDMI (source 1), 2560x1440 none

Row 1 (back-right lit). The split is the same as before this change: the main DCP takes the shared HDMI port from cold and hands ATC3 to DCPEXT0, as in the 21 earlier lit boots.

Row 6 (no display).

  • The serial console and tty0 stay registered. chvt 2 and back returned normally.
  • getty@tty1, the serial getty and sway kept running. 0 failed units, no SET_POWER failures, no warnings.
  • With simpledrm evicted and no sink, there is no fbdev at all: both DCPEXTs log Cannot find any crtc or sizes.
  • Plugging HDMI in later: DCPEXT1 took the shared port (PHY up from cold, source 2) and ran modeset 2560x1440@60. Then fb0: apple-dcpibdrmf, "Console: switching to colour frame buffer device 320x90", and sway lit DP-2.

Back-right hotplug after an unlit boot (point 4), with HDMI up on DCPEXT0: DCPEXT1 moved to ATC3 (USB-C display on ATC3 now, PHY from cold), trained HBR2 and set 2560x1440. sway had both outputs. With the main DCP off, the two DCPEXTs cover HDMI plus one USB-C port, as the commit message says.

HDMI only. iBoot lit nothing here either (/chosen carries the 640x1136 placeholder, and the main DCP saw no HDMI source). So the comment above dcp_iboot_probe() was wrong: the bootloader does not drive HDMI from the main DCP without a USB-C display. e91600d rewrites that comment (a source a bootloader did set is still adopted), and the commit message says so. checkpatch --strict is clean.

All three points from the second round are now covered (2 as code, 1 and 6 as rows), so I'm marking this ready for review. The M6 is back on its default kernel.

Assisted-by: LLM (Claude:Opus 5.5)

@sithglan
sithglan marked this pull request as ready for review November 23, 2026 04:50
@sithglan sithglan changed the title drm/apple: iboot: leave the outputs to the DCPEXTs when iBoot lit nothing (J873g, on #1800) drm/apple: iboot: leave the outputs to the DCPEXTs when iBoot lit nothing (J873g) Nov 23, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formal §1–§6 pre-PR review at e91600dbdc83.

Checklist verification

  • §1 No model gating: Pass. Reached via apple,t8152-dcp-iboot; main_dcp is derived from DT properties (apple,hdmi, apple,dp-source, apple,usb-c-ports), and the unlit decision reads hardware PHY source select and ATC power/crossbar/CFG state (atc_powered(), atc_routed(), atc_link_up(), shared with atc_port_init()). The earlier 640x1136 placeholder heuristic is gone.
  • §2 Production-ready, no hacks: Pass. Default kernel command line, no module parameters, no sleeps/retries, clean probe ordering.
  • §3 Safety: Pass. Bus-hang guard (atc_powered()) precedes XBAR/CFG MMIO reads via short-circuit, t8152_atc_boot_link() runs once under guard(mutex)(&atc_owner_lock) before any DCP claims or powers a port, all of_iomap() mappings are unconditionally unmapped and device_node refs scoped via __free/for_each_child_of_node_scoped, and any missing/unreadable port returns an error so the main DCP fails safe and binds as before (only boot_link == 0 leaves it unbound).
  • §4 Clean-room & attribution: Pass. Single commit e91600dbdc83 with human author/committer (Thomas Glanzmann <thomas@glanzmann.de>) and human Signed-off-by: only, zero AI trailers in commits (prior #1797 trailer resolved), Assisted-by: present in PR body, no Apple code/disassembly.
  • §5 Evidence: Pass. All prior review blockers from rounds 1 and 2 are closed with full M6 (J873g) hardware coverage: unlit enclosure + dual EIZOs (6 boots), 21 lit + 16 unlit journal boots, back-right lit + HDMI (main DCP binds), HDMI only (iBoot lit nothing, DCPEXT0 takes HDMI; probe comment corrected in e91600dbdc83), no display attached (console + chvt 2 + 0 failed units + later HDMI hotplug bringing up fb0/sway), and back-right hotplug after unlit boot (DCPEXT1 takes ATC3). checkpatch --strict clean.
  • §6 Naming: Pass.
  • CI: host-tests passed (runs/45114215889), no action_required fork runs pending, diff is safe.

Ready for MERGETRAIN-LINUX4.

Assisted-by: LLM (Gemini 4 Neon)

@RyanTheTide

Copy link
Copy Markdown

Merge-train review at e91600d (non-author pass): BLOCKER(s): one owed row, no code blockers.

Since the last reviewed tree (7582d1e, remapped to ce8ee11 with the same tree), the head only rewrites the two comments in dcp_iboot_probe() (8+/7- in iomfb_iboot.c). The new text matches the HDMI-only row: iBoot lit nothing, and DCPEXT0 took HDMI with source 1. The earlier code review still holds: the decision reads the bootloader's PHY source and ATC state, an unreadable port binds as before, and there is no board or firmware gate. It merges cleanly onto integration/aurora f9d2146, and the commit has a human author and Signed-off-by only.

The open item is row equivalence. Every cable row at ce8ee11 ran on 7.3.0-aurora-j873-unlit+ = this commit plus the rebased #2178 stack. #2178 is still open, and it rewrites the code this change relies on: t8152_atc.c (+/-117, "power the T8152 ATC PHYs through their PHY driver", "take the T8152 USB-C display state from the Type-C ports") and iomfb_iboot.c. So none of the rows shows what integration/aurora plus this PR alone does on the M6, and the unlit case in particular now leaves both outputs to DCPEXTs that start cold.

What would clear it (either one)
  1. One boot each on the M6 with integration/aurora f9d2146 + e91600d and no J873g: USB4 on the rear USB-C ports through tipd and atc.c (T8152 routers, PCIe-C, M6 Mac mini) #2178: back-right monitor lit (the main DCP binds), and no back-right monitor with HDMI attached (the main DCP stays off, DCPEXT0 drives HDMI, 0 failed units).
  2. Or land J873g: USB4 on the rear USB-C ports through tipd and atc.c (T8152 routers, PCIe-C, M6 Mac mini) #2178 first. The posted rows then describe the tip plus this PR.

Assisted-by: LLM (Claude:Opus 5.5)

@sithglan

Copy link
Copy Markdown
Author

Rows on integration/aurora f9d2146 + e91600d, without #2178, as asked (option 1).

Kernel: 7.3.0-aurora-j873-int2873+ = f9d2146 + this commit (68c82828faf9 there). It uses the M6's usual config. The J873g DTB has the ANS node and the three apple,t8152-dcp-iboot nodes, and no USB4 routers (those are #2178's). Root is on the internal SSD (nvme0n1p4) in every boot.

boot iBoot (/chosen fb) main DCP outputs failed units / SET_POWER failures / warnings
no back-right monitor (enclosure there), HDMI + back-left 640x1136 placeholder off: "no display from the bootloader: main DCP off, the DCPEXTs drive the outputs" DCPEXT0: HDMI: PHY up from cold, source 1, modeset 2560x1440@60. DCPEXT1: USB-C display on ATC1 now, 2560x1440@60 0 / 0 / 0
monitor on back-right, HDMI 1280x720 (lit) binds: ATC3: inherited state: active 1, rate 0xa, route 1, reversed 1 (cfg 0x1b) main DCP: HDMI: PHY up from cold, source 0, 2560x1440@60. DCPEXT0: USB-C display on ATC3 now, 2560x1440@60 0 / 0 / 0

Both outputs were active in sway at 2560x1440 in both boots. The split matches the rows on the #2178 stack.

The first boot also gives the back-right hotplug without #2178. The back-left monitor was moved to back-right while it ran: DCPEXT1 sink unplugged, then USB-C display on ATC3 now, was ATC1, a cold PHY start at HBR2, and modeset 2560x1440@60.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide
RyanTheTide merged commit 5e073c6 into aurora-silicon:integration/aurora Nov 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants