Skip to content

kboot: T8152: copy the USB-C tunables and router DROMs from the ADT - #498

Merged
RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
sithglan:thomas/t8152-usb4-tunables
Nov 24, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
sithglan:thomas/t8152-usb4-tunables

Conversation

@sithglan

@sithglan sithglan commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

What: On T8152 (the M6 Mac mini, J873g), aura copies the USB-C tunables from the Mac's own ADT, as on the J813: the ATC PHYs', the USB4 routers', NHIs', PCIe-C ports' and their DARTs' tables, and the routers' DROMs with this Mac's UID. They are per Mac (one ATC row is calibration), so linux#2178 and #1799 drop them from the device tree. The DART copy now bounds each table by the DART's own register window.
Tested: J873g M6 Mac mini at 46c6d9b4: all 48 USB4/ATC tables and DROMs come from the ADT; USB4 NVMe on both rear routers across a replug, a flipped replug and a port swap; DisplayPort and USB4 swapped between the ports; 0 failed units, 0 DART faults. J813 M5 Air at 46c6d9b4: all 123 apple,tunable* properties identical to the base 8b1cb8ce, 0 failed units, 0 DART faults.
Risk: two-way door · J873g (T8152) for the new copies; the DART window bound runs on every Mac, and no Apple DART in the tree has a window below 0x4000, so it refuses nothing it took before (identical on the J813).
Not yet: boot rows on Macs other than the J873g and the J813.

Details

The J873g's (M6 Mac mini, T8152) device tree carries one Mac's ADT tables for its USB-C hardware: the USB4 routers' RC, PCIe adapter, AP firmware and NHI tables, the ACIO and PCIe-C DARTs', the PCIe-C ports', the four ATC PHYs', and the routers' DROMs. Dj's review of linux#2178 asks for them to come from the machine at boot, as the J813's do (linux#2142 with #302/#435). They are per Mac: one ATC row (ACIOPHY_CMN_DFLT 0x860) differs between the four PHYs of the same Mac, and each DROM carries the host router's UID.

Change

  • dt_prepare_t8152() runs the copies the other SoCs already use: kboot_setup_atc(), dt_set_acio_tunables() (router tables and the DROM with this Mac's UID), dt_set_pcie_tunables() and dt_copy_dart_tunables().
    • They only touch nodes the device tree links by alias (atcphyN, usb4-N-*), so a device tree without the aliases, like every J873g one up to now, is unchanged.
    • A failure is logged and does not stop the boot; Linux then refuses the port.
  • DART copy:
    • dt_copy_dart_tunables() takes a list of ADT name prefixes. dt_prepare_t8152() passes dart-acio and dart-apciec, because the other T8152 DARTs are locked or firmware-owned and their device tree describes them without a table. The other SoCs pass none and copy every DART, as before.
    • On every SoC, a table's rows are bounded by the DART's own register window from its device tree node, with 0x4000 only when the node gives none. The T8152 USB4 DARTs have rows past 0x4000 in a 0xc000 window. No Apple DART in the tree has a window below 0x4000, so nothing that was accepted before is refused now.
  • kboot_atc.c:
    • atc-phy,t8152 has no fuses. It gets two tables of the ADT's groups, by name, at the PHY offsets they apply to:
      • a port with apple,fixed-usb3 (the front hub) gets the USBC0 groups and lane 0's USB list;
      • every other port gets CIO on both lanes, with lane 1 at lane 0 + 0x9000.
    • The T8142/T8122 PMAFSM rows are not added.

Apart from the DART window bound, no other SoC's path changes. On the J813, offline, its 36 ADT DART tables have no row past 0x4000, so the copy gives the same tables as before there.

Evidence

Testing

  • Offline: I simulated the copies against the J873g's 26A434 and 27.2 live ADTs. They reproduce, row for row, every table linux#2178's DTSIs carried: all four ATC PHYs, all three routers with their NHIs, DARTs and PCIe-C ports. The DROMs differ only in the UID.
  • J873g row on this exact head (1.0.0b15-g46c6d9b4), one-shot aura-try Stage 2 trial from the enrolled 1.0.0b14-gd7f5a487. The kernel was linux#2178's head 1b969ed3f444, whose device tree has no tables, on the M6's default command line.
    • The live device tree has all 48 USB4 and ATC properties the old in-tree DTB had: 45 byte for byte, and the three DROMs differ only in UID and CRC8. All 6 DART tables were copied, none rejected.
    • All four ATC PHYs and all three routers bind. The front hub runs at 10000M with its devices. Router 0 trained USB4 with the mini on the tether at 20 Gb/s x2.
    • The usb-drd defaults stay unset ("no controller"), as before, because the J873g's dwc3 nodes are not matched by PHY.
    • Counts: 0 failed units, 0 AVC denials (SELinux disabled), 0 DART faults, and no kernel error lines beyond the base kernel's.
    • I didn't connect a USB4 NVMe enclosure in this row.
  • tests/python/test_dart_tunables.py covers the window bound (a row past 0x4000 taken in a 0xc000 window, refused in a 0x4000 one, a row at 0xc000 refused) and the prefix filter; pytest tests/python passes 1100. make format-check passes; the build has no new warnings.
  • J873g USB4 storage and DisplayPort rows on this head: linux#2178 issuecomment-7138430833 (NVMe on both rear routers across a replug, a flipped replug and a port swap; the USB-C monitor and the enclosure swapped between the ports).
  • J813 (T8142) regression row on this head: issuecomment-7138758624 (A/B against the base 8b1cb8ce: all 123 apple,tunable* properties identical, the 24 on DARTs included; the rear USB4 replug matrix of linux#2142 on the same boot).

@RyanTheTide

Copy link
Copy Markdown
Contributor

Verdict at 155b58f36f0d7d09d8f98c7d3d841c4038d164d7: Hold.

Blockers: The DART address-map test fails during C compilation. The generated fixture calls dt_dart_window() but does not include its source, and chip_id and T8152 are undefined. Please update the fixture and keep coverage for both the existing DART map and register-window bounds on eligible USB4/PCIe-C nodes.

Checked: The exact J873g boot evidence in the PR body covers front USB and one rear USB4 link. The known work still needs the targeted USB4 storage and display-mode checks and a previous-generation regression on the shared DART and ATC copies. The window and ownership checks should follow the DART node's register description and ownership data where available.

Evidence

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verdict: HOLD at 155b58f36f0d

Blockers:

  • src/kboot.c:3371, src/kboot.c:3421, tests/python/test_dart_tunables.py:29-37 — CI Pytest (ubuntu-latest + llvm) fails to compile test_dart_tunables_map_by_physical_address (chip_id and T8152 undeclared; dt_dart_window implicitly declared), which also cancelled the gcc and macOS pytest jobs.
    • Fix: Drop the chip_id == T8152 gate in dt_copy_dart_tunable() (src/kboot.c:3371) and bound every DART by its own DT register window via dt_dart_window(dart) (keeping the 0x4000 fallback only when dt_dart_window() returns 0), matching dt_copy_router_ap_fw_tunable(). Extract dt_dart_window( in tests/python/test_dart_tunables.py and add coverage for a 0xc000 window (row past 0x4000 accepted, row past 0xc000 rejected).
    • For the dart-acio* / dart-apciec* restriction (src/kboot.c:3421), avoid referencing global chip_id == T8152 inside the SoC-agnostic dt_copy_dart_tunables(): pass a parameter (e.g., bool usb4_only) from dt_prepare_t8152() vs kboot_prepare_dt() (or match on the DT node's apple,t8152-acio-dart/apple,t8152-pciec-dart compatible), and exercise that filter in tests/python/test_dart_tunables.py.
  • §1 (src/kboot.c:3371): Gating dt_dart_window(dart) on chip_id == T8152 violates §1 when the register window size is already carried directly by the DT node's reg property (resolved by the fix above).

Checked:

  • src/kboot.c: dt_dart_window() (ac < 1 || sc < 1 || sc > 2, len < (int)((ac + sc) * sizeof(*reg)), fdt32_ld alignment/shift safety), dt_append_acio_tunable() bounds checks against reg_size, rollback via fdt_delprop() on error, and fail-soft dt_prepare_t8152() wiring (older J873g DTs without atcphy*/usb4-* aliases and with disabled acio*_dart/pciec*_dart are untouched). Non-blocking nit: moving if (fdt_getprop(dt, dart, tunable.fdt_name, NULL)) return 0; before dt_dart_window(dart) avoids an unnecessary fdt_parent_offset() scan when a DART already has apple,tunable.
  • src/kboot_atc.c: atc-phy,t8152 fuse entry (NULL, 0 empty apple,tunable-common-a), apple,fixed-usb3 DT property selection (no board/port hardcoding), all 21 lane1-cio entries verified equal to lane0-cio + 0x9000, all reg_offset + reg_size <= 0x6c200 (inside 0x84000 core window), no T8122/T8142 PMAFSM row appended, and cleanup: removes all T8152 properties cleanly. No non-T8152 path in kboot_atc.c changes.
  • §2 Production-ready / §3 Safety / §6 Naming: Pass. Default command line, fail-closed per-port cleanup, no hardcoded safety constants, naming clean.
  • §4 Attribution: Commit 155b58f36f0d has human author/committer (Thomas Glanzmann <thomas@glanzmann.de>) and human Signed-off-by: with zero trailer issues; PR body disclosure present.
  • §5 Hardware evidence: Exact-head J873g aura-try Stage 2 trial (1.0.0b15-g155b58f3) verified all 48 USB4/ATC properties (45 byte-for-byte, 3 DROMs UID/CRC8), all 6 DART tables, 4/4 ATC PHYs, 3/3 routers, front hub 10000M, Router 0 20 Gb/s x2 USB4 training, 0 failed units, 0 DART faults. After the new head fixes CI (and if dt_dart_window() runs for all SoCs), re-confirm exact-head J873g plus a non-T8152 regression boot row (note kboot.o/kboot_atc.o also link into Stage 1).
Evidence
  • Commit: 155b58f36f0d7d09d8f98c7d3d841c4038d164d7 (kboot: T8152: copy the USB-C tunables and router DROMs from the ADT)
  • CI (11/15 green, 1 failed, 3 cancelled):
    • PASS: build, format-check, ESP stage 2 vital size (811080 B / 1179648 B limit; 368568 B free), stage1-size (gcc, clang-macos, fedora, alarm, nix), Pytest (ubuntu-24.04-arm, native start.S), aurora-agent-policy (policy, selftest)
    • FAIL: Pytest (ubuntu-latest + llvm) — tests/python/test_dart_tunables.py::test_dart_tunables_map_by_physical_address (chip_id/T8152 undeclared, dt_dart_window implicit declaration)
    • CANCELLED: Pytest (ubuntu-latest + gcc), Pytest (macos-26 + llvm-brew), Pytest (macos-15 + llvm-brew)
  • Cross-check against aurora-silicon/linux#2178 (da3173dfb4c9): atcphy{0..3}, usb4-{0,1,3}-{acio,pcie-adapter,nhi,pcie} aliases, apple,fixed-usb3 on atc2_phy, 0x84000 ATC core windows, 0xc000 usb4_*_dart/usb4_*_pcie_dart windows, and apple,t8152-acio-dart/apple,t8152-pciec-dart compatibles all match.

The J873g's device tree carried one Mac's ADT tables for its USB4
routers, NHIs, PCIe-C ports, their DARTs and its four ATC PHYs, and the
routers' DROMs. They are per Mac: one ATC row differs between the four
PHYs of the same Mac (calibration), and each DROM carries the host
router's UID. Fill them from this Mac's ADT instead, as on the J813.

- dt_prepare_t8152() runs the copies the other SoCs already use:
  kboot_setup_atc(), dt_set_acio_tunables() (router RC, PCIe adapter,
  AP firmware and NHI tables, and the DROM with this Mac's UID),
  dt_set_pcie_tunables() and dt_copy_dart_tunables(). They act only on
  nodes the device tree links by alias (atcphyN, usb4-N-*), so a device
  tree without them is unchanged. A failure there is logged and does not
  stop the boot: Linux then refuses the port.
- dt_copy_dart_tunables() takes a list of ADT name prefixes; T8152
  passes dart-acio and dart-apciec (the USB4 routers' and PCIe-C DARTs),
  because its other DARTs are locked or firmware-owned and their device
  tree describes them without a table. The other SoCs pass none and copy
  every DART, as before.
- A DART table's rows are bounded by the DART's own register window as
  its device tree node gives it, instead of a fixed 0x4000; without a
  window in the node, 0x4000 still holds. The T8152 USB4 DARTs have rows
  past 0x4000 in their 0xc000 window. tests/python/test_dart_tunables.py
  covers both: a row past 0x4000 is taken in a 0xc000 window and refused
  in a 0x4000 one, a row at 0xc000 is refused, and with a prefix list only
  those ADT DARTs are copied.
- kboot_atc.c: atc-phy,t8152 has no fuses, and two tables of the ADT's
  groups. A port that runs USB3 on lane 0 only (apple,fixed-usb3: the
  J873g's front hub) gets the USBC0 groups and lane 0's USB list; every
  other port gets CIO on both lanes, with lane 1 at lane 0 + 0x9000. The
  T8142/T8122 PMAFSM rows are not added.

Checked offline against the J873g's 26A434 and 27.2 ADTs: for all four
ATC PHYs, all three routers and their NHIs, DARTs and PCIe-C ports, the
copies give the tables the J873g device tree carried, row for row; the
DROMs differ only in the UID.

Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
@sithglan
sithglan force-pushed the thomas/t8152-usb4-tunables branch from 155b58f to 46c6d9b Compare November 24, 2026 13:13

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verdict: FINISH at 46c6d9b47308

Blockers:

  • §5 Hardware evidence (PR body): the J873g aura-try Stage 2 row in the PR body is still from the previous head 155b58f3 (1.0.0b15-g155b58f3), not 46c6d9b47308. Please post an exact-head 46c6d9b47308 J873g boot row plus a non-T8152 Mac regression boot row (since dt_copy_dart_tunable() now applies dt_dart_window(dart) on every SoC) showing 0 failed units, 0 DART faults, and 0 new kernel errors.
  • PR body accuracy: update the ## Change section, which still says "Every other SoC keeps 0x4000" and "No other SoC's path changes" — in 46c6d9b47308, dt_dart_window(dart) runs for every SoC (with 0x4000 fallback only when reg has no window size).

Checked:

  • Prior code and CI blockers resolved cleanly: dt_copy_dart_tunable() (src/kboot.c:3372-3374) now uses dt_dart_window(dart) unconditionally after the existing apple,tunable early-return, dt_copy_dart_tunables(const char *const *only) (src/kboot.c:3395-3427) drops the global chip_id gate in favor of an explicit prefix list, and tests/python/test_dart_tunables.py covers both 0xc000/0x4000 window bounds and the {"dart-acio", "dart-apciec", NULL} filter across all four lab DART shapes. All 15/15 CI checks pass on 46c6d9b47308.
  • Cross-checked all 668 Apple DART nodes across the Linux DTS tree (0x4000: 408, 0xc000: 168, 0x20000: 92; zero < 0x4000), confirming dt_dart_window(dart) never tightens bounds below 0x4000 on existing SoCs. §1–§4 and §6 pass (src/kboot_atc.c clean, human author/committer and Signed-off-by, clean naming). Non-blocking nit: src/kboot.c:3386-3394 has two adjacent block comments above dt_copy_dart_tunables() that can be combined if the commit is touched again.
Evidence
  • Head commit: 46c6d9b473082351c1c21ebf18775a9a248b4761 (kboot: T8152: copy the USB-C tunables and router DROMs from the ADT) — single commit, author/committer Thomas Glanzmann <thomas@glanzmann.de>, human Signed-off-by.
  • CI (15/15 green on 46c6d9b47308): build, format-check, ESP stage 2 vital size, stage1-size (gcc, clang-macos, fedora, alarm, nix), Pytest (ubuntu-latest + gcc, ubuntu-latest + llvm, macos-26 + llvm-brew, macos-15 + llvm-brew, ubuntu-24.04-arm, native start.S), aurora-agent-policy (policy, selftest).
  • DART reg window audit across Linux Apple DTS: 668 DART nodes scanned — 408 at 0x4000, 168 at 0xc000, 92 at 0x20000, 0 smaller than 0x4000.
  • Remaining gap: PR body still cites 1.0.0b15-g155b58f3 and "Every other SoC keeps 0x4000" / "No other SoC's path changes", with no 46c6d9b47308 J873g or non-T8152 regression boot rows yet.

sithglan added a commit to sithglan/aurora-linux that referenced this pull request Nov 24, 2026
The two front USB-C ports sit behind an on-board VL822 hub on usb-drd2.
The hub's USB2 side is on the controller's eUSB2 PHY, which the loader
sets up, and its USB3 side on ATC2's Type-C PHY, wired directly without
a Type-C mux. So far the controller was limited to high speed and the
hub ran at USB2 only.

Describe ATC2's PHY as an apple,t8152-atcphy with apple,fixed-usb3,
hand it to usb-drd2 as its USB3 PHY and drop the controller's high-speed
limit. Nothing changes for usb-drd1 (the back-left port).

The PHY's power domains are ATC2's USB_AON, COMMON_DP_0 and COMMON_DP_1
PMGR power states, in a new node for the ATCs' block of PMGR states at
0x308290000, and its common domain, PSD service 57 (ADT clock-gates
57). The T8152 USB3 bring-up runs the power states without automatic
power management, so they are marked apple,no-auto-pm.

The PHY's tunables are the groups of the ADT's atc-phy2 node that
apply to USB3 on lane 0: the common and PLL defaults as common-a, the
fabric, PLL and USBC0 groups as common-b and the lane 0 groups as
lane0-usb. Some of them differ between the four ATCs of the same Mac,
so they are calibration: the bootloader copies them from the Mac's own
ADT, through the atcphy2 alias (aurora-silicon/aura#498). With a loader
that copies none, the PHY runs USB2 only.

Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
sithglan added a commit to sithglan/aurora-linux that referenced this pull request Nov 24, 2026
The two front USB-C ports sit behind an on-board VL822 hub on usb-drd2.
The hub's USB2 side is on the controller's eUSB2 PHY, which the loader
sets up, and its USB3 side on ATC2's Type-C PHY, wired directly without
a Type-C mux. So far the controller was limited to high speed and the
hub ran at USB2 only.

Describe ATC2's PHY as an apple,t8152-atcphy with apple,fixed-usb3,
hand it to usb-drd2 as its USB3 PHY and drop the controller's high-speed
limit. Nothing changes for usb-drd1 (the back-left port).

The PHY's power domains are ATC2's USB_AON, COMMON_DP_0 and COMMON_DP_1
PMGR power states, in a new node for the ATCs' block of PMGR states at
0x308290000, and its common domain, PSD service 57 (ADT clock-gates
57). The T8152 USB3 bring-up runs the power states without automatic
power management, so they are marked apple,no-auto-pm.

The PHY's tunables are the groups of the ADT's atc-phy2 node that
apply to USB3 on lane 0: the common and PLL defaults as common-a, the
fabric, PLL and USBC0 groups as common-b and the lane 0 groups as
lane0-usb. Some of them differ between the four ATCs of the same Mac,
so they are calibration: the bootloader copies them from the Mac's own
ADT, through the atcphy2 alias (aurora-silicon/aura#498). With a loader
that copies none, the PHY runs USB2 only.

Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
sithglan added a commit to sithglan/aurora-linux that referenced this pull request Nov 24, 2026
The three rear USB-C ports' ATC PHYs (ADT atc-phy0, 1 and 3) were only
known to the display controllers, as register windows they program and
power themselves. Describe them as T8152 Type-C PHYs, which the ATC PHY
driver runs in CIO mode for USB4:

- their core windows (0x403000000, 0x40b000000, 0x413000000, 0x84000
  each, also mapped by the display controllers);
- the orientation and mode switches, linked to the SuperSpeed port
  (port@1) of the port's usb-c-connector;
- their power domains, in power-up order: the ATC's USB_AON, its common
  PSD service (55, 56, 58) and its COMMON_DP_0/1 power states, new
  nodes next to ATC2's. The USB_AON states are kept on, as ATC2's: they
  hold the rear USB controllers' state the loader set up;
- the atcphy0, 1 and 3 aliases, through which the bootloader copies
  each PHY's CIO tunables from the Mac's own ADT (atc-phyN groups,
  aurora-silicon/aura#498): the common defaults before the lanes are
  powered up, the fabric, PLL and remaining common groups after them,
  then each lane's groups. Without them the PHY runs no CIO mode.

The display controllers' usb-c port nodes take the PHYs through their
DP PHY, which powers them while a controller drives the port.

Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
sithglan added a commit to sithglan/aurora-linux that referenced this pull request Nov 24, 2026
Describe the three rear USB4 routers (ADT acio0, acio1, acio3) with
their mailboxes, NHI, ACIO DARTs, PCIe-C tunnels and their DARTs, the
CIO reset block, the PSD services they need and the LSTX pins.
Generated from the J873g ADT. The router, NHI, DART and PCIe-C
tunables and the routers' DROMs are not in the device tree: they are
per Mac (a DROM carries the host router's UID), so the bootloader
copies them from the Mac's own ADT (aurora-silicon/aura#498), through
the usb4-N-acio, -pcie-adapter, -nhi and -pcie aliases (ADT acio0, 1
and 3, apciecN), and the DARTs' by their address. With a loader that
copies none, the routers, NHIs and PCIe-C ports refuse to start.

Each router coprocessor's mailbox has apple,t8152-smc-mailbox as its
fallback and the two interrupts of the ADT's acio-cpuN node, which list
send-empty first, as the SMC mailbox's do.

Each router's Thunderbolt switch (its port@1) is linked to the USB4
port (port@4) of its port's usb-c-connector, as on the J813: the PD
controller driver sets the port's ATC PHY to CIO mode and then starts
the router with the cable's EUDO and orientation, and stops the router
before it takes the PHY out of CIO mode.

Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
@sithglan

Copy link
Copy Markdown
Contributor Author

@RyanTheTide @DjDeveloperr thanks. Both points are fixed. The head is 46c6d9b4 (same single commit, message updated), and CI is green, the three Pytest jobs included.

No chip gate in the DART copy

  • Window: every DART's rows are bounded by its own register window, from its device tree node (dt_dart_window()). The fixed 0x4000 holds only when the node gives none. The existing-table check now runs first, as you suggested.
  • Ownership: dt_copy_dart_tunables() takes a list of ADT name prefixes. dt_prepare_t8152() passes dart-acio and dart-apciec; the generic path passes NULL and copies every DART, as before. No chip_id is left in either function.
  • Tests (tests/python/test_dart_tunables.py): the fixture now also extracts dt_dart_window(), and the tree sets explicit cells so that windows read right.
    • A row at 0x4600 is taken in a 0xc000 window and refused in a 0x4000 one, and a row at 0xc000 is refused in a 0xc000 window.
    • With the prefix list, in all four DART shapes, exactly the dart-acio* / dart-apciec* nodes get a table.
    • Two mutants fail it: the fixed 0x4000 bound back, and a filter that does nothing. pytest tests/python: 1100 passed, 25 skipped.

Other SoCs. The window bound now applies everywhere, so I checked what it changes on the J813 (T8142), offline:

  • The J813's 36 ADT DART tables (27.0 ADT and an earlier one) have no row past 0x4000.
  • Every enabled DART in its live device tree has a window of 0xc000 or 0x20000, none below 0x4000.
  • So on the J813 the copy gives exactly the tables the old bound gave.
  • A J813 boot row of this head is still owed. The J813 can only boot a new aura through a chainload over its tether, and that needs a cable change at the Mac nobody can make today. Its enrolled Mach-O takes aura-try for kernels only.

J873g row at 1.0.0b15-g46c6d9b4 (one-shot trial from the enrolled 1.0.0b14-gd7f5a487, kernel built from linux#2178's new head 1b969ed3f444, the M6's default command line):

  • The live device tree carries all 48 USB4/ATC tunable and DROM properties the old in-tree DTB had: 45 byte for byte, and the 3 DROMs differ only in UID and CRC8.
  • 6 of 6 DART tables were copied and none rejected.
  • 4/4 ATC PHYs and 3/3 routers bind. Router 0 trained USB4 with the mini on the tether at 20 Gb/s x2, and the front hub runs at 10000M.
  • Counts: nothing deferred, 0 failed units, 0 AVC denials (SELinux disabled), 0 DART faults, and no kernel error lines beyond the base.

Still not covered: USB4 storage and DisplayPort-mode rows on the J873g. They need the enclosure and a USB-C monitor plugged into the M6.

Assisted-by: LLM (Claude:Opus 5.5)

@github-actions github-actions Bot added changes-requested A reviewer requested changes (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks required sections (bot) labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Merge readiness at 46c6d9b4: not ready yet

Check Detail
CI at head ok 15 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes no requested by DjDeveloperr
Hardware row at head ok in the PR body at 46c6d9b4
Conflicts ok none
PR text ok Risk: two-way · J873g (T8152) for the new copies; the DART window bound runs on every Mac, and no Apple DART in the tree has a window below 0x4000, so it refuses nothing it took before (identical on the J813).

Areas: none matched in CODEOWNERS

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@sithglan

Copy link
Copy Markdown
Contributor Author

The J873g USB4 storage and DisplayPort rows on this exact head (1.0.0b15-g46c6d9b4, one-shot trial, linux#2178 1b969ed3f444) are in linux#2178 (issuecomment-7138430833):

  • the Ugreen NVMe over the tunnels on both rear routers with the copied tables: 20 Gb/s x2, the same checksum across a replug, a flipped replug and a port swap, 3.1-3.2 GB/s;
  • the USB-C monitor and the enclosure swapped between back-left and back-right, so each port went from DP to CIO or the other way, with HDMI showing a picture throughout;
  • 0 failed units, 0 DART faults, no new kernel error lines.

The non-T8152 boot row comes next, on the J813.

Assisted-by: LLM (Claude:Opus 5.5)

@sithglan

sithglan commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

@DjDeveloperr @RyanTheTide the non-T8152 regression row, on the J813 (MacBook Air M5, T8142), on this exact head.

  • Two chainloaded boots of the same kernel (7.3.0-aurora-j813-u4rear+, linux#2142's head) with the J813's default config:
    • aura main at this PR's base, 1.0.0b15-g8b1cb8ce;
    • this PR, 1.0.0b15-g46c6d9b4.
  • Device tree: all 123 apple,tunable* properties in the live device tree are byte-identical between the two boots. That includes the 24 on DART nodes, where dt_dart_window() now applies to every SoC. It matches the offline check: no J813 ADT DART row lies past 0x4000, and no J813 DART window is below 0x4000.
  • Counts on the aura#498 boot: 0 failed units, 0 DART faults, and no kernel error lines that the aura main boot doesn't have.
  • The same boot ran linux#2142's physical replug matrix on the rear USB4 port: replug idle, under read, with the disk held open, and flipped, the same checksum every time (linux#2142 issuecomment-7138757965).
  • Both aura boots log the J813's GPU firmware lines that plain aura main always gives there (no GPU firmware hand-off for 27.2 on main). They are the same in both, and none involve DARTs.

Together with the J873g rows (exact head, USB4 storage and DisplayPort switch), that covers what your review asked for.

Assisted-by: LLM (Claude:Opus 5.5)

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verdict: FINISH at 46c6d9b47308

Blockers:

  • §4 PR body: remove the trailing Assisted-by: line at the bottom of the PR description (and please add Tested: / Risk: lines while editing so pr-text / pr-readiness are completely clean).

Checked:

  • Both exact-head 46c6d9b47308 hardware rows now satisfy §5:
    • J873g (T8152): USB4 storage (20 Gb/s x2, 3.1–3.2 GB/s, checksum verified across replug/flip/port-swap) and DP/CIO port swap with 0 failed units, 0 DART faults, 0 new kernel errors.
    • J813 (T8142, non-T8152 regression): A/B vs base 8b1cb8ce confirms all 123 apple,tunable* properties (including all 24 DART nodes) are byte-identical, 0 failed units, 0 DART faults, 0 new kernel errors, and rear USB4 replug matrix clean.
  • Code, commit 46c6d9b47308 (human author/committer + Signed-off-by:, zero attribution), and 16/16 CI checks are all clean.

Ready for immediate APPROVE once the PR description is cleaned up.

Evidence
  • Exact head: 46c6d9b473082351c1c21ebf18775a9a248b4761 (OPEN, isDraft: false, MERGEABLE, 16/16 checks passing).
  • J873g row: linux#2178 #issuecomment-7138430833; J813 regression row: #issuecomment-7138758401 (17:08Z).

@sithglan

Copy link
Copy Markdown
Contributor Author

@DjDeveloperr done: the description has no Assisted-by: line any more and follows the PR structure. What, Tested (J873g and J813 at 46c6d9b4), Risk (two-way door; the DART window bound runs on every Mac but refuses nothing it took before) and Not yet are at the top, with the details and the evidence, including both rows, folded below.

@github-actions github-actions Bot added blast:all Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) and removed needs-hw-row No hardware row at the PR head (bot) needs-template PR body lacks required sections (bot) labels Nov 24, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verdict: MERGE at 46c6d9b47308

Blockers: none

Checked:

  • §4 PR body cleanup verified: Assisted-by: footer removed, structured with What, Tested, Risk, and Not yet; commit 46c6d9b47308 carries human author/committer (Thomas Glanzmann) and Signed-off-by: with zero attribution.
  • §5 exact-head 46c6d9b47308 hardware evidence complete: J873g (T8152) USB4 storage + DP/CIO port-swap row and J813 (T8142, non-T8152) A/B regression row (all 123 apple,tunable* properties including 24 DART nodes byte-identical vs base 8b1cb8ce, 0 failed units, 0 DART faults, 0 new kernel errors).
  • Code and 16/16 CI checks are all green.
Evidence
  • Exact head: 46c6d9b473082351c1c21ebf18775a9a248b4761 (OPEN, isDraft: false, MERGEABLE, 16/16 CI checks passing).
  • Rows: J873g (linux#2178 #issuecomment-7138430833), J813 (aura#498 #issuecomment-7138758624).

@RyanTheTide
RyanTheTide merged commit 59af506 into aurora-silicon:main Nov 24, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blast:all Macs affected, from Merge risk (bot) changes-requested A reviewer requested changes (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants