Repository navigation
kboot: give the J616s the J614s camera and SEP handoff - #293
Conversation
|
Thanks for bringing the J616s camera and SEP handoff up to the J614s level. We select behaviour by a hardware property, not by the list of machines it was tested on. The new The reason in your description is a firmware fact: iBoot moves the ISP segments every boot, and puts the DCP We can run rows on our J616s (M4 Pro) with that version. |
|
One addition to the earlier note: |
93d0954 to
64c9075
Compare
|
Thanks for the two new commits. Finding the ISP through its The description still shows the earlier |
5cc443c to
9884781
Compare
|
Before you run the J616s row: please use the current head, 9884781 (same trees as 5cc443c; only the commit messages changed), rather than 64c9075. Results on my J616s (MacBook Pro 16" M4 Pro, 26.6.2 stub, kernel 7.3.0-0testedgeB2):
|
|
Thanks for the J616s results and for the pointer. We will run our J616s row on 9884781 rather than 64c9075 (camera stream, Touch ID and the reserved-memory overlap check) and post it here. Your 64c9075 result, with the SEP range left whole because of the AOP's no-map segment, is a useful negative for the split logic. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Thanks. Finding the ISP through its isp-firmware-text placeholder, and splitting the SEP range wherever DCP OS logs lie inside it, is the hardware-driven selection Ryan asked for. The J616s result on 9884781 is clear: one sep-retained range, no overlap warnings, and Touch ID and the camera up. CI is green on 9884781.
Two things hold it.
1. The SEP split must stay fail-closed. On main, the J614s split fails the handoff on any tree it doesn't expect: every check in dt_split_j614s_sep_reservations() returns -1, and kboot_prepare_dt() bails (src/kboot.c:11920-11922 on main). dt_split_sep_reservations() turns those same checks into goto keep (src/kboot.c:8733-8809), which prints "SEP reservation left whole" and boots on. That now applies to the J614s too. For example, a J614s whose tree has a mapped reservation inside the SEP range now boots with it, where main stops. For SEP reservations we keep failures fatal.
Suggested shape:
- Return 0 without a change only when there's nothing to do: no
sep-firmware, or nothing inside the range. If you want, also when only another coprocessor's no-map firmware lies inside it (the "no DCP OS log" case at:8775), since the whole range stays reserved there. - Every other refusal returns -1, so
kboot_prepare_dt()bails as main does on the J614s. That covers the reservation's own shape (:8735-8742), a reservation inside the range that isn't a no-map coprocessor region (:8754-8767), a SEP node that doesn't takesep-firmwareassepfw(:8785-8797), and overlapping regions (:8809). test_sep_dcp_log_split.pywould then expect the bail on those trees instead of a byte-identical tree.
2. DCO. docs/licensing.md asks for a Signed-off-by on new contributions. 6678180 and 9884781 have none, though your earlier commits did.
Not blocking: the description still shows the t6040_m4pro_laptop() gate and the J614s-only AOP part, as Ryan noted.
Once both are in, Ryan's J616s row (camera stream, Touch ID, the overlap check) and a J614s boot can come after the merge, with a revert ready.
|
Blockers: 2. The fail-closed refusals and the missing Signed-off-by from the 11-20 review still stand at 9884781. Two more:
Not blocking: with HW row: J616s on the 27.2 (26B123) stub at this head (the rows so far are on 26.6.2): camera stream, Touch ID, the "retained warm SEP range" line, no reserved-memory overlap. A J614s boot showing the same split as main. One T8132 (J713) and one T6030 or T6041 boot showing "SEP reservation left whole" or a working SEP after a split. Pass: 0 failed units, 0 AVCs, 0 new kernel errors. Assisted-by: LLM (Claude:Opus 5.5) |
…s no isp alias
The M4 Pro MacBook trees (t604x-j614-j616.dtsi, the J614s and J616s) have
the ISP firmware placeholders but no isp alias. The placeholder-driven
handoff looks the ISP up by that alias, so on a J616s dt_set_isp_fwdata()
printed "'isp' not found" and returned before filling anything. The ISP
was handed to the kernel enabled, with the tree's static segment
addresses from one 26.6.2 boot. iBoot moves the segments: on our J616s the
text was at 0x10000c34000, not 0x10000c44000. So the kernel mapped the
wrong memory, and the firmware never reported in ("never received first
magic number from firmware").
When the alias is missing on a tree with placeholders, take as the ISP
the one node whose first memory region is the isp-firmware-text
placeholder, for the fill and for disabling the ISP when the fill is
refused. If two nodes take it, none is guessed.
This replaces the earlier J616s board check: any tree with the
placeholders, an enabled ISP node that takes them and ADT segment-ranges
gets the fill, whatever its alias. The J614s still takes its own path
after DAPF setup, and the AOP stays the J614s's alone.
The T8132 trees (J604, J623, J624, J713, J715) also have placeholders and
no isp alias. Their ISP is disabled in the tree, so the fill does nothing
there; the only change is that apple,firmware-version and
apple,firmware-compat now go on that disabled node, which the H17 ISP
driver does not read.
Unlike the earlier version, the J616s fill is not held back for the DAPF
result or the 26.6.2 firmware: it runs, like every placeholder fill, in
kboot_prepare_dt().
test_t6041_isp_handoff.py gains the J616s tree shape without the alias:
it is filled, a refused fill disables that ISP, and a second node taking
the text placeholder leaves it untouched. The first case fails when the
lookup goes back to the alias alone.
Tested on a J616s with the earlier, board-gated version (macOS 26.6.2
firmware, kernel 7.3 test build): the ISP text and data reservations
carried the ADT's addresses, the ISP found its sensor (0x958), and 1080p
NV12 frames streamed with real image content. This version, on the same
J616s (macOS 26.6.2 stub, kernel 7.3 test build): the ISP text is
reserved at this boot's ADT address, the ISP finds its sensor (0x958) and
the video device comes up.
Signed-off-by: Scott Jones <scottajones@gmail.com>
On the M4 Pro MacBooks (J614s, J616s) iBoot places the DCP __OS_LOG buffers inside the SEP firmware range it reports, and the kernel warns at boot that sep-firmware and the dcp-oslog nodes overlap. The J614s split that keeps the warm SEP range around those no-map regions ran on the J614s alone, behind a board check, so the J616s booted with the overlap. Select the split by what the tree shows instead of by board: check every tree, and split only when a DCP OS log reservation (no-map, apple,dcp-os-log, as the display handoff makes them) lies inside the SEP range. On a T6040 those exist when the display handoff ran (26.6.2 firmware, a tree that describes the display block). The split then keeps the SEP range around every no-map reservation inside it that is an OS log or another coprocessor's live firmware (apple,asc-mem): on our J616s the AOP's firmware segment sits right after the three OS logs, and the first log starts below the range. A tree whose SEP range overlaps nothing keeps its reservation as dt_set_sep() made it. Dropping the board check alone is not enough. The split looked the SEP node up at /sep@406600000, which is the T6040/T6041 address. On other SoCs dt_set_sep() makes sep-firmware but that path does not exist, so the split would return an error and fail kboot_prepare_dt() on those Macs. Find the SEP node through the sep alias, as dt_set_sep() does. When the split cannot be done safely, leave the tree unchanged, say why, and boot on, as the J616s did before. That covers: - no OS log inside the range (only those show the warm SEP range is shared; on a Mac whose SEP boots from the reservation, removing it would break the SEP); - any other kind of reservation inside the range; - reservations that overlap each other; - a SEP node that does not take sep-firmware as sepfw. Only a failure after the tree has started to change still fails the handoff. test_sep_dcp_log_split.py runs the split and its call in kboot_prepare_dt() on trees built in the shape the loader leaves them: - the J616s layout of a 26.6.2 boot, read from the Mac (SEP 0x10005f5c000-0x100064d0000, OS logs from 0x10005f3c000, below the range, to 0x10005fa8000, then the AOP segment to 0x10005fd4000), is split into one retained range after them; - two OS logs give three retained ranges, a log past the start of the range is clamped, and another coprocessor's firmware beside an OS log is split out with it, but not on its own; - a SEP node at another path is found through its alias; - trees that overlap nothing, or where the split is refused, come out byte-identical. Restoring the board check, the fixed SEP path, the old function without its gate, failing on a refusal, dropping the OS log trigger, accepting OS logs only (the previous version of this commit, which left the J616s range whole), or dropping the no-map, kind, overlap, SEP compatible or sep-firmware no-map checks each fails it. Tested on a J616s with the earlier, board-gated version (macOS 26.6.2 firmware, kernel 7.3 test build): the reservations carried no overlap warnings, the DCPs came up as before, and the boot reached the desktop. The previous version of this commit (OS logs only), on our J616s: the camera and Touch ID worked, but the AOP segment made it leave the SEP range whole, and the kernel reported sep-firmware overlapping two OS logs. This version, on the same J616s: one sep-retained reservation (5104 KiB) around the three OS logs and the AOP segment, no reserved-memory overlap warnings and no failed reservations, the SEP up with Touch ID matching a fingerprint, the camera up, and no failed units. Signed-off-by: Scott Jones <scottajones@gmail.com>
9884781 to
149ff32
Compare
|
Merge readiness at
Areas: none matched in CODEOWNERS Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: HOLD at 149ff327a5f9
Blockers:
tests/python/test_sep_dcp_log_split.py:46-50(CI red):Pytest (macos-26 + llvm-brew)fails to linksep-dcp-log-splitwith duplicate symbols_fdt_address_cellsand_fdt_size_cellsbecauserun_c()on currentmainalready linkssrc/libfdt/fdt_addresses.c(cancelling the remaining pytest matrix). Drop the localfdt_address_cells/fdt_size_cellsstubs and rebase onto currentmain.src/kboot.c:8733-8809,8840-8843(§3, prior blocker unfixed):dt_split_sep_reservations()still turns all pre-mutation validation errors intogoto keepreturning0instead of failing closed (return -1->bail()) asmaindoes on J614s. Return0unchanged only when there is nothing to do (nosep-firmware, nothing inside the range, or no DCP OS log inside it); keep structural, unexpected-overlap, andsepfw-binding checks fail-closed (return -1) and updatetests/python/test_sep_dcp_log_split.pyaccordingly.src/kboot.c:8764-8818,11926(§3, prior blocker unfixed):dt_split_sep_reservations()runs on every SoC and deletesmemory-region/memory-region-namesand/reserved-memory/sep-firmwarewhenever anyapple,dcp-os-lognode overlaps the SEP range. Those OS-log nodes are also created on T6030/T8132 (src/kboot.c:4328) and T6040/T6041/T6050 (dcp6_reserve_oslogs()), where removingsepfwis only proven safe on J614s/J616s. Gate the split on an explicit ADT/hardware property proving the warm SEP range is already active and shared, or prove a working SEP after split on each SoC family that can reach this path.- PR body (§4): delete the trailing attribution footer on the last line of the PR body (zero tool/AI attribution anywhere; do not replace it with an
Assisted-by:line). Commit trailers are now clean (6e93b9be,149ff327have human author/committer andSigned-off-byonly). - PR body / evidence (§5): add
Tested:andRisk:lines, update the stale PR description (still documents the removedt6040_m4pro_laptop()gate), and post hardware + regression rows at the exact head SHA (J616s on the 27.2 / 26B123 stub showing camera stream, Touch ID, retained warm SEP range, 0 reserved-memory overlaps, 0 SELinux denials, 0 failed units, 0 new kernel errors; plus a J614s boot and a T8132/T6030/T6041 regression check).
Checked: interdiff98847814..149ff327a5f9(identical code diff; commit trailers cleaned and DCO added), §1–§6 of pre-PR checklist (§1/§2/§6 code pass; §3/§4/§5 blocked), CI at149ff327a5f9.
Evidence
- Interdiff (
98847814->149ff327a5f9): zero code or test changes; both commits (6e93b9bed5e2,149ff327a5f9) dropped tool trailers and addedSigned-off-by: Scott Jones <scottajones@gmail.com>. - CI at
149ff327a5f9:Pytest (macos-26 + llvm-brew)FAILED (ld: 2 duplicate symbols: _fdt_size_cells, _fdt_address_cellsintest_sep_dcp_log_split.py);Pytest (ubuntu-latest + gcc),Pytest (ubuntu-latest + llvm),Pytest (macos-15 + llvm-brew)CANCELLED;readinessQUEUED;build,format-check,policy,selftest,pr-text(3 warnings:Tested:,Risk:, body footer),ESP stage 2 vital size,stage1-size(gcc,clang-macos,fedora,alarm,nix), andPytest (ubuntu-24.04-arm, native start.S)PASSED. - Nit (non-blocking):
dt_isp_node()now writesapple,firmware-version/-compatto disabled ISP nodes on T8132 trees; harmless while disabled, confirm no new ISP log lines in a T8132 boot row.
|
@scottjones, what is still open from Dj's review of
Once these are in, Dj will re-review. |
run_c() now links src/libfdt/fdt_addresses.c, so the test's own fdt_address_cells() and fdt_size_cells() are duplicate symbols, and the macOS llvm build fails to link the test. Signed-off-by: Scott Jones <scottajones@gmail.com>
dt_split_sep_reservations() returned 0 on every refusal, so a tree it did not expect booted on with the SEP reservation whole. On main the J614s split fails the handoff on those trees instead. Return 0 only when there is nothing to split: no sep-firmware, or no DCP OS log inside the SEP range, where the whole range stays reserved. When there is a split to do, a sep-firmware range that is not 16 KiB aligned, a reservation this code cannot place, a reservation inside the range that is not a no-map coprocessor region, a SEP node that does not take sep-firmware as sepfw, and overlapping regions now return -1, and kboot_prepare_dt() bails as it does on main. A sep-firmware this code cannot read at all (reserved-memory cells other than 2, a reg other than one range, or an empty range) returns -1 on any tree; dt_set_sep() always writes it in the shape this code reads. The split now looks at every tree, so a problem with another reservation, or the alignment of a range this boot's ADT reported, only refuses it when a DCP OS log lies inside the SEP range. Elsewhere the boot goes on as before: one unusual reservation on another Mac does not fail its handoff. The test expects the bail on the refused trees, and adds an unaligned sep-firmware beside an OS log (refused) and without one (kept), and a malformed reservation beside an OS log (refused) and without one (kept). Signed-off-by: Scott Jones <scottajones@gmail.com>
|
Merged main (26c1a85) in, with two new commits on top. The new head is af837e9, with no force push. Numbers follow your 04:12Z list.
Host at af837e9: gcc and clang stage 1 and ESP stage 2 build. Pytest with gcc and clang gives the same results as main apart from the new test. Still open: item 3 (gating the split on an ADT property) and item 5 (hardware rows at the new head). |
RyanTheTide
left a comment
There was a problem hiding this comment.
Verdict: FINISH, then merge at af837e990696
Blockers:
src/kboot.c:10751(dt_split_sep_reservations()) and:11503(dt_isp_node()): this head takes about 2 KiB of Stage 1.textand pushes the stage1 flavour well belowmainand the 4096 B floor. CI at this head: gcc 1648 B (main3696 B), fedora 1960 B (main4008 B), nix 1104 B (main3152 B). Those three jobs fail onmaintoo, but this PR makes them worse by 2048 B each. We see the same 2048 B drop locally with clang 22 (main3744 B, this PR 1696 B). Fix: mark the new and grown functionsAURA_XTEXT(src/types.h:74, as #281 and #282 do), then check that stage1 headroom is back at or abovemain's.src/kboot.c:10857-10858and:14471(Dj's item 3 from149ff327, still open, as your 11-27 note says): the split runs on every SoC. Once anyapple,dcp-os-logreservation lies inside the SEP range, it deletes the SEP node'smemory-region/memory-region-namesandsep-firmware. Those nodes are also made on T6030/T8132 (src/kboot.c:4950) and on T6040/T6041/T6050 (DCP6_OSLOG_PROP,src/kboot_display_handoff.c:211). Gate it on an ADT property showing that the warm SEP range is live and shared. If you can't, show a working SEP after the split on each family that can reach this path.- Rows at this head (item 5): none yet. Needed: the J616s on the 27.2 stub (camera stream, Touch ID, the "retained warm SEP range" line, 0 reserved-memory overlaps, 0 AVCs, 0 failed units, no new kernel errors), a J614s boot showing the split, and one T8132/T6030/T6041 boot showing "SEP reservation left whole" or a working SEP.
Checked: Re-checked against @DjDeveloperr's review at 149ff327.
- Item 1 is fixed. The local
fdt_address_cells/fdt_size_cellsstubs are gone, and all five Pytest jobs pass at this head. - Item 2 is fixed. With a DCP OS log inside the range, every structural, placement, overlap and
sepfw-binding check now goes torefuse, which bails. The split returns 0 unchanged only when there is nosep-firmwareor no OS log inside the range, which is the shape Dj suggested. - Item 4 is fixed. The description has
Tested:/Risk:, no attribution footer, and matches the code. Commits carry only your Signed-off-by. - Not blocking: a DCP OS log node with a malformed
regis skipped before it is counted, so a tree with only that log keeps the range whole instead of refusing.
@DjDeveloperr: items 1, 2 and 4 look fixed here, and items 3 and 5 are still open. Please re-review once those are in.
Evidence
- CI at
af837e99, run 46021127539:gcc stage1: headroom 1648 B,fedora stage1: headroom 1960 B,nix stage1: headroom 1104 B. secure-audit/enforce are unchanged frommain(11992 / 12392 B). - Local,
af837e99merged intomain2c8fa8d8,tools/stage1_size.shwith clang 22.1.6 (USE_CLANG=1 BUILTIN_LOGO=aurora BUILDSTD=1): stage1 text room 1696 B vs 3744 B onmain. - Local
pytest -q tests/python/test_sep_dcp_log_split.py tests/python/test_t6041_isp_handoff.py: 2 passed. - Read the full source diff against
main.
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
|
@scottjones, you've been quiet since 11-27, so I pushed a main merge to your branch as On @RyanTheTide's 11-28 review:
Local: build OK. Host pytest passes except the two main-caused failures that #570 fixes (T6041 typedef test, DT fuzz link). |
There was a problem hiding this comment.
Verdict: FINISH at 3b48e1b.
Checked: The owner reports 94,704 bytes of Stage 1 headroom on the new layout. The remaining review findings concern the SEP reservation change. A DCP log overlap by itself does not establish that the SEP firmware reservation can be replaced across all reachable SoC families. Please gate the split on evidence that the warm SEP range is live and shared, or supply SEP validation on the affected families. Keep the current J616s and J614s camera/SEP checks, peer regression and hosted CI.
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
…shared The split ran on any tree with a DCP OS log inside the SEP range. That was inferred from the tree; nothing showed the SEP no longer needs its firmware there. Read both facts from the ADT instead, with no board or SoC list: - shared: /chosen/memory-map RTBuddySeg (the RTKit buddy segment that holds the DCP __OS_LOG buffers and the AOP segment) lies inside SEPFW; - warm: /arm-io/sep sepfw-booted is set. Without both, sep-firmware stays whole, and a line says why. With both, the range is split around every no-map coprocessor reservation in it (DCP OS log or asc-mem), as main did on the J614s, so an AOP segment alone is split out too. A reservation with an unreadable reg on a shared range now refuses the split, including a DCP OS log, which was skipped before it was counted. Live 27.x ADTs (J413, J473, J615, J616s, J713) have sepfw-booted = 1 and RTBuddySeg ending at or below SEPFW (J413: none), so the split does not run on them; the 26.6.2 J616c tree has RTBuddySeg running into SEPFW. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
After the merge of main, two host tests fail at 2390f45 (both pass on main): - test_sep_t8152_gate counts every "dt_set_sep()" in kboot.c as a call that must be fatal; the split's comments named it that way. They now say dt_set_sep. - test_t8132_isp_absent builds dt_set_isp() from its source, which now calls dt_isp_node(); the test takes that function along. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
There was a problem hiding this comment.
Verdict: HOLD at 8d358c4
Blockers: The J616s one-shot exercises the camera handoff and the unchanged-SEP path. The new warm-SEP split still needs a hardware row on either J616s or J614s under overlapping firmware, or a maintainer disposition that explicitly covers that path. Earlier human change requests still need reconciliation.
Checked: Both replacement macOS Pytest jobs passed. Verified the exact-head J616s report records camera streaming, SEP and Touch ID binding, zero reserved-memory overlaps and a clean return. The live ADT did not meet the split predicate, so the hardware evidence covers the refusal-to-split path. Local fixtures cover the positive split and malformed reservations. The author reports Stage 1 and ESP Stage 2 headroom matching main under GCC and Fedora Clang.
The proposed J614s gap explicitly covers the positive split. J614s already uses the split on main, and an unexpected reservation on the changed path can stop the handoff. Please retain an exact-head positive hardware row or have the boot maintainer explicitly disposition that failure mode before landing.
|
@scottjones, you're still quiet, so I pushed three commits on top of
I've updated the description to match. On the open findings:
Tested: J616s one-shot ESP Stage 2 at
@DjDeveloperr: items 1, 2 and 4 were already fixed, and 3 and 5 are now answered at |
|
Boot disposition for the J614s row (answers the App hold at The concern is that the changed path can stop the handoff on an unexpected reservation, and that we have no J614s to show it doesn't. On the J614s, this head can refuse in no case where main doesn't already refuse. Main's
In its loop, main also refuses any reservation in the tree with a malformed reg, and any reservation inside the range that is not a no-map coprocessor region. At The one behaviour that can differ on a J614s goes the safe way. If its ADT did not show the buddy segment inside SEPFW while tree nodes overlapped sep-firmware, the split would not run, and the kernel would print its non-fatal overlap warning (as every Mac other than the J614s does on main). The boot would not stop. On other Macs the split is new, and it runs only where their own ADT shows the shared, booted range. There it fails closed, as @DjDeveloperr asked at Disposition: the J614s positive row is tracked as a |
There was a problem hiding this comment.
Verdict: MERGE at 8d358c4
Blockers: None from this review following the boot-maintainer disposition. Reconcile earlier human change requests before landing.
Checked: All 18 hosted checks passed. The J616s one-shot covers camera and unchanged SEP reservations. The boot maintainer documented the J614s failure-mode comparison and accepted the positive split as a known gap. Linux main's shared J614/J616 tree supplies the SEP alias to the same node the old path used. Keep the positive J614s split in the follow-up issue.
|
Merging at |
|
Known-gap issue: #620 |
|
Thanks @scottjones, merged. The SEP split is now gated by the ADT (RTBuddySeg inside SEPFW, and sepfw-booted). The J614s row is tracked in the known-gap issue linked above. |
The 16" M4 Pro (J616s) shares the J614s ISP description (t604x-j614-j616.dtsi), but only the J614s got the handoff that fills it from this boot's ADT. A J616s booted with the tree's static segment addresses, which came from one 26.6.2 boot. iBoot moves the segments: on our J616s the ISP text was at 0x10000c34000, not 0x10000c44000. The kernel mapped the wrong memory, the ISP never came up ("never received first magic number from firmware"), and the static ranges overlapped iBoot's other reservations.
On some boots iBoot also puts the RTKit buddy segment (the DCP
__OS_LOGbuffers and the AOP segment) inside the SEP firmware range, so the kernel warns that sep-firmware and the dcp-oslog nodes overlap. Main splits the SEP reservation around them on the J614s only.Both handoffs now follow what the tree and the ADT show, not a board list:
The split is gated on two ADT facts, not on the board: the RTKit buddy segment lies inside the SEP firmware range (shared), and iBoot has already booted the SEP from it (warm). Without both, the SEP may still need its firmware there, so the reservation stays whole. On the J614s this matches main when the ADT shows the overlap, including an AOP segment on its own.
The SEP node is found through the sep alias, as
dt_set_sep()does, not at the T6040 path. On the T8132 trees (J604, J623, J624, J713, J715), which also have the ISP placeholders and no alias, the ISP is disabled in the tree, so the fill does nothing there. The only change is thatapple,firmware-versionandapple,firmware-compatnow go on that disabled node.Tested: J616s one-shot ESP Stage 2 at 8d358c4: ISP filled from the ADT, apple-isp bound, 1080p NV12 stream (60 frames), SEP left whole per the ADT (RTBuddySeg below SEPFW on this boot), apple_sep up, Touch ID sensor bound, 0 reserved-memory overlaps, Enforcing, 0 AVCs, 0 failed units; default restored. Host: full pytest 1660 passed; clang/gcc 2.42/fedora Stage 1 and ESP Stage 2 size checks pass. J614s row not run (no J614s in our lab).
Risk: two-way door. The ISP fill affects the J616s. The SEP split now runs only where the live ADT shows the buddy segment inside a booted SEP's firmware range, on any SoC; there, a tree the split does not expect fails the handoff. On every Mac with a SEP reservation, a sep-firmware node the code cannot read at all fails the handoff; dt_set_sep() always writes it in the readable shape.
Evidence
test_sep_dcp_log_split.pyruns the split and its call inkboot_prepare_dt()on trees built in the loader's shape, with the ADT facts it reads. It covers the J616s layout of a 26.6.2 boot (one retained range after three OS logs and the AOP segment), several OS logs, an AOP segment alone, a SEP node found through its alias, and the ADT cases that keep the range whole (RTBuddySeg ending at SEPFW as on a 27.0 J616s boot, no RTBuddySeg, the all-ones value, SEP not booted). Trees with nothing to do come out byte-identical. Refused trees fail the handoff and are unchanged.sepfw-booted = 1and RTBuddySeg at or below SEPFW (J413: none), so the split does not run on them. The 26.6.2 J616c tree has RTBuddySeg running into SEPFW.test_t6041_isp_handoff.pycovers the J616s tree shape without the alias. It is filled, a refused fill disables that ISP, and a second node taking the text placeholder leaves it untouched.Merge Danger
Door: two-way.
Blast Radius: M4 Pro boot (J614s, J616s), plus any Mac whose ADT puts the RTKit buddy segment inside a booted SEP's firmware range.
A wrong address on a J616s would cost the camera on that board until reverted. A refused SEP split fails the handoff instead of booting with the overlap.