Skip to content

arm: apple: import the J713 external DCP handoff - #31

Merged
RyanTheTide merged 1 commit into
aurora-silicon:aurora-wipfrom
erikwb:j713/dcpext-import-pr
Nov 5, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:aurora-wipfrom
erikwb:j713/dcpext-import-pr

Conversation

@erikwb

@erikwb erikwb commented Nov 5, 2026

Copy link
Copy Markdown

Companion to aurora-silicon/aura#74: with the opt-in boot.bin line chosen.asahi,j713-dcpext=1, the boot loader hands the J713's two external DCPs (dcpext0, dcpext1) over to the OS. It reserves their firmware memory and marks each apple,t8132-dcpext node apple,t8132-dcpext-firmware-ready, with the firmware's UUID and version. On J713 the kernel gets its per-kernel tree through the J713 importer, which copies only an explicit list of properties, so none of that reached the kernel.

Change

  • New import step (j713_dcpext): for each dcpext0/dcpext1 alias in the OS tree, copy apple,firmware-uuid, apple,firmware-version, apple,firmware-compat and the memory-region references from m1n1's tree, then set the marker, marker last.
    • A marker in the OS tree is always cleared first, so a stale one never reaches the kernel when m1n1 did not hand the controller over.
    • A malformed marker, or a control-tree node that isn't apple,t8132-dcpext, is ignored: the OS tree stays unmarked and the boot goes on, since the display is optional.
    • An OS alias that isn't apple,t8132-dcpext refuses the import, transactionally, as for the AOP and SEP.
  • Reservations: dcpext0/dcpext1 join the mapped aliases. An OS tree without the external DCPs owns none of their reservations, so their mappings are left out, as for an omitted AOP, instead of failing the whole import.
  • Host test: test_j713_dcpext_handoff covers (faults 44-47; the SEP cases are 40-43):
    • a handoff (UUID, version, marker, and the reservation's owner tuple pointing at the OS dcpext0);
    • no handoff;
    • no handoff with a stale marker in the OS tree;
    • a malformed marker;
    • a control-tree node that isn't a dcpext;
    • an OS tree without the external DCPs, with a handed-over dcpext in the control tree, and with a control-tree node that isn't one.

Depends on

Testing

  • Host: test/py/tests/test_apple_j713_fdt.py: 8 passed, 1 skipped (private_captures). checkpatch is clean.
  • Build: apple_m1_defconfig (with CONFIG_APPLE_J713_FDT=y) and apple_j873_defconfig build with WERROR, as in CI.
  • Hardware: on a J713 with this import and the aura handoff:
    • the kernel adopted both external DCPs ("external DCP adopted", DCPLink READY), and the boot loader did no PMGR writes;
    • two 4K60 external monitors run through a CalDigit TS5 dock.

developed and tested by Claude (Anthropic), working with me on the J713

m1n1 can hand the J713's external DCPs over to the OS: it reserves their
firmware memory and marks each apple,t8132-dcpext node
apple,t8132-dcpext-firmware-ready with the firmware's UUID and version.
Carry that to the same external DCP in the OS tree, marker last. Clear
the marker there when m1n1 did not set it, and ignore a malformed
handoff rather than refusing the boot for an optional display.

An OS tree without the external DCPs owns none of their reservations:
leave their mappings out, as for an omitted AOP, instead of failing the
whole import.

Signed-off-by: Erik Bourget <[email protected]>

@RyanTheTide RyanTheTide 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.

Reviewed and tested here, thanks Erik.

  • test_apple_j713_fdt.py passes on the PR (8 passed, 1 skipped for the private captures) and aurora-wip stays 7 passed, 1 skipped
  • apple_m1_defconfig with APPLE_J713_FDT and apple_j873_defconfig both build clean with -Werror, checkpatch is clean
  • the new step only runs inside the J713 importer, which needs the u-boot,j713-dtb-source identity and apple,j713 + apple,t8132 on both trees, so nothing changes on the other Macs

Merging.

@RyanTheTide
RyanTheTide merged commit b95bcf8 into aurora-silicon:aurora-wip Nov 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants