Repository navigation
arm: apple: carry the J713 SEP boot manifests into the OS tree - #14
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]>
05ec3b0 to
7dcfd3b
Compare
|
The new step runs only inside the existing opted-in J713 importer, after both trees have passed the J713/T8132 identity checks. It uses the transaction scratch tree, requires Please fix the missing-property case. The per-kernel activation also needs coordination with Linux #457: its SEP and SEP DART nodes remain disabled, and this step copies no status. The board must supply the qualified activation policy. The updated hardware note now reports a boot with #15, #14 and #457 DTBs, manifest transfer and an existing-enrolment match. Please identify the exact tested per-kernel DTB/activation changes to reconcile that result with the disabled SEP/DART status in the reviewed #457 source. The software gates are queued through an ordinary buildslot. I will update this same comment with the exact build and test results. No hardware test was performed in this review. Merge #15 before this change; its larger source bound is required by the tree carrying SEP manifests. Rebase above #13 for the combined J713 importer and retain both AOP and SEP tests; the fixture arguments still need to retain both features. The revised 40-42 SEP fault numbers address the earlier collision with #13. Merge for deployment with corrected Linux #457, the SEP-enabled control DTB and this Mac's own installer-prepared sensor records. The bundled-tree path remains a separate route. |
The SEP driver registers with the enclave using this boot's local-policy and iBoot manifests, and refuses to attach without them. m1n1 publishes them on the node the sep alias names. Copy both into the per-kernel tree when it names an apple,sep node. A manifest this boot did not publish, including from a control tree without the SEP, is removed from the OS tree so that an older copy never reaches the driver. An OS tree without the SEP imports as before; a sep alias that is not apple,sep on either side refuses the transaction. Add host regressions: both manifests replacing stale OS copies, each one missing, mismatched nodes, and trees without the SEP on either side. Signed-off-by: Erik Bourget <[email protected]>
7dcfd3b to
29557f5
Compare
|
Updated (29557f5), rebased on #13:
On activation: the SEP driver brings the SEP and SEP DART nodes out of On the hardware proof: that route has now run on J713. The boot.bin was m1n1 + #457's DTBs (with the
The first attempt without #15 stopped after the logo: the control tree was 136,997 bytes, over the 128 KiB source bound. That's #15. |
The SEP driver registers with the enclave using this boot's local-policy and iBoot manifests, and refuses to attach without them. m1n1 already publishes both (
dt_set_sep()) on the node itssepalias names. On J713, though, the kernel gets its per-kernel tree through the J713 importer, which copies only an explicit list of properties, so the manifests never reached it.Change
Stacked on #13, the J713 AOP import. The first commit here is #13's, and the tests keep both the AOP and SEP fixtures.
j713_sep): when the OS tree names anapple,sepnode, copylocal-policy-manifestandiboot-manifestfrom m1n1's tree.sepalias that isn'tapple,sepon either side refuses the import, transactionally.test_apple_j713_fdt.py(SEP faults 40-43; arm: apple: reference m1n1's J713 AOP reservations from the OS tree #13's AOP cases are 35-39):Depends on
aurora-silicon/linux#457, which adds the J713 SEP node and
sepalias.It also depends on u-boot#15. m1n1's J713 tree with the SEP and its manifests is about 137 KB, over the importer's current 128 KiB source bound, so without #15 the import is refused and the boot stops. That happened on hardware. With it, a
boot.binbuilt from that DTB lets m1n1 publish the manifests; without it this step is a no-op.Testing
private_capturesskipped). checkpatch is clean.apple_m1_defconfigbuilds withCONFIG_APPLE_J713_FDT=y.boot.binof m1n1 + linux#457 DTBs + this + arm: apple: let the J713 import take a 192 KiB m1n1 tree #15, booting a per-kernel DTB with no manifests:secure-boot-hashes;sep-firmware;