Repository navigation
drm/apple: iboot: leave the outputs to the DCPEXTs when iBoot lit nothing (J873g) - #2873
Conversation
|
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.
Assisted-by: LLM (Claude:Opus 5.5) |
629dd55 to
0efc574
Compare
|
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:
Otherwise it stays unbound. Details:
One walk. Only the eviction walk is left: Rows (
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) |
|
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 What is left:
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) |
0efc574 to
7582d1e
Compare
|
Thanks. Reworked in 7582d1e; it still merges cleanly on the integration tip together with #1800.
Row at this head (
checkpatch Still open, all needing someone at the machine:
Assisted-by: LLM (Claude:Opus 5.5) |
|
Re-checked at 7582d1e. The code points are closed:
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) |
7582d1e to
ce8ee11
Compare
|
#1797 has merged with its trailer-free head a7907d9. This branch still carried #1797's earlier commits, including 17cb996 with the
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>
ce8ee11 to
e91600d
Compare
|
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 (
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).
Back-right hotplug after an unlit boot (point 4), with HDMI up on DCPEXT0: DCPEXT1 moved to ATC3 ( HDMI only. iBoot lit nothing here either ( 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) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR review at e91600dbdc83.
Checklist verification
- §1 No model gating: Pass. Reached via
apple,t8152-dcp-iboot;main_dcpis 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 withatc_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 underguard(mutex)(&atc_owner_lock)before any DCP claims or powers a port, allof_iomap()mappings are unconditionally unmapped anddevice_noderefs 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 (onlyboot_link == 0leaves it unbound). - §4 Clean-room & attribution: Pass. Single commit
e91600dbdc83with human author/committer (Thomas Glanzmann <thomas@glanzmann.de>) and humanSigned-off-by:only, zero AI trailers in commits (prior#1797trailer 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 upfb0/sway), and back-right hotplug after unlit boot (DCPEXT1 takes ATC3). checkpatch--strictclean. - §6 Naming: Pass.
- CI:
host-testspassed (runs/45114215889), noaction_requiredfork runs pending, diff is safe.
Ready for MERGETRAIN-LINUX4.
Assisted-by: LLM (Gemini 4 Neon)
|
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 The open item is row equivalence. Every cable row at ce8ee11 ran on What would clear it (either one)
Assisted-by: LLM (Claude:Opus 5.5) |
|
Rows on integration/aurora f9d2146 + e91600d, without #2178, as asked (option 1). Kernel:
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 Assisted-by: LLM (Claude:Opus 5.5) |
5e073c6
into
aurora-silicon:integration/aurora
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:
286e00000) reads the EDID, thenset_power failed: -110;It happens with this driver and with the desktop's apple_dcpib alike.
Cause
/chosencarries its 640x1136 placeholder framebuffer.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.atc_port_init()adopts: powered, routed from the main DCP by the crossbar, CFG 0x1b.atc_port_init().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.Testing (M6, Ugreen USB4 enclosure on back-right, EIZO on HDMI and on back-left USB-C)
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 stack5f89281a+ this commit, 3 boots each of 0efc574 and 7582d1e):modeset 2560x1440@60;modeset 2560x1440@60;inherited state: active 1, ... route 1 (cfg 0x1b)from the main DCP;--strictclean.Assisted-by: LLM (Claude:Opus 5.5)