Repository navigation
arm: apple: reference m1n1's J713 AOP reservations from the OS tree - #13
Conversation
m1n1 now hands the J713 AOP over as on T6040: it programs the AOP DART's DAPF, reserves the firmware segments (__ETEXT, and __OS_LOG, which iBoot places anew at every boot) and the DAPF windows, and lists them in the control tree AOP's memory-region, or disables the AOP. The importer already copies those reservations; reference them from the OS tree's AOP too, or disable the AOP there when m1n1 did not hand it over. An OS tree whose AOP lists its own memory-region (older kernels, whose driver programs the DAPF itself) keeps it. In an OS tree without an AOP, the reservations have no owner, as for an omitted display. The host test covers a handoff, an AOP m1n1 disabled or never had, a malformed reference (refused without changes), an OS tree with its own regions, an OS AOP at another path and an OS tree without an AOP. Tested on J713 (MacBook Air 13" M4) with that m1n1 and a kernel taking the T6040 AOP path: the AOP gets the 17 regions and starts, and the microphones, headphone jack and speakers work. Signed-off-by: Erik Bourget <[email protected]>
|
Clarification from further testing: this is only needed on the per-kernel DTB path (a On the bundled path, the kernel boots on m1n1's control tree, which already has the AOP's I tested a J713 that way with U-Boot built from the Without this change, a per-kernel J713 DTB boots with the AOP refused ("No firmware memory-region from the bootloader"). That's safe, just without audio. So this is for development setups that boot per-kernel DTBs, not a blocker for installs. |
|
The new AOP import runs on the transaction's scratch tree, translates memory-region phandles, disables the destination AOP when no valid control-tree handoff exists, and preserves an older OS tree's own regions. An omitted OS AOP loses its owner tuple. The importer remains explicitly J713/T8132-gated. The Apple build passed, and the public importer host tests passed 5/5 with one private-capture test skipped. The supplemental sandbox build also passed after supplying compatible host tools in the task prefix. Its The contributor's latest note correctly narrows the dependency. This is needed for per-kernel DTBs, while the bundled-tree path already uses m1n1's reservations and works without it. Merge after corrected m1n1 #47, before using Linux #434 through the per-kernel route. The packaged J713 audio boot in the PR is its hardware proof. |
|
I re-ran the sandbox suite against a baseline to follow up on the Host tools. U-Boot's pytest harness builds the bootstd disk images ( Clean run. Each tree was built with
This PR. The sandbox build doesn't compile The three failures are That commit sets the X byte to Results:
|
Companion to aurora-silicon/m1n1#47: m1n1 now hands the J713 AOP over with its DAPF programmed, and its firmware segments and DAPF windows reserved in the control tree AOP's
memory-region.The importer already copies those reservations. This change makes it reference them from the OS tree's AOP, or disable the AOP there when m1n1 did not hand it over.
memory-region(older kernels, whose driver programs the DAPF itself) keeps it.Host test:
test_j713_aop_handoffcovers:Removing each part of the change makes the test fail.
Hardware: tested on a J713 with that m1n1 and the reworked aurora-silicon/linux#434. The AOP gets the 17 regions, starts, and audio works.