Repository navigation
kboot: T6050: take the camera's sensor type from the ADT on every board - #362
Conversation
dt_set_t6050_isp() handed the camera over only for four boards, each pinned to one OS firmware and one sensor type (J716c 0x75 and J714s 0x74 on 27.0, K114c 0xb9 on 27.3 beta, K116s 0xbc on 27.2). A sibling with the same ISP (J714c, J716s, K114s, K116c) or a listed board on another release was refused, although the value written is the ADT isp0 sensor-type, which the OS passes to the firmware as its platform id, as macOS does. Drop the table. Any T6050 board whose device tree has the isp node gets the ADT sensor-type (it must be present and nonzero). The firmware is still checked where it matters: the ISP segments must have the layout the OS's driver expects (sizes, IOVAs and remaps, as before), and the release must be 27.0 or later; the driver selects its interface by apple,firmware-version. The table came from bbfdf09 by Jens Axboe; the handoff itself is unchanged. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Early note on this draft (no full review yet):
Assisted-by: LLM (Claude:Opus 5.5) |
|
Still needed: drop the 27.0 release floor, or say in the commit message why the sensor-type and segment-layout checks cannot cover older releases. Then camera rows: J714s on 27.0 and K116s on 27.2 as regression, and J716c and K114c on 27.2 logging their platform id and delivering a frame; the branch also needs main merged in (the only conflict is in AGENTS.md, CLAUDE.md, GEMINI.md and .github/copilot-instructions.md; keep main's copies). |
|
Tested the equivalent on a J716s on 27.2 (26B123): a table row with the ADT's sensor type (0x76) hands the camera over and it streams, light on. With this PR and linux #2275 the J716s should need no row of its own. Seen on one J716s (omarchy-m5 v272-17 kernel, Aura 22b7175 + omarchy-m5's patches). Report: betizzel/omarchy-m5#28. |
Revert the automated agent-policy bot commit 4ec8631 that deleted assistant instruction files on this PR branch. The policy workflow has since been updated (aura#475) to stop pushing to PR branches. Signed-off-by: Dj <43033058+DjDeveloperr@users.noreply.github.com>
|
K114s (Mac17,13) on 27.2 (26B8125): the ADT What was run, on one K114s: a table row Not run: the K114s with this PR's head instead of the row. I can run that on the same machine once the head is settled, if that row is wanted. |
Conflict in dt_set_t6050_isp(): main added the K114c row (any firmware version) and changed the version check. Resolved to this branch's change: no board table, the ADT sensor type on every T6050 board. A release newer than the loader knows (V_UNKNOWN) is still taken on the segment layout check alone, as the K114c row allowed.
|
K114s (T6050) row, 2026-11-29. Boot: aura-try one-shot Stage 2 = aura b17 e2a8cf9 + aura#362, DTB = the v4 K114s DTB + #2278 media and #2275 ISP nodes (plus K114S-LADDER's #2281/#3524 nodes on the same boot), kernel 7.3.0-k114sstack3 (main 68253d52 + K114s lab PRs). Health on that boot: 0 SErrors, 0 DART faults, 0 crashes, 0 DCP crashes, 0 failed units, Enforcing. The Mac is back on its saved default. Camera hand-off on the K114s, which has no board-table entry: built from e222677 (same tree as the PR head). The ISP takes the sensor type from the ADT: sensor 0x958, setfile isp_2224_01XX.dat. NV12 1080p30 streams (300 and 600 frames). Everything else on the boot is healthy, see above. This covers the K114s case that aura#515 added a board-table row for. |
|
Ready for review. Hardware: the K114s row above (no board-table entry; the sensor type comes from the ADT). CI: fedora/gcc/nix fail with |
There was a problem hiding this comment.
Verdict: MERGE at e222677b
Blockers: none (land alongside/after #551 Stage 1 room fix so gcc/fedora/nix CI pass — this PR shrinks Stage 1 by removing t6050_isp_boards[] — and wait for queued pr-text)
Checked: no Apple material, no AI attribution, human DCO Signed-off-by, removes the 4-board t6050_isp_boards[] table (+10/-28 in src/kboot.c) in favor of reading ADT isp0 sensor-type (!platform rejected) on any T6050 board whose DT describes /soc/isp, preserves all ISP segment-range, IOVA, size, and remap validation plus os_firmware.version >= V27_0 (or V_UNKNOWN), leaves boards without a DT ISP node untouched, clang-macos/build/alarm CI and 780 host tests pass (gcc/fedora/nix fail only on pre-existing main 99b6dd13 Stage 1 room #454), exact-head e222677b K114s hardware row PASS (no board-table entry; ADT sensor-type handed off, sensor 0x958, 300 & 600 NV12 1080p30 frames, 0 faults/crashes/failed units, Enforcing), branch is MERGEABLE against main.
Evidence
- Inspected full diff (
+10/-28insrc/kboot.c): deletest6050_isp_boards[], checksos_firmware.version != V_UNKNOWN && os_firmware.version < V27_0, requires non-zeroADT_GETPROP(adt, isp, "sensor-type", &platform), and preservest6050_isp_segments_valid()and exact segment IOVA/size/remap checks. - Exact-head K114s row (
e222677b, 2026-11-29): camera handoff succeeded without any board-table entry (sensor 0x958,isp_2224_01XX.dat, 300 + 600 NV12 1080p30 frames, 0 SErrors/DART faults/crashes/failed units). - PR opened 2026-11-19 (prior to
pr-textenforcement cutoff).
|
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 code-owner ping: the review App approved this at |
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
|
Merging at |
Problem
dt_set_t6050_isp()(src/kboot.c:9398-9411) handed the camera over only for four boards, each pinned to one OS firmware and one sensor type: J716c 0x75 and J714s 0x74 on 27.0, K114c 0xb9 on 27.3 beta, K116s 0xbc on 27.2. That refused J714c, J716s, K114s and K116c, which have the same ISP. It also refused a listed board on any other release. Yet the value written is just the ADTisp0sensor-type, which the OS passes to the ISP firmware as its platform id, as macOS does.Change
ispnode, the handoff uses the ADTisp0sensor-type(it must be present and nonzero).apple,firmware-version.The table came from bbfdf09 (Jens Axboe); the handoff itself is unchanged.
Testing
python -m pytest tests): 780 passed, 26 skipped.Still to run
FDT: T6050 ISP: ... platform 0x74(J714s) orplatform 0xbc(K116s). The camera opens in Linux as before.platform 0x75, then a camera frame.platform 0xb9, then a camera frame.Per-board behaviour