Repository navigation
drm/apple, soc: apple: drive the M4 Mac mini's (J773g) HDMI from dcpext0 on macOS 27.2 (v27 backend) - #2541
Conversation
|
The
patchdiff --git a/tools/testing/selftests/drivers/gpu/apple-dcp/lifecycle.py b/tools/testing/selftests/drivers/gpu/apple-dcp/lifecycle.py
index 9aa4f2041961b..a20db0f490501 100644
--- a/tools/testing/selftests/drivers/gpu/apple-dcp/lifecycle.py
+++ b/tools/testing/selftests/drivers/gpu/apple-dcp/lifecycle.py
@@ -1536,6 +1536,11 @@ static int __attribute__((unused)) iomfb_v14_7_external_prepare(struct apple_dcp
/* Nor a T6041 dcpext. */
static bool __attribute__((unused)) dcp_t6041_ext_enabled(void)
{ assert(!"T6041 dcpext in a J700 scenario"); return false; }
+/* Nor a T8132 processor of either backend. */
+static bool __attribute__((unused)) apple_t8132_firmware_path(void)
+{ assert(!"T8132 DCP in a J700 scenario"); return false; }
+static bool __attribute__((unused)) apple_t8132_dcpext_v27_2(const struct device_node *n)
+{ (void)n; assert(!"T8132 dcpext in a J700 scenario"); return false; }
static void __attribute__((unused)) iomfb_v14_7_external_refuse(struct apple_dcp *d, const char *why)
{ (void)d; (void)why; assert(!"T6030 external processor in a J700 scenario"); }
struct drm_device { int unused; };
-- |
|
J773g (M4 Mac mini) on macOS 27.2: a note before the first dcpext0 bind. On the J773g the T8132 display DARTs aren't borrowed, so dcpext0's DART (0x286340000 / 0x286300000; dcpext1 0x48a340000 / 0x48a300000) takes the plain locked path, without fw_mirror. @RyanTheTide: yes please, port both levers from #2590 to the J773g dcpext. If the first dcpext0 bind faults or won't attach, those are the likely fixes:
Where the J773g stands:
I'll post the J773g dcpext0 row here once it has run. |
|
Hardware row: J773g (M4 Mac mini), macOS 27.2 stub, 11-20. HDMI on dcpext0 works at 3840x2160@60. The stack that ran:
This PR as it stands does not light the port. On 27.2 the dcpext0 firmware announces nothing on firmware 27's default DPTX_ENDPOINT_V2 (0x2c). The result:
The fix: open the DPTX controller on DPTX_CONTROLLER_ENDPOINT (0x24), then the ports on DPTX_ENDPOINT (0x2a). That is where this SoC's 26.6.2 firmware has them, and where the T8142 dcpext's 27.2 image does. Its port to this branch is ac8f56f8, Key lines with the fix (runs dcp3 and dcp4):
Notes:
|
|
apple_t8132_dcpext_v27_2() in include/linux/soc/apple/t8132.h requires of_machine_is_compatible("apple,j773g") in addition to apple_dcp_image_v27_2() on the apple,t8132-dcpext node. The firmware interface is a property of the coprocessor and the firmware image it runs, both of which are already checked, so the board name should not decide which IOMFB backend is used. Drop the board check (or, if another T8132 board really differs, express that difference as a DT property on the dcpext node). Until then this should stay a draft. |
…t its board apple_t8132_dcpext_v27_2() also required of_machine_is_compatible( "apple,j773g"). The firmware interface belongs to the coprocessor and the image it runs, and both are already checked: an apple,t8132-dcpext node with the T8132 27.2 (26B123) image UUID and firmware version and compatibility 27.2.0. What differs between T8132 boards (the J773g's fixed HDMI port, its LPDPTX PHY, converter rails and hot-plug line) is described in each board's device tree, and the driver takes it from there. RyanTheTide asked for this in the review of #2541. Drop the board check. The apple-dcp boot unit now asserts that the admission has no machine check and that a T8132 dcpext on the 27.2 image is admitted on either firmware path. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Diljit Singh <[email protected]>
apple_dcp_usable() calls apple_t8132_firmware_path() and apple_t8132_dcpext_v27_2() since this series, and the readiness unit extracts it without linux/soc/apple/t8132.h, so it no longer compiled. No scenario there has a T8132 node: stub both as unreachable, like the T6030 and T6041 helpers next to them. The patch is RyanTheTide's, from the review of #2541. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Diljit Singh <[email protected]>
|
@RyanTheTide thanks. Both points are fixed with two new commits (fast-forward, no force push, so #2580's base commits are unchanged):
Host suite ( DPTX endpoints. These are no longer hardware data. On 27.2 the mini's dcpext0 serves the controller on 0x24 and both RemotePorts on 0x2a, which is #2526's advertised layout. #2526 keys it on Still a draft until the J773g row with this exact code is in. 🤖 Generated with Claude Code |
…2-internal Resolve the conflict with the base's board-free dcpext check: keep this branch's apple_t8132_internal_dcp_v27_2() beside the base's rewritten apple_t8132_dcpext_v27_2() comment in t8132.h, and in the apple-dcp boot selftest keep the internal DCP's 27.2 cases with the base's PASS line, without the dropped machine_j773g flag. Signed-off-by: Ryan Murray <[email protected]>
|
Review at 9ef7603 (adversarial pass before merge; the M4 Air's internal-panel PR #2590 sits on this branch). Blockers: 1.
Non-blocking:
Rows that cover this branch on the M4 Air: the J713 internal panel binds through this series' T8132 27.2 table + the bandwidth-slot change (6c3f3e9) on every J713 tip candidate since 11-21 (eDP 2560x1600@60, backlight, DPMS, 0 DART faults). The HDMI half has only your J773g row. Assisted-by: LLM (Claude:Opus 5.5) |
|
Two details for the display-gate rework I suggested above, from reading
Assisted-by: LLM (Claude:Opus 5.5) |
|
Addressed the display-gate blocker in fast-forward commit
Ready for re-review once CI finishes. Assisted-by: LLM (Gemini:4 Neon) |
…2-internal Signed-off-by: Ryan Murray <[email protected]>
…xt/air-dcpext-272 #2541 (now 1c70a92) derives the J773g's fixed-DP chain from its phandles (gate_t8132_run(), machine apple,t8132) and drops the J773g node list. Keep the Air's 27.2 Type-C dcpext gate as it is: the Airs return from apple_display_gate_soc() after the 26.6.2 routes before gate_socs[] is walked, and gate_t8132_dcpext_v27() appends their display DARTs after whatever the SoC gate left. Signed-off-by: Ryan Murray <[email protected]> # Conflicts: # drivers/soc/apple/display-gate.c
|
Pulled in the
Assisted-by: LLM (Gemini:4 Neon) |
RyanTheTide
left a comment
There was a problem hiding this comment.
Re-reviewed at 9952e46 (new since the last pass: 1c70a92, 7b141a4, 9952e46).
- The display-gate blocker is fixed.
gate_t8132now matches the SoC, andgate_t8132_run()picks anyapple,t8132-dcpextthat names adp-phyand runs the 27.2 image, then builds the chain from that node's ownphys,iommus,mboxesandpiodmaphandles. The.machine = "apple,t8132"key only selects the table entry (compatibles and prefix); which pipe gets enabled comes from the device tree. No board name or node path is left in the new code. - Replace vs append on disp0's
iommusis decided by whether the main DCP is handed over (27.2 image +apple,clock-ids), and after the first chain appliesappend_dartflips to true, so a second fixed-DP dcpext appends instead of overwriting the first. Early returns insidefor_each_compatible_node()drop the node reference; a failed changeset is freed. I didn't find a leak or a path that half-applies. - 9952e46: the new bounds check is right. Sizes under 4 are refused before any subtraction,
slot.start + offsetcan't wrap after the slot check, and the window compare is done on offsets. - On a board that names
dp-phyand Type-C PHYs on the same dcpext (the T6040 trees do), only thedp-phyPHY is enabled here. That is the right scope for a fixed-port gate; just worth knowing if a T8132 laptop tree is written the same way. - 9ef7603 and 2451da0 carry an agent
Co-Authored-By:trailer. If this lands by squash or rebase, please drop those lines; otherwise leave them, no force push for this.
The code holds. Still owed: a J773g HDMI row at this head with whatever DPTX endpoint change it needs to light the port (the 11-20 row ran a different stack and said this PR alone did not light it).
Assisted-by: LLM (Claude:Opus 5.5)
The Mac mini (J773g) on macOS 27.2 (26B123) runs one DCP image, UUID B3BA603C-3CA7-3E21-B393-44EB20BD2AEF, on dcp, dcpext0 and dcpext1 (its 27.2 ADT; the three share __TEXT). Its external processors are to be driven through the firmware-27 backend as the T6041's 27.2 ones are, so the display gate and the DCP driver need the same pinned admission the T6041 helpers give: the image UUID, firmware version and compatibility 27.2.0. Split the T6041 check into apple_dcp_image_v27_2(), which takes the image UUID, and add apple_t8132_dcpext_v27_2() for a J773g dcpext. It is limited to the J773g until another T8132 board's 27.2 trace shows the same interface. apple_t8132_dcpext_v27_2() is in linux/soc/apple/t8132.h, with the other T8132 board helpers: its machine check stays out of display.h, whose T6041 helpers key on the processor and its image alone (the apple-dcp boot selftest builds them with no of_machine_is_compatible()). Signed-off-by: Diljit Singh <[email protected]>
The M4 backend (iomfb_m4.c, t8132_ext_drm.c) adopts T8132 display processors on the 26.6.2 firmware path. The Mac mini's device tree is also booted on macOS 27.2 firmware, where the boot loader leaves the main DCP running idle and hands it to nobody, and where dcpext0 is to run the firmware-27 backend instead. Make the M4 paths say so: - dcp_check_firmware_version() refuses an M4 hw-data DCP off apple_t8132_firmware_path(), before the probe claims its IOMMU domain. iomfb_m4_init() refused such firmware already, but only later. - apple_dcp_usable() leaves the main T8132 DCP out of the DRM device's components off that path, so a device tree that enables it (as the 26.6.2 HDMI work does) does not hold the DRM device up waiting for it. - dcp_is_t8132_ext() and the probe, remove and shutdown dispatch match only an M4-adopted dcpext (dcp_t8132_ext_m4_node()): a J773g dcpext with the 27.2 image (apple_t8132_dcpext_v27_2()) is neither routed through dcp_platform_probe_t8132_ext() nor caught by the T8132 Type-C, crossbar and tunnel special cases of the fabric and the DPTX service. Nothing changes on the Airs (any firmware) or on any T8132 Mac on 26.6.2. The host replays that extract dcp_is_t8132_ext() (tiled-split, dcpext26-crossbar-union) take the new helper with it; the crossbar one also checks that a J773g 27.2 dcpext takes the T6041 firmware-27 link. The apple-dcp boot selftest checks the gate both ways: a T8132 processor of the M4 backend is the M4 backend's on its firmware path, and nobody's off it. Signed-off-by: Diljit Singh <[email protected]>
…able On macOS 27.2 (26B123) the Mac mini's (J773g) external display processors run the same image as its main DCP (UUID B3BA603C), and aura hands them over the way it hands over the M4 Max Mac Studio's (J575c): firmware memory in text/data/heap regions, apple,firmware-version and -compat 27.2.0, the image UUID, and the dispextN provider clocks. Admit such a dcpext the way the T6041 27.2 dcpext is admitted: - dcp_check_firmware_version() returns firmware 27 for it, with the 27.2 method table, before the M4 hw data is looked at. That the T8132 26B123 image numbers its IOMFB methods as the T6041 and T8142 26B123 images do is assumed, not traced; the comment says so. The method table check is now one helper, dcp_v27_method_table(), shared with the existing firmware-27 and T6041 cases. - It gets apple_dcp_hw_t8132_dcpext_v27, whichever hw data its compatible matched: firmware_dma_bits 41 (the firmware DART window, 1 TiB + 64 GiB, ADT dart-dcpext0 vm-base and vm-size-23), num_dptx_ports 2, adopt_live_session (iBoot leaves it running, pre-loaded = running = 1) and sink_metadata_edid, as T6041's dcpext gets on 27.2. No sleep support. - It is a failsafe external processor and a component of the DRM device (apple_dcp_id_tbl, apple_dcp_usable()), unlike an M4-adopted dcpext. The apple-dcp boot selftest (t6041-v27-admission) now also builds dcp_v27_method_table() and the real apple_t8132_dcpext_v27_2(), with its machine check as a flag. It checks: - the J773g dcpext with the T8132 27.2 image runs the 27.2 table, on and off the M4 path; - another M4 Mac's dcpext does not; - the main DCP, the T6041 image, a missing or second UUID, and other releases are refused. Signed-off-by: Diljit Singh <[email protected]>
macOS 27.2 drives the Mac mini's HDMI port from DCPEXT0 alone (4K60
without DSC, 4K120 with DSC, FRL on the PS190 converter): the LPDPTX PHY
with source select = dcpext0's dcp-index 1, the converter's rails on SMC
GPIOs 15 (hdmi_pwr_en) and 26 (dp2hdmi_pwr_en), and no Type-C crossbar
route. That is the M4 Max Mac Studio's (J575c) HDMI port: the same
converter, rails and LPDPTX PHY ("dptx-phy,t8132" in both ADTs), which
its T6041 dcpext0 drives on 27.2 as a desktop external processor.
Make the J773g's firmware-27 dcpext a desktop external processor too
(dcp->desktop_external, now the one test dcp_desktop_external() reads),
so it takes the J575c's fixed-port path rather than porting the M4
backend's (dcp_t8132_fixed_hdmi on 26.6.2):
- its fixed dp-phy is initialised and powered at probe
(dcp_desktop_probe_routes()), and the converter rails get their
100 ms before the DCP asks for the link;
- a direct crossbar link request takes the T6041 path, not the T6050
crossbar one (dcp_direct_crossbar_link()); with no crossbar or route
described it has nothing to do.
The HPD line, the rails, the PHY and the connector type come from the
device tree, as on J575c.
Signed-off-by: Diljit Singh <[email protected]>
The Mac mini (J773g) drives its HDMI port through the T8132's own LPDPTX
PHY (ADT /arm-io/dptx-phy, "dptx-phy,t8132", crossbar dfp-endpoint 4).
The M4 Max Mac Studio's HDMI PHY is the same block ("dptx-phy,t8132" in
its ADT too) and is described as the T6050 layout with the ADT's PLL
calibration. Allow apple,t8132-dptx-phy with the same fallback, and the
calibration's sixth value, RODCOROLEAKCOMP, which the driver reads
(apple,pll-rodcoroleakcomp) and the mini's ADT sets (0), where the
Studio's leaves it unset.
Signed-off-by: Diljit Singh <[email protected]>
On macOS 27.2 the Mac mini (J773g) is off the M4 26.6.2 firmware path, so the display gate did nothing for it. aura hands it over as it hands over the M4 Max Mac Studio (J575c): dcpext0's (and dcpext1's) firmware memory and firmware clocks, the main DCP left running idle, and the display subsystem and its DART enabled on iBoot's boot framebuffer, with every dcpext node left disabled for this gate. Add a J773g gate that does what gate_t6041_max_run() does for the J575c's HDMI chain: once dcpext0 has its firmware memory, the display subsystem is enabled and the image is the pinned 27.2 one (apple_t8132_dcpext_v27_2()), enable the LPDPTX PHY, dcpext0's firmware and display DARTs, its mailbox, its PIODMA child and dcpext0 in one changeset. A chain that is not all there and disabled is left alone, as there. It runs only off the M4 firmware path; on 26.6.2 the J713 dcpext route handling runs instead, unchanged. One difference from the J575c: the display subsystem's iommus become dispext0's DART rather than having it appended. The main pipe's display DART (disp0) belongs to the running main DCP, which nothing hands over on this firmware and which apple-dart never probes there; left in the iommus it would hold the display subsystem's probe forever. The main DCP's own nodes are left as the device tree has them. Signed-off-by: Diljit Singh <[email protected]>
|
Update, J773g (M4 Mac mini, 27.2 path) at How it was run: two guarded one-shots on the default cmdline, the same Mac and boot chain.
Candidate boot:
Silent throughout. Both boots returned to the stock kernel, and the kits were removed from the Mac. Row (b) (dcpext0 4K60) isn't possible with this PR alone, as you noted, so it wasn't run. Earlier, at J773g (M4 Mac mini, booted through aura Stage 2 on the 27.2 path) at How it was run: one kernel, main What happened at boot:
Control: main So the failure starts when the gate enables the dcpext0 chain on this Mac. The DART behind Worth a look apart from the DART error: with this PR, any failure in the HDMI chain leaves the J773g with no GPU at all. G16 waits on the display subsystem and never falls back to the boot framebuffer. Silent throughout (this Mac has no audio playback in rows). Afterwards the Mac went back to the stock kernel and was checked, and the kernel kit was removed from the Mac. |
RyanTheTide
left a comment
There was a problem hiding this comment.
Verdict: MERGE at 5da5a35e2387 once Dj's J773g row and our J713 row are posted at this head. No code blockers.
Blockers: none. Merging needs CI plus the two rows at 5da5a35e.
Checked (the main merge; the branch's own commits are unchanged since 004a9554, which I approved):
-
dcp_check_firmware_version()order after the merge:- Firmware-27-only match data.
- T8142 firmware 27 (main's).
- The T8132 27.2 dcpext admission by processor + image (
apple_t8132_dcpext_v27_2()). - The M4 backend's refusal off the 26.6.2 firmware path.
- The match-data pin.
Both T8132 branches sit ahead of the pin they have to beat, and the T6041 UUID pins still run before generic
dcp_firmware_27(). On a J713 (26.6.2 path) neither T8132 branch fires, so it keeps the M4 backend. That's the regression the J713 row covers. -
The T8132 admission stays board-free.
boot.pynow asserts thatapple_t8132_dcpext_v27_2()doesn't callof_machine_is_compatible(), and the units run through main's full selector prelude. -
The KUnit change in
dcp_firmware_27_pin_precedence(anapple,t8132-dcpon 27.2 expectsDCP_FIRMWARE_M4only on the M4 path,UNKNOWNoff it) matches the new refusal. It isn't a weakened test. -
The
dcp.cprobe-side conflict keeps main's T6041 S2R block, followed byapple_dcp_hw_t8132_dcpext_v27. Thet6030-clockfixture keeps main's T6040 PHY stub.
Non-blocking: the "ASSUMED, NOT TRACED" note says the T8132 26B123 IOMFB method IDs are taken to match T6041/T8142. dcp_v27_method_table() refuses an incomplete table, but it can't catch a wrong ID. Once the J773g HDMI row at this head shows modeset and hot-plug working, a follow-up can reword the note to cite that row. A macOS trace would be better still.
The J713 row (M4 Air, 26.6.2 path, internal panel + MSI on USB-C + s2idle) runs in our lab as soon as the Air is reachable.
Holding: Dj's J773g row at 5da5a35 fails (DART -16). I'll re-review at the fixed head.
|
Thanks for the J773g row. I've dismissed my approval at These are review notes only, not a diagnosis. The PR's own commits are unchanged since
|
|
J713 (M4 Air, 27.2 stub) data for the J773g failure at
So with #2145 present (it is in EvidenceKernels from |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
…nnot be adopted On the J773g on macOS 27.2, the boot loader hands dcpext0 over running and enables the display subsystem and disp0's DART for it. The gate then enabled dcpext0's chain. But apple-dart keeps a locked DART's firmware roots only for T6041, T6050, T8140 and T8142 DARTs, not for a T8132 one. So dcpext0's firmware DART failed its probe (-EBUSY, with a WARNING in iommu_setup_default_domain()), and the DCP and its PHY never probed. The display subsystem never registered, and G16, which waits for a handed-over display before its first start, never probed either. The same Mac boots main with the GPU up on the boot framebuffer. - include/linux/soc/apple/dart.h: apple_dart_keeps_locked_roots() names the DART kinds whose locked firmware roots apple-dart keeps (fw_mirror). apple-dart.c takes its fw_mirror list from it, with no functional change. - The gate enables a T8132 fixed-DP chain only when both of its DARTs are of such a kind. On this tree no T8132 DART is, so the J773g HDMI chain stays off until apple-dart keeps a locked T8132 DART's roots. - When no chain is enabled on a headless T8132 (no internal DCP handed over on 27.2), nomodeset included, the gate disables what the boot loader enabled for the external processors: the display subsystem, and its DART unless the main DCP is enabled. With no display handed over, G16 starts on the boot framebuffer, as on main. - A boot where the loader published nothing for the dcpexts changes nothing. tools/asahi/t8132-display-gate-tests.py now also covers: - no handover: no change to any node, to disp0's iommus or to the log, with and without nomodeset; - the J773g's T8132 DARTs: the chain stays off, and the display and its DART go; - either DART of the chain alone not kept; - a laptop whose main DCP is handed over: its display is kept; - a headless tree with the main DCP enabled: the display goes, its DART stays. The existing refusal cases also check that the display goes. Signed-off-by: DjDeveloperr <[email protected]>
RyanTheTide
left a comment
There was a problem hiding this comment.
Verdict: MERGE at 5f66e6979d88 once the J773g row at this head passes and the PR text says what now lands. No code blockers.
Blockers (text and evidence):
- With
5f66e697, no T8132 HDMI chain is enabled on this tree.apple_dart_keeps_locked_roots()names no T8132 DART, so the J773g boots asmaindoes and HDMI stays on the boot framebuffer. The title and What still promise "drive the J773g's HDMI from dcpext0". Please say what merges: the 27.2 dcpext admission, the phandle-derived chain and the fail-safe display-off. Put "HDMI waits for apple-dart to keep a locked T8132 DART's firmware roots" under Not yet. - A J773g row at this head showing the fixed failure: G16 render node up on the boot framebuffer, no
apple-dart … -16and noiommu_setup_default_domainWARNING, 0 failed units. Also the "HDMI left off" and "display … disabled, boot framebuffer kept" lines in the log.
Checked (5f66e697):
- The DART kinds whose locked roots are kept are now one compatible list in
<linux/soc/apple/dart.h>, the block's compatibles as before.apple-dart.cuses it with no functional change, and the gate refuses a chain unless both of its DARTs are of such a kind. It's one source of truth, with no board check. gate_t8132_display_off()only runs wheregate_t8132_run()does, which is offapple_t8132_firmware_path(). The Airs and every M4 Mac on 26.6.2 return early togate_j713_dcpext_routes(). So J713, J615 and 26.6.2 Macs are untouched, and the J713 row stays a pure no-regression check.- It keeps the display when the main DCP was handed over on 27.2 with
apple,clock-ids(a laptop panel). It disables disp0's DART only when the main DCP isn't enabled, because its piodma maps through that DART. A loader that published nothing leaves the tree unchanged.nomodesetnow takes the same display-off path instead of returning early, which also fixes the GPU waiting forever undernomodeset. - The host tests cover:
- no handover, with and without
nomodeset; - the J773g's DARTs;
- each DART alone;
- a laptop keeping its display;
- a headless tree with the main DCP on.
- no handover, with and without
|
5f66e69 J713 (M4 Air, T8132, 27.2 stub, exact head, default cmdline) PASS (no-regression vs main): |
|
Verdict: MERGE at Blockers: none. Checked: non-author review; I didn't write this.
Nits, not blocking: the "ASSUMED, NOT TRACED" T8132 26B123 method numbering should be confirmed by a macOS 27.2 trace of dcpext0 before #2867 turns this path on; the 11-20 row lighting 4K60 is good evidence, but it isn't a trace. And |
drm/apple, iommu: apple-dart: drive the M4 MacBook Air's internal panel on macOS 27.2 (v27 backend, on #2541's rebase)
Resolve with main (via aurora-silicon#2541): keep both display-DART helpers (enabled-streams and the T6041 keep/restore), keep this branch's retention-word helper under main's map_power, and list t8132 with main's t8103/t6041 display-power compatibles (t8132 keeps the t8140 conditional). Signed-off-by: Ryan Murray <[email protected]>
Resolve apple-dart: the fw_mirror selection keeps this branch's T8132 internal case and its refusals, on aurora-silicon#2541's shared apple_dart_keeps_locked_roots() list. Signed-off-by: Ryan Murray <[email protected]>
What: On macOS 27.2 the J773g's HDMI port belongs to dcpext0. This series drives it from dcpext0 on the v27 backend, as the J575c does. Until a T8132 DART can keep the firmware's locked mappings (#2867), the display gate leaves the J773g HDMI chain off and turns off what Stage 2 enabled, so the GPU starts on the boot framebuffer and HDMI stays on simpledrm, as on main.
Tested: J773g (M4 Mac mini, 27.2 stub) at
5f66e697on mainb14959b8, against a main control boot: the gate leaves HDMI off with its two log lines, G16 probes on the boot framebuffer, HDMI stays on simpledrm, no -16 or IOMMU warning, and the same error-level lines as main: #2541 (comment). Gate host tests cover no handover (also under nomodeset), the J773g's DARTs, either DART alone, a handed-over panel and a headless tree with the main DCP; 5 gate mutations are each caught; DART host tests 16/16; checkpatch --strict clean. The 11-20 row with an interim DART commit lit HDMI at 3840x2160@60 on dcpext0.Risk: two-way door · T8132 Macs (J773g; the J713/J715 and J604/J623/J624 share the gate and the DART helper). Nothing changes where Stage 2 hands nothing over.
Not yet: HDMI on dcpext0 needs T8132 locked-root DART support (#2867, stacked on #2818). Once the gate can enable the chain, a later failure inside it would again leave G16 waiting for the display subsystem; that fallback belongs with #2867.
On macOS 27.2 (26B123) the M4 Mac mini's (J773g) HDMI port is dcpext0's. macOS drives it from DCPEXT0 alone (4K60; 4K120 with DSC 16 bpp; FRL 48G on the PS190) and parks the internal DCP. This series runs that dcpext on the v27 backend, as the J575c (Mac Studio, M4 Max) runs its HDMI dcpext on 27.2, instead of the 26.6.2 M4 backend. Boot-loader side: aurora-silicon/aura#383. It hands the J773g over headless on 27.2:
Commits
dcp_methods_27_2until an RPC trace confirms it; the code says so.rodcoroleakcompcalibration.iommusat dispext0's DART (replacing, unlike the J575c): the main pipe's display DART belongs to the running main DCP and is never probed on 27.2.hdmi_hpd), rails on SMC gP0f/gP1a (15/26), crossbar output 4;The main DCP, its DARTs and the display subsystem are left as the board tree has them. On 27.2 the main DCP is kept out by firmware path in the DRM driver and in the existing DART refusal.
Verification (on integration/aurora de2c296):
iommus <&dcpext0_dart 23>, disabled; the text/data/heap placeholders; its DART disabled.bootgroup: pass.t6041-v27-admissionnow also buildsdcp_v27_method_table()and the realapple_t8132_dcpext_v27_2(), and checks the J773g admission and the M4-path gate.-Wunused-but-set-globalin fixtures this series doesn't touch).Overlaps: linux#2497 (the 26.6.2 dcpext0 HDMI path, shelved for the mini) edits the same J773g nodes. If both land, they need a merge. This series leaves the 26.6.2 path's behaviour to #2497.
Since the first version (fast-forward, no force push):
apple_t8132_dcpext_v27_2()no longer checks the board. The apple-dcp boot unit asserts that it has no machine check.readinesshost unit stubs the T8132 helpers (RyanTheTide's patch).dcp->dcpextfor the admitted T8132 dcpext, which has noapple,dcpextcompatible. It folds in here once drm/apple: firmware 27: start the remote allocator only where advertised; let a dcpext come up before its DP port is announced #2526 merges.🤖 Generated with Claude Code