Repository navigation
kboot: hand the M4 Mac mini (J773g) display over on 27.2 (dcpext0/1, headless) - #383
DjDeveloperr wants to merge 4 commits into
Conversation
|
Kernel side: aurora-silicon/linux#2541 (draft). It runs the J773g dcpext on the v27 backend: firmware gate, display-gate admission, the HDMI route on dcpext0, and the J773g 27.2 DT with the text/data/heap placeholders this handoff fills. The built J773g DTB matches this PR's contract. |
|
Early note on this draft (no full review yet):
Assisted-by: LLM (Claude:Opus 5.5) |
575ea62 to
832c527
Compare
|
Rebased onto
Verified: Assisted-by: LLM (Gemini:4 Neon) |
832c527 to
f7d663d
Compare
|
Re-review of f7d663d. It is a rebase of 832c527 (range-diff identical), so this covers the 832c527 rework. Earlier points:
New, all small:
Rows at f7d663d: a J773g 27.2 Linux boot where the kernel takes dcpext0 from this handoff (the #445 runs show only the Stage 2 HDMI swap), and a J713 boot showing that internal-panel T8132 still takes the M4 handoff. Assisted-by: LLM (Claude:Opus 5.5) |
…ess detection The external-processor handoff (memory placeholders filled from the ADT, firmware version, UUID and clock-ids published, the processors left disabled for the kernel's display gate) and its headless case (no internal handoff, the first processor's __TEXT standing in for the panel's, the display subsystem enabled once one is published) were written for T6041 only: a hard-coded t6041_exts[] list, the apple,t6041-dcpext compatible, and a J575c board-compatible check. Make the external processor list and compatible fields of struct dcp_soc (exts, nexts, ext_compat), drop the t6041_ prefix from the helpers, and decide headless mode from the ADT (/arm-io/disp0 has `external` or is absent) via dcp6_adt_headless() instead of carrying a per-board root compatible string. Add a j575c-headless host test scenario covering the ADT-driven headless path alongside the existing internal-panel T6041 tests. Signed-off-by: DjDeveloperr <hey@djdev.me>
…locks The 27.2 profile reads /arm-io/disp0's clock-ids, indexes /arm-io clock-frequencies with them and publishes them on dcp as fixed-clock providers plus clocks, clock-names and apple,clock-ids. Make the reader and the publisher take the pipe's ADT path, the processor's device tree path and a struct dcp6_clocks, so an external processor can be given its own pipe's clocks (dispextN) the same way. A /clock-dcp-firmware-<id> node the device tree already has is now used when it is a fixed-clock of the same rate with #clock-cells 0, and refuses the processor otherwise, instead of failing on the duplicate node: a board tree may carry the same providers statically. No current T6041 tree has such a node; its behaviour is unchanged (92 passed). Signed-off-by: Diljit Singh <hey@djdev.me>
…0/1) Hand over dcpext0 and dcpext1 on headless T8132 boards (such as the M4 Mac mini, J773g) running macOS 27.2 (26B123), with the internal DCP untouched. Instead of gating on a per-board compatible list or a per-board headless entry, decide headless mode from the ADT (/arm-io/disp0 has the external property or is absent), so any headless T8132 board in the same state takes this path without a table entry while internal-panel boards stay untouched. Each external processor gets its own pipe's firmware clocks from /arm-io/dispextN so the kernel can answer the firmware's clock-frequency request. Signed-off-by: Diljit Singh <hey@djdev.me>
…lper Route T8132 boots to dt_set_display_handoff() through a shared dt_t8132_external_display() helper in src/kboot_display_handoff.c so kboot routing and the handoff use the exact same dcp6_adt_headless(), dcp6_select_fw(&dcp_soc_t8132), pinned UUID, and t8132_exts[] table and cannot disagree. Every other T8132 boot (internal-panel boards, unqualified OS firmware releases, or external nubs not running the pinned image) keeps dt_set_m4_dcp_handoff(). Signed-off-by: DjDeveloperr <hey@djdev.me>
f7d663d to
8b3ba98
Compare
|
@RyanTheTide Thanks for the re-review! Addressed the four items in the updated 4-commit stack (
Local verification: 223 passed across the display/handoff pytest suites (including Hardware boot rows:
Assisted-by: LLM (Gemini:4 Neon) |
|
Live J773g (
Verbatim Stage 2 / kboot handoff log ( Assisted-by: LLM (Gemini:4 Neon) |
|
Merge readiness at
Areas: none matched in CODEOWNERS Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
Verdict: REQUEST CHANGES at 8b3ba98e
Blockers:
- Branch is
CONFLICTINGwithmain. Rebase/merge currentmain(resolving conflicts across the 8 touched files,+1290/-115) so the PR isMERGEABLE, full CI runs cleanly at the new head, and an exact-head J773g (27.2) + non-T8132 regression boot row can be verified.
Checked:
- Commit series (
875df50d..8b3ba98e),CONFLICTINGagainstmain. - Prior J773g
27.24-boot pass at8b3ba98e(2026-11-22).
Evidence
- Rebase onto
mainto clearCONFLICTING(or close if superseded by newer display-handoff PRs onmain), verify CI passes, and re-verify on J773g at the rebased head.
Dismissed under the 12-01 merge bar: this review's blockers were not shown failures (CI/rows/rebase/design or re-run asks). Follow-ups, not blocking: Diff not reviewed, only conflict; follow-ups: rebase, CI, J773g + non-T8132 boot rows
|
Closing: #470, re-landed as #536, does this on Seen on the J773g (27.2, Stage 2 |
On macOS 27.2 (26B123) the M4 Mac mini's (J773g) HDMI port is driven by
dcpext0. iBoot leavesdcp,dcpext0, anddcpext1running the same DCP image (B3BA603C-3CA7-3E21-B393-44EB20BD2AEF), while/arm-io/disp0carriesexternal(no internal panel). macOS drives HDMI fromdcpext0alone (4K60, 4K120 with DSC) and parks the internal DCP. Without this handoff, a headless T8132 booted from 27.2 gets no display at all because every T8132 boot takes the M4 internal-panel handoff, which refuses headless machines.This hands headless T8132 boards on 27.2 over through the same external-processor-only path used for headless T6041 (J575c Mac Studio), decided from the ADT rather than per-board root compatibles.
Commits
875df50d0). Generalizes the dcpext handoff (exts,nexts,ext_compatonstruct dcp_soc), drops thet6041_prefix, and replaces the per-boardapple,j575cheadless check withdcp6_adt_headless()(/arm-io/disp0absent or carryingexternal). Adds aj575c-headlesshost test scenario alongside the internal-panel T6041 suite.1f3094150). Parameterizes the 27.2 clock reader and publisher over the pipe's ADT path, device tree path, andstruct dcp6_clocks. An identical/clock-dcp-firmware-<id>node already in the device tree is reused; one with another rate refuses.cd9011781).dcp_soc_t8132(.headless_only = true, no board list) andt8132_exts[](dcpext0,dcpext1)./arm-io/disp0lacksexternal) are rejected before reserving or touching anything.dart-dcpis not locked).dcpext0anddcpext1(t8132-dcpext.dtsi, under/soc) receive ADT-filled placeholders, shared__TEXT, firmware27.2.0+ pinned UUID, and stay disabled for the kernel's display gate; once one is published, the display subsystem and its DART are enabled with iBoot's boot framebuffer.ext_clockspublishes each pipe's/arm-io/dispextNclocks on its processor so Linux can answer the firmware's clock-frequency request (533333328 Hz on J773g).8b3ba98ed). Exportsdt_t8132_external_display()fromsrc/kboot_display_handoff.cand calls it insrc/kboot.cbeforedt_set_m4_dcp_handoff(). Routing sharesdcp6_adt_headless(),dcp6_select_fw(&dcp_soc_t8132), the single pinned UUID indcp_fws_t8132[], andt8132_exts[], so routing and handoff cannot disagree. Any internal-panel T8132, unqualified OS firmware (e.g. 26.6.2, 27.0, unknown), or non-matching/stopped external nub keepsdt_set_m4_dcp_handoff().Values from the J773g runtime 27.2 ADT:
dcp0x30ae00000;dcpext00x286e00000;dcpext10x48ae00000) and their DARTs;23,0,16of 32 (matching T6040/T6041; reading SIDs from ADTmapper-*regis a follow-up across T6040/T6041/T8132);__TEXTshared withdcp, plus__DATA,__OS_LOG, and heap;dispext0/dispext1clock-ids.Tests
tests/python/test_t8132_j773g_27_display_handoff.py+tests/t8132_j773g_27_display_host.c: 27 scenarios, each required to reach its own log line (headless J773g, generic headless T8132other-headless-board, internal-panelj713, chip/OS/UUID/disp0-clock/DT gates, all per-processor refusals, static clock reuse/conflict, pre-enabled display, repeat, and full DT).tests/python/test_t8132_display_route.py: linkssrc/kboot_display_handoff.cdirectly to exercisedt_t8132_external_display()across ADT and OS-firmware cases and verifies a single UUID definition.tests/python/test_t6041_display_handoff.py+tests/t6041_display_host.c: includesj575c-headlessverifying ADT-driven headless handoff on T6041 alongside internal-panel J616c/J614c/J616s/J614s.Local verification (head
8b3ba98ed)make format-check CLANG_FORMAT="uvx clang-format==20.1.8"+make rustfmt-checkUSE_CLANG=1 BUILDSTD=1 RELEASE=1 CHAINLOADING=1 ESP_STAGE2=1)_file_vital_end 0x11c188 of 0x120000, headroom 15,992 BNot yet