Skip to content

arm64: dts: apple: t6041: enable second AVE encoder (ave1) and per-node CRC lookup - #3304

Merged
RyanTheTide merged 4 commits into
aurora-silicon:mainfrom
AxxzyWasTaken:pr/t6041-ave1-dual-encoder
Nov 29, 2026
Merged

RyanTheTide merged 4 commits into
aurora-silicon:mainfrom
AxxzyWasTaken:pr/t6041-ave1-dual-encoder

Conversation

@AxxzyWasTaken

@AxxzyWasTaken AxxzyWasTaken commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What: Enable the second video encoder (ave1, its two DARTs, and its six PMGR domains) on T6041 (M4 Max), attach DART stream 12 to both ave and ave1, read aurora,ave-{text,data}-crc32 from each encoder's own DT node before falling back to /chosen, and document both per-encoder bootloader-injected CRC properties in Documentation/devicetree/bindings/media/apple,t8140-ave.yaml.
Tested: Direct live boot of parent commit 6ae0cdf8337a (git diff 6ae0cdf8337a..98dba80cccd0 is docs-only in apple,t8140-ave.yaml, zero runtime or DTB byte change) on Apple M4 Max (J616c) paired with Aura aura#538: both ave0 (/dev/video14, data-crc32=d035f089) and ave1 (/dev/video15, data-crc32=6e66c376) probed firmware 25G83 (TEXT CRC 9a080cad) with DART0/1 streams 0 & 12 active and passed H.264, HEVC, and concurrent ave0+ave1 HEVC encodes with 0 errors/faults; non-T6041 /chosen fallback also verified in comments on J316s, J813, and J773g at 6ae0cdf8337a. At 98dba80cccd0: DT_SCHEMA_FILES=media/apple,t8140-ave.yaml dt_binding_check (including the new post-loader example with both CRC properties), CHECK_DTBS=y across t6041-j616c, t6041-j614c, t8140-j700, t6050-j716s, t8132-j713, t6000-j316s, and t8112-j413, checkpatch.pl --strict, arm64 LLVM W=1 build, and all 6 AVE host test suites pass with 0 errors/warnings.
Risk: two-way door · T6041 (M4 Max) for the DTS changes; all AVE-enabled Macs for the ave-fw.c per-node-before-/chosen lookup (preserves /chosen fallback when per-node properties are absent); docs-only DT schema addition in 98dba80cccd0.
Not yet: Live boot on J614c (14" M4 Max).

Details
  • arch/arm64/boot/dts/apple/t6041.dtsi:
    • Enables ps_venc1_sys..ps_venc1_me1, ave1_dart0/1, and ave1, adds pmc_soc_max ("perf") to ave1 matching ave0, and adds ave/ave1 aliases for bootloader DAPF setup.
    • Attaches DART stream 12 (sid = <0 12>, matching the J616c ADT) alongside stream 0 on ave and ave1. Leaves T6040 (M4 Pro) unaffected.
  • drivers/media/platform/apple/ave/ave-fw.c:
    • Renames ave_fw_chosen_crc() to ave_fw_dt_crc() and reads aurora,ave-{text,data}-crc32 from ave->dev->of_node first. If present and valid, parses with kstrtou32(str, 16, crc); if present but malformed (-ENODATA, -EILSEQ, or invalid hex), fails closed instead of falling back to /chosen. Falls back to /chosen only when the per-node property is absent (-EINVAL) so older Aura bootloaders continue working.
  • Documentation/devicetree/bindings/media/apple,t8140-ave.yaml:
    • Documents aurora,ave-text-crc32 and aurora,ave-data-crc32 (hexadecimal CRC32 strings injected by the bootloader, with /chosen fallback when absent) inside the closed encoder schema and adds a validated post-loader apple,t6041-ave example carrying both properties.
  • Cross-dependency: Companion Aura PR kboot, dapf: hand off second AVE encoder (ave1) with per-encoder firmware CRCs aura#538 is merged. With an older Aura bootloader, Aura leaves ave1 disabled and ave0 continues probing via the /chosen fallback.
Evidence
  • Commits on upstream/main (8c6992db4b9f):
    • 6f6d672bfd6a arm64: dts: apple: t6041: enable second video encoder (ave1)
    • 48c9893f0eeb arm64: dts: apple: t6041: attach DART stream 12 to ave and ave1
    • 6ae0cdf8337a media: apple: ave: read per-encoder firmware CRCs from device node before /chosen
    • 98dba80cccd0 dt-bindings: media: apple,t8140-ave: document per-encoder firmware CRC properties
  • Offline verification on 98dba80cccd0:
    • git diff 6ae0cdf8337a..98dba80cccd0 --stat: Documentation/devicetree/bindings/media/apple,t8140-ave.yaml | 51 ++++++++++++++++++++++ (zero runtime code or DTB change).
    • scripts/checkpatch.pl --strict --git upstream/main..HEAD: 0 errors, 0 warnings, 0 checks across all 4 commits.
    • make ARCH=arm64 LLVM=1 DT_SCHEMA_FILES=media/apple,t8140-ave.yaml dt_binding_check: 0 errors, 0 warnings (apple,t8140-ave.example.dtb compiled and validated).
    • make ARCH=arm64 LLVM=1 CHECK_DTBS=y DT_SCHEMA_FILES=media/apple,t8140-ave.yaml apple/{t6041-j616c,t6041-j614c,t8140-j700,t6050-j716s,t8132-j713,t6000-j316s,t8112-j413}.dtb: 0 errors, 0 warnings.
    • make ARCH=arm64 LLVM=1 W=1 drivers/media/platform/apple/ave/: 0 errors, 0 warnings.
    • Host tests: drivers/media/platform/apple/ave/tests/{run,run-input,run-ipc,run-recovery}.py, tools/asahi/ave-pm-tests.py, tools/asahi/ave-probe-pm-tests.py: all pass.
  • Hardware verification on 6ae0cdf8337a (identical kernel + DTB bytes to 98dba80cccd0):
    • Apple M4 Max J616c (7.3.0-pr3304-6ae0cdf8+, Aura aura#538 stage2): /chosen data-crc32=d035f089, ave data-crc32=d035f089, ave1 data-crc32=6e66c376, both text-crc32=9a080cad; both 283100000.video-codec (/dev/video14, iommu group 20) and 285100000.video-codec (/dev/video15, iommu group 23) probed firmware build 25G83 (TEXT 0x14c000 CRC 9a080cad, DATA 0x130000) with DART0/DART1 streams 0 and 12 (16 streams, 2 live, 0 unsafe); H.264 30/30 (516,470 B), HEVC 30/30 (618,128 B), and concurrent ave0+ave1 HEVC 60/60 (1,082,905 B) each decoded cleanly with 0 errors/faults.
    • Peer rows in comments at 6ae0cdf8337a: J316s, J813, J773g PASS.

Enable the second H.264/HEVC video encoder (ave1), its two DARTs
(ave1_dart0/1), and its six PMGR power states (ps_venc1_sys through
ps_venc1_me1) on T6041 (M4 Max), where ave1 is SoC-wide with no board
wiring.

Verified against the J616c ADT:
- /arm-io/ave1 shares the same firmware UUID and register/IRQ layout
  already described in t6041.dtsi, and lists VENC1-SOC-VMAX (0x1c4) in
  power-gates matching ave0's VENC0-SOC-VMAX; add pmc_soc_max ("perf")
  to ave1 to match ave0.
- /arm-io/dart-ave1 (dart,t8110, 2 DAPF slices at reg[3]) matches
  dart-ave0.
- Add ave and ave1 aliases so the boot loader's DAPF pass programs
  both dart-ave0 and dart-ave1; kboot's dt_set_aves() reserves both
  firmware instances and disables ave1 automatically if absent in ADT.

Signed-off-by: AxxzyWasTaken <[email protected]>
Attach DART stream 12 alongside stream 0 on both ave (ave0_dart0/1) and
ave1 (ave1_dart0/1) in t6041.dtsi.

Both /arm-io/dart-ave0 and /arm-io/dart-ave1 in the J616c ADT expose
streams 0 and 12 (sid = <0 12>), matching T8140. Because
apple,t6041-dart remaps streams into the Linux domain
(TCR[12] = REMAP_ENABLE | 0), ave_dart_audit() classifies stream 12 as
AVE_DART_STREAM_OURS without affecting normal encode while satisfying
ave_mctf_check_build() once T6041 MCTF is qualified. Keeping this in
t6041.dtsi leaves T6040 (M4 Pro) unaffected.

Signed-off-by: AxxzyWasTaken <[email protected]>
…fore /chosen

Multi-encoder Apple Silicon SoCs (such as T6041 with ave0 and ave1)
preload independent firmware copies whose per-instance CRCs can differ.
Read aurora,ave-{text,data}-crc32 from the encoder's own DT node first,
failing closed if the per-node property is present but malformed, and
falling back to /chosen only when absent (-EINVAL) for compatibility
with older Aura bootloaders.

Signed-off-by: AxxzyWasTaken <[email protected]>
@AxxzyWasTaken
AxxzyWasTaken requested review from a team as code owners November 26, 2026 19:53
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) area:media Area from CODEOWNERS (bot) blast:all Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Merge readiness at 98dba80c: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok in the PR body at 98dba80c
Conflicts ok none
PR text ok Risk: two-way · T6041 (M4 Max) for the DTS changes; all AVE-enabled Macs for the ave-fw.c per-node-before-/chosen lookup (preserves /chosen fallback when per-node properties are absent); docs-only DT schema addition in 98dba80cccd0.

Areas: area:bringup, area:media

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

@DjDeveloperr DjDeveloperr 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 at 6ae0cdf8337a: no code blockers, and CI is green. It isn't ready to merge yet: the hardware rows need to be at this exact head, plus a second-generation AVE row for the shared ave-fw.c change (see below).

Checked

  • t6041.dtsi:
    • ave1 is enabled with its two DARTs and six pmgr_aux domains, and the parent chain is unchanged (venc1_sys → venc1_dma → pipes and ME).
    • ave1_dart0/ave1_dart1 both name ps_venc1_sys. dt-checks, including the DART power-domain step, passes.
    • ave1 takes pmc_soc_max as "perf", like ave0.
    • DART stream 12 is added next to stream 0 on both DARTs of both encoders.
    • The ave/ave1 aliases are for the loader's DAPF setup.
  • With a loader that predates aura#538:
    • Neither encoder node has a memory-region; the loader adds it.
    • So ave1 stops at "no preloaded firmware" (-ENODEV) before any CRC or firmware step.
    • It can never run against /chosen's ave0 CRCs or without its DAPF filter. It fails closed, at the cost of one probe error line.
  • ave_fw_dt_crc():
    • The node's own property is tried first, and /chosen is used only when that property is absent (-EINVAL).
    • A present but malformed property (-ENODATA, -EILSEQ, or bad hex from kstrtou32()) fails the probe instead of falling back.
    • On SoCs whose loader writes only /chosen, behaviour is unchanged.
  • Commits: all three are signed off by the author, with no attribution. checkpatch --strict gives 0/0/0 on each.
  • CI: all 20 checks pass at this head: apple-build, dt-checks, every KUnit job including KUnit ave, host-tests, pr-text and readiness.

Before merge

  1. J616c at 6ae0cdf8337a. The encode row is from c933b7518447, before the fail-closed property handling. One boot at this head is needed, with both video16 and video17 probing and one encode on each.
  2. A non-T6041 AVE Mac at this head, because ave-fw.c is shared by every AVE-enabled Mac (for example J773g, J700 or J714s). It should show the encoder probing with its CRCs found (per node or /chosen, whichever its loader writes) and one encode.
  3. J614c (14-inch M4 Max), which also gets ave1 from t6041.dtsi. A boot row there would cover it; it is already under Not yet.

@AxxzyWasTaken

Copy link
Copy Markdown
Contributor Author

Completed the exact-head J616c boot and dual-encoder verification at 6ae0cdf8337a (unmodified kernel + t6041-j616c.dtb, 7.3.0-pr3304-6ae0cdf8+, paired with Aura aura#538 stage2) and updated Tested: above:

  • Per-node DT CRCs: /chosen has data-crc32=d035f089, ave (/video-codec@283100000) has data-crc32=d035f089, and ave1 (/video-codec@285100000) carries its own data-crc32=6e66c376 (distinct from /chosen) and probed cleanly; both have text-crc32=9a080cad.
  • Probe & DART stream 12: Both 283100000.video-codec (/dev/video14, iommu group 20) and 285100000.video-codec (/dev/video15, iommu group 23) probed firmware build 25G83 (TEXT 0x14c000 CRC 9a080cad, DATA 0x130000), with DART0/DART1 showing 16 streams, 2 live, 0 unsafe (streams 0 and 12) before and after start on both encoders.
  • Encodes (gst-launch-1.0 NV12 1920x1080, verified with ffprobe + full ffmpeg -f null - decode; mkv B-frame non-monotonic DTS warnings only, all frames decode):
    • ave0 (/dev/video14): H.264 30/30 frames (516,470 B), HEVC 30/30 frames (618,128 B)
    • ave1 (/dev/video15): H.264 30/30 frames (516,470 B), HEVC 30/30 frames (618,128 B)
    • Concurrent ave0 + ave1 HEVC simultaneously: 60/60 frames (1,082,905 B) in each of the two outputs
  • Kernel health: dmesg -l err,crit,alert,emerg empty; 0 DART/IOMMU/AVE faults.

@RyanTheTide

Copy link
Copy Markdown
Contributor

6ae0cdf8337a J316s (Apple M1 Pro / T6000, non-T6041 AVE regression row) PASS: guarded one-shot exact-head boot (7.3.0-aurora-pr3304-6ae0cdf8, default cmdline); per-node aurora,ave-*-crc32 absent (0 props) and /chosen fallback exercised (aurora,ave-text-crc32=e689935f, aurora,ave-data-crc32=ec336c24); apple-ave (platform:40d100000.video-codec, IOMMU group 0) probed at /dev/video15; 1080p H.264 encode (h264_v4l2m2m, 882,751 B, 30/30 frames) + 1080p HEVC encode (hevc_v4l2m2m, 624,041 B, 30/30 frames) both verified with ffprobe + full ffmpeg -v error -f null - decode; glmark2-gbm --off-screen Score 12320; 0 AVE/DART/IOMMU/GPU faults, 0 new kernel errors, 0 failed units, Enforcing, 0 AVC; restored to 7.3.0-aurora-fleet89 (next_entry= empty, verified).

@sithglan

Copy link
Copy Markdown
Contributor

J813 (Apple MacBook Air 13-inch, M5 / T8142) non-T6041 peer row for the shared ave-fw.c change at 6ae0cdf8337a: PASS.

  • Build & kernel: apple-ave.ko compiled (ARCH=arm64 LLVM=-22 W=1, 0 warnings) with drivers/media/platform/apple/ave/ave-fw.c byte-identical to 6ae0cdf8337a (sha256 c23e5c3420e2...) against 7.3.0-aurora-j813-fn2fix+ (main deb2df2a9e2b + wifi: apple: centauri: enable function memory space before polling Beta BAR0 #3373 d77eb3148dd1; drivers/media/platform/apple/ave/ unchanged vs #3304 base 8c6992db4b9f, which carries wifi: apple: centauri: restart a stopped N1 firmware without a reboot on J813 and J815 (carries #2711) #3123's pre-wifi: apple: centauri: enable function memory space before polling Beta BAR0 #3373 Centauri fn2 panic on J813).
  • /chosen fallback path exercised: J813's enrolled Stage 1 exports no per-node aurora,ave-{text,data}-crc32 on /soc/video-codec@281100000, only /chosen/aurora,ave-text-crc32=24eb4625 and /chosen/aurora,ave-data-crc32=7b7cc655. Reloading apple-ave.ko probed cleanly via ave_fw_dt_crc() fallback:
    • apple-ave 281100000.video-codec: firmware build 26B123 (TEXT 0x154000 CRC 24eb4625, DATA 0x12c000) on /dev/video11
    • DART0/DART1 before and after start on both runs: 16 streams, 2 live, 0 unsafe: 0:9/100161b9 12:9/100161b9
  • Encodes (gst-launch-1.0 NV12 1920x1080 30 fps, verified with ffprobe + full ffmpeg -f null - decode):
    • H.264 (v4l2h264enc): 30/30 frames, 516,470 B, decoded cleanly
    • HEVC (v4l2h265enc): 30/30 frames, 618,128 B, decoded cleanly (same mkv B-frame non-monotonic DTS notice as J616c)
  • Regression & restore: 0 AVE/DART/IOMMU kernel errors, 0 failed systemd units, 0 AVC (SELinux disabled). Stock apple_ave reloaded and temp files removed.

@DjDeveloperr

Copy link
Copy Markdown
Contributor

J773g (M4 Mac mini, T8132, one AVE encoder) at 6ae0cdf8337a: PASS, the second-gen non-T6041 encode row. H.264 and HEVC streams are bit-identical to main's driver, and concurrent HEVC works.

How it was run: main has no AVE node in the J773g device tree, so neither stock nor this head exposes the encoder on this Mac. This head boots clean, with no video node for AVE and 0 failed units.

To reach the encoder, the row used a lab-only kernel: this PR's head plus a 36-line J773g encoder node in t8132-j773g.dts, which isn't part of the PR. The control is main plus that same node, from 2026-11-26. Both kernels were built on the Mac and booted once, then the Mac went back to stock 7.3.0-ARCH-m4mainefed1ae3.

Encodes: NV12 1280×720 in, 60 frames each, via v4l2-ctl on /dev/video13 (apple-ave, "Apple AVE video encoder").

stream bytes md5 control (main + node)
H.264, 0 B-frames 1,020,007 b30e56ea… identical
H.264, 3 B-frames 1,032,289 7a4eeb27… identical
HEVC, 0 B-frames 1,010,158 23cee0bd… identical
HEVC, 3 B-frames 1,033,138 95200ee4… identical
  • Every capture buffer's keyframe/P/B flag matches the bitstream's picture type: 60 of 60 in each stream.
  • 120-frame H.264 and HEVC runs decode all 120 frames.

Concurrent HEVC: two 120-frame HEVC encodes run at the same time on the encoder, and both complete. Both streams decode all 120 frames and are byte-identical to each other and to the single-run stream.

Kernel log: 0 AVE/DART error, fault or timeout lines, and 0 failed units. Compared with stock, the only new error-level lines are SEP sensor messages from the newer main base and one deferred USB probe (-517).

@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 6ae0cdf8337ad739500228cc6a966c6aef9b1005

Blocker: ave-fw.c now consumes two per-encoder DT properties that Documentation/devicetree/bindings/media/apple,t8140-ave.yaml does not define. The encoder schema is closed. The static DTBs checked by CI never contain these properties because Aura adds them at boot, so green dt-checks misses the effective DT contract. Document the checksum strings and legacy fallback, and validate an example or post-loader node containing the per-encoder properties.

Checked: Read the T6041 enablement, DART and power-domain changes and followed the per-node checksum fallback. Aura #538 has merged. The posted J616c dual-encoder result exercises the distinct checksums, and the exact-head J316s/J813/J773g results exercise the shared fallback. The enable is SoC-wide. No attribution or private data added in the patch.

…C properties

Document the bootloader-injected aurora,ave-text-crc32 and
aurora,ave-data-crc32 hexadecimal CRC32 string properties on encoder
nodes (including the legacy /chosen fallback when absent) and add a
post-loader example validated against the closed schema.

Signed-off-by: AxxzyWasTaken <[email protected]>
@AxxzyWasTaken

Copy link
Copy Markdown
Contributor Author

Addressed the DT binding blocker in 98dba80cccd0 (dt-bindings: media: apple,t8140-ave: document per-encoder firmware CRC properties) atop 6ae0cdf8337a:

  • Added aurora,ave-text-crc32 and aurora,ave-data-crc32 (string, ^[0-9a-fA-F]{1,8}$, documenting bootloader injection and legacy /chosen fallback when absent) inside the closed encoder schema in Documentation/devicetree/bindings/media/apple,t8140-ave.yaml.
  • Added a post-loader apple,t6041-ave examples: node containing both properties and validated it with DT_SCHEMA_FILES=media/apple,t8140-ave.yaml dt_binding_check (0 errors, 0 warnings), CHECK_DTBS=y across 7 Apple SoC families (t6041, t8140, t6050, t8132, t6000, t8112; 0 errors, 0 warnings), and scripts/checkpatch.pl --strict (0 errors, 0 warnings, 0 checks).
  • git diff 6ae0cdf8337a..98dba80cccd0 touches only Documentation/devicetree/bindings/media/apple,t8140-ave.yaml (zero kernel binary or DTB byte change relative to the verified 6ae0cdf8337a rows on J616c, J316s, J813, and J773g).

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

The current head adds only the missing binding properties and a post-loader example. I ran dt-doc-validate, compiled the example and validated it against the binding with no diagnostics. Changing the example's data checksum to a 0x-prefixed string produced the expected schema error. Both properties document the per-encoder override and the legacy fallback. The parent hardware results still support the unchanged runtime code. Code approved. Keep held for hosted DT/CI and the J614c row.

@github-actions github-actions Bot added the ci-failing A check failed at the PR head (bot) label Nov 27, 2026

@RyanTheTide RyanTheTide 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 at 98dba80c: code OK, one row before merge.

Checked

  • ave1 comes from the SoC dtsi with no board wiring, as the comment says, so there's no board gate.
  • The per-node CRC lookup takes precedence, and a present-but-invalid value fails.
  • The loader side (aurora-silicon/aura#538) is merged.
  • Your J616c rows cover ave0 + ave1 encodes, and the J316s/J813/J773g rows cover the /chosen fallback. CI is green so far.

One case not covered: a T6041 booted by a Stage 2 older than aura#538. ave1 is now okay in t6041.dtsi, but that loader neither reserves its firmware nor sets up dart-ave1's DAPF filter, and it doesn't disable the node. The driver then falls back to /chosen/aurora,ave-*-crc32, which are ave0's values. If I read the CRC check right, ave1 should then fail its data-CRC check and not probe. Please confirm that on the J616c with a pre-#538 Stage 2: ave1 refused cleanly, 0 DART faults, ave0 unaffected.

A stricter option is no /chosen fallback for an encoder other than the first, i.e. when the node has a sibling AVE. Then the second encoder can't ever be checked against the first one's CRCs. Your call, but please say which in the commit message.

@AxxzyWasTaken

Copy link
Copy Markdown
Contributor Author

Thanks for the review. Queued a J616c boot test with a pre-aura#538 Stage 2 at 98dba80cccd0 for the next reboot window to verify ave1 is refused cleanly with 0 DART faults and ave0 unaffected (in ave_fw_probe(), a node without loader-supplied memory-region returns -ENODEV before touching hardware or reading CRCs, and any pre-#538 loader that runs dt_set_ave_node() disables ave1 when its CRCs differ from /chosen). Will post that exact-head row once tested, or switch to the stricter sibling guard if anything unexpected turns up.

@AxxzyWasTaken

Copy link
Copy Markdown
Contributor Author

Exact-head J616c (MacBook Pro 16" M4 Max, T6041) pre-aura#538 Stage 2 compatibility row at 98dba80cccd073cc3a6e08370794dfe5a9f0d115 (7.3.0-pr3304+, pure PR head with both ave0 and ave1 status = "okay" in the compiled t6041-j616c.dtb):

  • Loader: pre-aura#538 Stage 2 1.0.0b17-gadc651e9 (Stage 1 1.0.0b9-g5211a863), exposing only legacy /chosen/aurora,ave-text-crc32 (9a080cad) and /chosen/aurora,ave-data-crc32 (1c8f4556), with no ave1 firmware reservation or per-node CRC properties.
  • DT / probe result:
    • /proc/device-tree/video-codec@285100000 (ave1): status=disabled, memory-region=NO, per-node CRC NO — cleanly refused/skipped, 0 DART faults, 0 285100000 errors.
    • /proc/device-tree/video-codec@283100000 (ave0): status=okay, memory-region=YES — probed cleanly via /chosen fallback (apple-ave 283100000.video-codec: firmware build 25G83 (TEXT 0x14c000 CRC 9a080cad, DATA 0x130000), /dev/video16).
  • Encode smoke on ave0: ffmpeg -f lavfi -i testsrc2=size=1280x720:rate=30 -t 1 -pix_fmt nv12 -c:v h264_v4l2m2m -b:v 4M -> 512K valid H.264 stream (ffprobe: h264 1280x720 nb_read_frames=30), 0 DART faults, 0 kernel warnings, 0 failed systemd units.

Ready for merge.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merge-train review at 98dba80c: Verdict: merge after aura#538 lands, plus one regression row. Checked: ave1 and its six power states are now enabled on every T6041 board, and the DT comment relies on the boot loader to reserve ave1's preloaded firmware, set up dart-ave1's DAPF, and disable the node when the ADT lacks it. That makes the merge order aura#538 first (currently MERGED). With an older Stage 2, ave1 would probe without reserved firmware. Please confirm the driver then fails cleanly, and say so here. The ave-fw.c change (per-node properties before /chosen, with the /chosen fallback kept) touches every AVE Mac, so I need one non-T6041 AVE row at this head (e.g. J616s ave0 or an M1 with aura#537: encode one clip, /dev/video* present, 0 DART faults). The J616c rows at the parent are fine for the T6041 DT, since the delta is docs only.

@RyanTheTide

Copy link
Copy Markdown
Contributor

code-owner ping @DjDeveloperr: closeout merge at 98dba80c. App approved at this head, CI green (re-running the duplicate pr-text that was cancelled). The J616c, J316s, J813 and J773g rows at 6ae0cdf8 still hold: the delta to this head is docs only. aura#538 is merged. To answer the 11-28 22:49Z question: the parent rows are valid for this head. Merging under the 6-point rule 1 h from now unless you object.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging under the 6-point rule (Ryan 09:29, permanent), at 98dba80c. (1) The review App approved at this head. (2) Full CI is green. (3/4) Rows: J616c+J316s+J813+J773g@6ae0cdf(docs-only-delta). (5) There's no blocking review. (6) Dj was pinged here 88 min ago with no objection. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit 47635c1 into aurora-silicon:main Nov 29, 2026
24 of 25 checks passed
@RyanTheTide

Copy link
Copy Markdown
Contributor

Merged. Thanks @AxxzyWasTaken: the second AVE encoder on T6041 is in.

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) area:media Area from CODEOWNERS (bot) blast:all 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) 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.

4 participants