Skip to content

arm64: dts: apple: t6050-k114c: describe the camera (restacked on #2561) - #2566

Closed
joshuaswarren wants to merge 0 commit into
aurora-silicon:mainfrom
joshuaswarren:d5/k114c-isp-2561
Closed

joshuaswarren wants to merge 0 commit into
aurora-silicon:mainfrom
joshuaswarren:d5/k114c-isp-2561

Conversation

@joshuaswarren

@joshuaswarren joshuaswarren commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

What

Restacked replacement for #1756 on top of #2561 (ed1c52288035), carrying the K114c camera device-tree commits:

  • arm64: dts: apple: t6050-k114c: describe the camera: describes the K114c ISP, its three DARTs and power domains, and camera-indicator wiring, factoring shared nodes into t6050-isp.dtsi.
  • arm64: dts: apple: leave T6050 camera reservations to the loader: adds loader aliases (isp, isp-dart0..2) and keeps nodes disabled until loader handoff with no hard-coded iBoot addresses.

Closes #1756 when merged; stacks on #2561.

Tested

Risk

two-way · T6050 K114c (and shared t6050-isp.dtsi refactor with J716c); camera nodes stay disabled until loader handoff.

Not yet

A live K114c preset-0 camera stream through the loader handoff path has not been run on hardware yet. Host tests were not run locally before the prior push; CI runs them.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Blockers: 2.

  1. Commit 4d48a19 ("t6050-k114c: describe the camera") on its own still adds the static iBoot firmware reservations: t6050-k114c-isp.dtsi in that commit has isp-firmware-text@10001228000 / isp-firmware-data@10002930000 with status = "okay" and no isp alias. The next commit, d019120, removes them again. A bisect that stops on 4d48a19 on a K114c whose iBoot has moved those segments reserves the wrong range and hands the real firmware pages to the allocator. That is the failure the loader-alias rework exists to prevent. Squash the two commits into one, and rewrite the message to describe the final tree (loader aliases, disabled until handoff, shared t6050-isp.dtsi). The message of 4d48a19 still describes the static placement.
  2. No run of this tree on a K114c. The only stream on record is from a kernel with the old static node, sensor domain last. The loader path this PR now depends on (the loader reserves the segments through the isp/isp-dart* aliases and flips the four nodes to okay) and the new domain order have not run. I compiled both DTBs before and after d019120: the J716c output is byte-identical, so the J716c is not at risk. The K114c gains only the four aliases, as stated.

Also: #2561 has merged as different SHAs, so this branch still lists its 17 commits. Rebase onto integration/aurora so the PR is the K114c change alone.

HW row: K114c, integration/aurora head + this (squashed), current aura loader, default command line: the loader reserves the ISP segments and enables isp0 and the three DARTs (check /proc/device-tree status and reserved-memory), apple-isp binds, /dev/video0 streams NV12 1920x1080 for 3 start/stop cycles of at least 100 frames with no DART fault and no firmware timeout. Repeat after one warm reboot. 0 AVC, 0 failed units, no new kernel errors.
Nit: the PR body ends with "Generated with Devin"; replace it with Assisted-by: LLM (<Vendor>:<Model>).

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown
Contributor

Status check against integration/aurora 4a17f73: #2561 is merged and this branch's base commit is on the tip, so the PR is now just its two K114c commits and they merge cleanly; the tip has no t6050-isp.dtsi or K114c camera description yet, so it is still needed. @joshuaswarren, the two points from the 2026-11-21 review are still open on d019120: please squash the two commits into one whose message describes the final tree (the first one alone still adds the static firmware reservations), and add a K114c run of the loader path (ISP segments reserved through the aliases, isp0 and the three DARTs enabled, three start/stop stream cycles, once more after a warm reboot).

@joshuaswarren joshuaswarren changed the title [Joshua's agent] arm64: dts: apple: t6050-k114c: describe the camera (restacked on #2561) arm64: dts: apple: t6050-k114c: describe the camera (restacked on #2561) Nov 25, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

@joshuaswarren checking open drafts today. To come out of draft, this still needs:

  • A test run at the current head on a Mac with the hardware it touches, then mark it ready for review.

If it's no longer needed, say so here and we'll close it. Otherwise it stays open as a draft until these are done.

joshuaswarren added a commit to joshuaswarren/linux that referenced this pull request Nov 28, 2026
@joshuaswarren
joshuaswarren marked this pull request as ready for review November 28, 2026 11:42
@joshuaswarren
joshuaswarren requested review from a team as code owners November 28, 2026 11:42
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-28T11:42:12.922950Z
We couldn’t complete this review. Comment @codex review to try again.
3f65206 Draft marked ready
🔒 Security Review ❌ Failed 2026-11-28T11:42:19.260442Z
We couldn’t complete this review. Comment @codex security review to try again.
3f65206 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: FINISH, then merge at 3f65206f

Blockers:

  1. Queued CI checks (dt-checks, host-tests, pr-text, readiness) are still pending; wait for green CI.
  2. Missing exact-head 3f65206f K114c hardware boot row confirming t6050-k114c.dtb boots cleanly with camera nodes staying disabled until loader reservation. Note potential merge coordination with open #2275, which also introduces arch/arm64/boot/dts/apple/t6050-isp.dtsi.

Checked:

  • 3f65206f cleanly merges main over 4d48a198 / d0191208 (shared t6050-isp.dtsi + loader aliases isp, isp-dart0..2, no hard-coded iBoot addresses); MERGEABLE on main, no Apple material, tool attribution, or private serials.
Evidence
  • Head: 3f65206f (base: main, mergeable: MERGEABLE, +160/-133 across 4 files).

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) merge-conflict Conflicts with the base branch (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Merge readiness at 3f65206f: not ready yet

Check Detail
CI at head ok 5 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes no requested by erikwb
Hardware row at head no no line with the head SHA 3f65206f, a Mac and a result in the PR body or a comment
Conflicts no merge conflicts with main: merge it in (no force push)
PR text ok Risk: two-way · T6050 K114c (and shared t6050-isp.dtsi refactor with J716c); camera nodes stay disabled until loader handoff.

Areas: area:bringup

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

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

Verdict: FINISH, then merge at 3f65206f

Blockers:

  1. arch/arm64/boot/dts/apple/t6050-k114c-isp.dtsi:15 in 4d48a198: the intermediate commit enables the camera with fixed reserved-memory addresses. On a K114c where the loaded segments move, that commit reserves the wrong pages and leaves the actual segments available to Linux. Carry the final loader-handoff change as a clean commit on main so bisectable history contains only the safe setup.
  2. arch/arm64/boot/dts/apple/t6050-isp.dtsi:128: GitHub reports conflicts with main. #2275 already provides the shared file, and #3329 removed the always-on ISP system vote that this version retains. Keep main’s shared description and add only the K114c include and board overrides on top. Restoring the old vote would undo the J716c idle-power fix.
  3. Record a K114c run on the resulting head. Confirm the loader reserves the current segments and enables the ISP and all three DARTs. Run three 1080p NV12 start/stop cycles of at least 100 frames each and repeat after a warm reboot, with no DART faults, firmware timeouts or new kernel errors.

Checked: The T6050 ISP, DART and PMGR bindings cover the compatibles. The ISP windows and stream links match the shared layout. The J716c DTB is byte-identical to its base. DT and host checks passed at this head. The posted stream run used the earlier static setup.

Evidence
  • Compiled K114c and J716c at 844781f1 and 3f65206f. The K114c ISP and its DARTs are disabled in the source DTB with aliases for loader handoff. The named five ISP windows, the three DART windows and streams 0 and 12 are consistent with the T6050 binding. The loader uses exact path lookup for these aliases.
  • #2561 and #2275 have landed. Main already owns the common camera description, while the K114c-specific camera include is still missing. Preserve the subsequent ISP idle-power change and check the J716c DTB again against the final base. Shared camera description · ISP idle power

@github-actions github-actions Bot added changes-requested A reviewer requested changes (bot) and removed ci-failing A check failed at the PR head (bot) labels Nov 29, 2026
joshuaswarren added a commit to joshuaswarren/linux that referenced this pull request Nov 30, 2026
Main already owns the shared T6050 camera description (ISP, its three
DARTs and power states) with the loader reserving the firmware segments
and enabling isp0, so the K114c only needs its own include and the
per-board sensor overrides. The ISP and its DARTs stay disabled in the
source DTB with aliases for the loader handoff, and no static
reserved-memory region is carried, so bisectable history contains only
the safe setup.

Reviewed-as: erikwb asked to keep main's shared description and add only
the K114c include and board overrides, without restoring the always-on
ISP system vote that aurora-silicon#3329 removed (aurora-silicon#2566).
@joshuaswarren

Copy link
Copy Markdown
Contributor Author

Reworked per the review blockers; the branch is now one clean commit on current main: 9f39a8f (branch d5/k114c-isp-2561).

What changed against the blockers

  1. Bisectable history: the branch is main + 9f39a8fd6d3e and nothing else. The intermediate commit that enabled the camera with fixed reserved-memory addresses is gone from history; the tree carries only the safe setup (isp0 and its three DARTs disabled in the source DTB with aliases for the loader handoff, no static reserved-memory region).
  2. Conflicts with main: the branch no longer touches t6050-isp.dtsi and no longer adds t6050-j716c-isp.dtsi. It adds only t6050-k114c-isp.dtsi (the K114c include with the board overrides) and the one include line in t6050-k114c.dts. The always-on ISP system vote is not restored; main's post-arm64: dts: apple: t6050: allow idle ps_isp_sys domain to power off #3329 shared description stands.

DTB evidence (built at this head, cross toolchain, make apple/t6050-k114c.dtb)

  • isp@580000000: the five ISP windows (coproc/mbox/gpio/mbox2/wdt) and the three DART windows are present from main's shared description; status = "disabled" on isp0 and all three ISP DARTs; the aliases (isp, isp-dart0..2) are carried for the loader handoff.
  • The K114c overrides are in place: apple,dart-vm-size = <0xde600000>, apple,platform-id = <0xb9>, apple,temporal-filter = <1>, apple,cam-connections-scheme = <0x10>, sensor preset config-index 6 (3040x2880 to 1920x1080, crop 320 765 2400 1350).
  • ps_isp_sys is okay with apple,no-auto-pm and no apple,always-on — the arm64: dts: apple: t6050: allow idle ps_isp_sys domain to power off #3329 idle-power fix stands.
  • t6050-j716c.dtb built on this branch is byte-identical to the same board built from pristine main (clean rebuild compared with cmp), so the J716c board is untouched.

Blocker 3 (the K114c run): the M5 lane is being asked to run the camera validation on this exact head — loader reserves the current segments and enables the ISP and all three DARTs, three 1080p NV12 start/stop cycles of at least 100 frames each, repeated after a warm reboot, no DART faults, firmware timeouts or new kernel errors. I will post the run when it lands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) changes-requested A reviewer requested changes (bot) door:two-way Revertible or not, from Merge risk (bot) merge-conflict Conflicts with the base branch (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants