Repository navigation
Conversation
The J773g admissions that follow were checked against one J773g ADT, that of macOS 26.6.2: target-type J773gAP, board-id 0x2a, chip-id 0x8132 and iBoot mBoot-18000.161.10. Add kboot_is_j773g(), which is true only when the live ADT, the OS firmware and the OS tree all match that: the root compatible J773gAP, board-id 0x2a, os_firmware 26.6.2, and an OS tree that is both apple,j773g and apple,t8132. A J713 tree on a Mac mini, a Mac mini on 26.7, or any other T8132 board fails it. It goes in a new kboot_t8132.c, which the T8132 rules that follow share: kboot.c's code is linked into Stage 1's .init slot (aura-raw.ld), which has 96 bytes left in the GCC build. The host test breaks each of those facts in turn. Booted six times on one J773g (26.6.2, Stage 1 1.0.0b8), loaded into RAM through the Stage 1 proxy: each time the gate admitted the machine (the USB3 calibration copy that uses it later in this series ran). A J713 or a non-26.6.2 boot was not run. Assisted-by: LLM Signed-off-by: Sean Dolbec <sdolbec1@gmail.com>
The T8132 USB3 bundle (apple,tunable-usb3-*, the lane groups and the optional AUX group) was copied only for the J713 and the J604. On every other T8132 board the T8132 PHY nodes fell through to the older t8122 tunable path, whose properties the T8132 PHY driver does not read. The J773g's 26.6.2 ADT has all 27 groups of the bundle and tunable_AUX_TOP on each of atc-phy0..3 (compatible atc-phy,t8132), and every record is a 32-bit write inside its group's window. Most groups are byte for byte the J713's; the AUSPLL core, CIO3 PLL core, AUSCMN SHM and both lanes' RX EQ groups are the machine's own. The J773g tree describes atcphy0..3 as apple,t8132-atcphy with aliases. Copy the bundle on a live J773g on 26.6.2 too. The copy is unchanged: a missing or malformed required group still removes the whole bundle and leaves USB2. This only fills properties: whether a port runs USB3 stays the tree's choice. The existing J713 fixture exercises the T8132 USB3 copy and rejection path. There is no J773g fixture: J773g-specific calibration data is not covered by a host test. Booted six times on one J773g (26.6.2, Stage 1 1.0.0b8): the tree Linux received carried the bundle (seven apple,tunable-usb3-* properties) on each of atcphy0..3. USB3 link speed was not tested. Assisted-by: LLM Signed-off-by: Sean Dolbec <sdolbec1@gmail.com>
dt_set_t8132_aop() returned early on every T8132 board but the J713 and the J604 and left the OS tree's AOP node as it found it. The shared M4 trees (t8132-jxxx.dtsi, so the J623, J624 and J773g) enable the AOP, its DART and its mailbox, and ask for its handoff in linux-enablement-mac,dapf-handoff, on the promise that the loader "programs the AOP DART's DAPF and reserves its firmware and DAPF windows ... or disables the AOP". On those boards aura did neither, so Linux started an AOP whose DAPF was empty and whose __ETEXT and __OS_LOG were not reserved. Disable the AOP there, as the J713 and J604 path already does on any failure, without reading the AOP or programming its DART. The J713 and J604 path is unchanged. The new host test runs the production gate on J713 and J604 trees (handoff, every refused step, a running AOP, no request) and on J623, J624, J715 and J773g trees with and without the request: the AOP ends disabled and nothing touches it. The shared source DTS enables the AOP, but the shipped 26.6.2 J773g OS DT used for the normal boots has it disabled; the TEST-DTB boot changed that node to `okay` and observed it return `disabled`. Booted on one J773g (26.6.2) with a test tree that enables the AOP: Linux received the AOP disabled and its DART as the tree had it. Not booted on the J623, J624 or J715. Assisted-by: LLM Signed-off-by: Sean Dolbec <sdolbec1@gmail.com>
The J773g (Mac mini) has no camera: its 26.6.2 ADT has no isp, isp0 or dart-isp node. t8132.dtsi describes the ISP and its three DARTs disabled and the J773g tree leaves them so, but nothing in aura held that: the J713 handoff only runs on the J713, and dt_set_isp() acts only through an "isp" alias. A tree that enabled the ISP would have the OS probe a camera and ISP power domains that are not there. On T8132, when the ADT has neither isp nor isp0, disable every enabled apple,t8132-isp node and the DARTs in its iommus list that no other node uses. A tree that already leaves the ISP disabled is not changed, and a Mac whose ADT has an ISP (the J713) is not touched. The rule goes in kboot_t8132.c, out of Stage 1's full .init slot. It runs before dt_set_isp(). On such a Mac that step cannot reserve the ISP firmware and disables the node the isp alias names, but not its DARTs; run after it, the rule would find the ISP already disabled and leave those DARTs enabled. The host tests cover an enabled ISP, a disabled one, a DART shared with another device, a malformed iommus list, a Mac with isp or isp0 in its ADT, and another SoC. A second test runs the real dt_set_isp() and the rule in kboot_prepare_dt()'s order. Booted on one J773g (26.6.2) with a test tree that adds an enabled ISP over three DARTs, one of them also used by another node: Linux received the ISP and its two unshared DARTs disabled and the shared DART enabled. The shipped 26.6.2 J773g OS DT used for normal boots has no ISP node; the TEST-DTB boot added an enabled one. Assisted-by: LLM Signed-off-by: Sean Dolbec <sdolbec1@gmail.com>
The J773g (M4 Mac mini) has no panel: its main DCP drives the fixed HDMI port, and the ADT marks /arm-io/disp0 external. The existing handoff rejected every non-J713 board with that flag, so the DCP firmware reservations never reached the kernel DT. For an admitted J773g whose DCP declares an HDMI-A connector, publish one reservation per ADT segment. Keep the OS log physical-only and map every other segment through the DCP at its remap address. Validate linked pre-existing reservations, refuse unlinked overlaps, and apply the J773g firmware metadata and reservation set as one FDT transaction. The J773g path does not read or write live DART tables; panel M4 Macs continue to use the existing path. Extend the production-code host fixture for existing reservations, publication, end-to-end rollback, and a non-HDMI refusal. Assisted-by: LLM Signed-off-by: Sean Dolbec <sdolbec1@gmail.com>
A J773g DT that already describes some DCP firmware segments names them
the usual way, by node name without the unit address:
memory-region-names = "asc-firmware", "dcp_data", "region57", ...
The handoff compared each label with the full node name
("asc-firmware@100002a8000"), so it refused that tree as a whole and
published nothing. Without the OS-log reservation the kernel then
refuses the inherited SID23 domain, and HDMI stays on the boot
framebuffer.
Accept the label with or without the unit address. The OS-log label
stays exactly "dcp-os-log", and range and DART checks are unchanged.
Seen on a J773g (26.6.2) with the run-59 DTB: no apple,dcp-os-log node
after the handoff. This change alone was not enough there (the next
patch fixes the second refusal); with both, the OS-log reservation is
published (asc-firmware@1000cc90000, 0x24000, apple,dcp-os-log).
Assisted-by: LLM
Signed-off-by: Sean Dolbec <sdolbec1@gmail.com>
Before adding a DCP firmware reservation, the J773g handoff refuses any existing /reserved-memory node it could overlap. A J773g DT carries zero-size placeholders (gpu-fw-text, gpu-fw-data and the uat-* nodes) that dt_set_gpu() fills in only after dt_set_display(). The scan took each of them for an invalid reservation and refused the whole handoff, so the DCP's OS-log reservation was never published and the kernel refused the inherited SID23 domain. An empty placeholder reserves nothing and cannot overlap a segment; skip it, as the kernel's DART handoff does. A reservation that wraps still refuses. Tested on a J773g (26.6.2) with the run-59 DTB: the handoff now publishes the OS-log reservation, and Fedora boots with NVMe, USB, Ethernet and the GPU as before. Assisted-by: LLM Signed-off-by: Sean Dolbec <sdolbec1@gmail.com>
On the J773g the main DCP drives the HDMI port, and its display frontend (disp0, SID0 of the display DART) and PIODMA child (SID16) keep running on the tables iBoot left. A kernel that adopts them needs every inherited page described. Only the DCP's own regions were published, so a kernel DT without hand-copied reservations gave disp0 no memory-region and the display DART refused the frontend. Read both streams' tables, locked and read only, after the DCP handoff. SID0 must map exactly one whole DCP firmware segment plus pages of the retained scanout framebuffer (/vram); SID16 exactly one whole segment. Give disp0 that segment's reservation with its own iommu-addresses tuple and a no-map "framebuffer" reservation of /vram, and the PIODMA child (when the DT has the disp0_piodma alias) its segment. A page that is neither refuses the step, which runs as its own transaction after the DCP handoff: on refusal the DCP mappings are kept and the frontend is left undescribed, as before. A DT that already describes disp0's regions is left as it is. The host harness models the J773g streams as read on the hardware (SID0: segment 4, SID16: segment 5, the framebuffer unmapped after a reset) and checks the frontend against what the kernel's DART admission requires, plus a still-scanning-out framebuffer and a refused stray page. Assisted-by: LLM Signed-off-by: Sean Dolbec <sdolbec1@gmail.com>
8f4f387 to
d6f6a47
Compare
|
Restacked to
J773g (Stage 1 1.0.0b8): spec 22 recorded one exact-head PASS as a one-shot ESP Stage 2 with the stock Aurora U-Boot |
|
The production boot stub pins at macOS 27.2 (26B123), so please retarget this to 27.2. The frontend walk is validated on 26.6.2 only; please validate it on the 27.2 stub. |
|
A data point from a second J773g, where iBoot does not light HDMI. On that unit, your boot-HDMI Stage 2 series lights the port by itself. The unit Tree Result: 3/3 boots (two aura-try trials and one plain boot as the configured Stage 2), identical every time:
One commit on top: Linux-side note for anyone else testing this without a GPU driver
Most of the series has no |
|
Tested #199 + #258 on the owner's Mac mini J773g (26.6.2 stub, HDMI to a 4K240 monitor whose sink offers 1080p), 2026-11-19, with Linux #1192, as aura-try trials. The Stage 2 was techmore's boot-HDMI series (fdf6510, the one that trains HDMI on this unit) + #113 + this stack, then two fixes. The full stack is public as aurora-silicon/aura
🤖 Generated with Claude Code |
|
Thanks for the detailed rows, and for keeping the walker out of Stage 1. Three things before this can leave draft. (1) |
|
Your tested boot-HDMI series, reworked to property selection, is on https://github.com/techmore/aura/tree/staging/27.2/v10/aura-boot-hdmi (head
|
Summary
Publish J773g's inherited external-display mappings in the Linux device tree when aura hands off the locked display DART.
On T8132/J773g with firmware 26.6.2, Linux must be told about every inherited translation before it can adopt the display frontend. This change walks the locked DART read-only, validates the expected SID0 and SID16 translations, and transactionally publishes the
disp0, PIODMA and retained-framebuffer reservations. It does not enable, reset, invalidate or write the DART. The walker is not built into Stage 1.Stacked draft
Head
d6f6a470f2c68ac3dc07b9b07addbcef61ec8e1c(tree380d92e644dafc1954dbe82758ae0844c4e1d9ba) on aura maineb66d6cd79a46ddcff85628599135a607fd70648:b3b52c0c..24812c55);0ad3c86b) and its two fixes (531da3a8,ab6f3611), authored by Sean Dolbec withAssisted-by: LLM;d6f6a470).It does not contain or depend on #244. It is not mergeable until #113 and #199 land and this delta is restacked on their then-current heads. The Linux side depends on linux #1192.
The top commit is the Stage-1-guarded revision: its stable patch-id is
7110eb2985fb, the same as7c0e93cd/45ef54cf, and not the unguarded7fdadb3epatch-ide03c9e886433. The guard keeps the display-DART walker out of Stage 1 and leaves it in ESP Stage 2. The deterministic preview also adds Sean Dolbec'sSigned-off-byto all eight commits without changing their patches; this fixes the first #258 push, whose commits were unsigned.Tests
make format-check(clang-format 20.1.8) clean.Hardware
J773g (Mac mini M4, Stage 1 1.0.0b8): spec 22 recorded one exact-head PASS as a one-shot ESP Stage 2 (
aura-try; the live Stage 2 untouched) with the stock Aurora U-Boote1ef8b636fc9appended (our own build from that commit withapple_m1_defconfig), on the installed default kernel and its run-59 device tree. The boot reached Linux with DMIaura 1.0.0b13-gd6f6a470 / U-Boot 2026.07-ge1ef8b636fc9, Ethernet up, no RTKit crash, HDMI-A-1 connected and enabled with 1080p and 4K modes on apple-drm, and Stage 2's log admitting the inherited SID0/SID16 frontend and publishing thedisp0/PIODMA regions.This first exact-head boot makes the package review-ready. Four planned repeats of the same spec remain in the boot queue and are not claimed here.
An earlier run of the same guarded display patch at
7c0e93cdused the exact linux #1192 kernel (7.3.0-prheads+), its paired exact-#1192 DTB and U-Boot1b60b47ef6a2. It reached Linux without Atlantic/Ethernet and did not self-return. The initial summary said only simpledrm registered; the recovered persistent journal later showed simpledrm first and then one apple-drm external output with appledrmfb at 1920x1080@120. By contrast, spec 22 used the installed default kernel (7.3.0-m4atlrx+), the run-59 DTB and stock U-Boote1ef8b636fc9, and returned cleanly with Ethernet and apple-drm HDMI. These are the recorded kernel, DTB and U-Boot-tail differences; neither run is used as evidence for the other's exact artifact set.Earlier evidence for the unguarded display patch (
7fdadb3e, a different tree on the #244 stack and U-Boot1b60b47ef6a2): three boots with the inherited SID0/SID16 admitted, the external DCP adopted, HDMI-A-1 connected on apple-drm and G16 READY. Separately, GitHub user FatBoy721 reported 3/3 supporting boots on a second J773g with stock U-Boot and without #244: #199 comment 6885045626. That is attributed third-party evidence, not this package's receipt.The U-Boot pairing is deliberate: with Stage 1 1.0.0b10 or earlier, this no-#244 stack boots with stock
e1ef8b63, which adopts the inherited live ANS session. A U-Boot from the #38/#40 restart series, including the tested1b60b47etail, refuses that live adoption and therefore needs #244's compatibility fix.Not covered
This exact rebased head with the exact linux #1192 kernel and DTS; HDMI on the installed kernel beyond what the boot rows above state; cold entry, 4K60, HDMI audio, hotplug, other firmware versions and other boards.