Skip to content

media/pmdomain/dts: apple: T6001 27.2 bring-up (AVE 26B123, South PMGR ProRes, South pmp_report) - #4304

Merged
RyanTheTide merged 3 commits into
aurora-silicon:mainfrom
connorchanjazzman:feat/t6001-272-bringup-pmp-fixes
Dec 5, 2026
Merged

RyanTheTide merged 3 commits into
aurora-silicon:mainfrom
connorchanjazzman:feat/t6001-272-bringup-pmp-fixes

Conversation

@connorchanjazzman

Copy link
Copy Markdown
Contributor

Summary

Standalone T6001 (M1 Max) OS FW 27.2 (26B123) hardware bring-up and South PMGR / pmp_report fixes on main, with no dependency on #4239. These fixes bring up all 27.2-enabled peripherals cleanly on MacBook Pro 16" M1 Max (J316c) and serve as the clean base beneath the follow-up T6001 deep sleep PR.

Changes

  1. 57deb4ccd — media: apple: ave: admit T6000/T6001 macOS 27.2 (26B123) firmware

    • Adds the T6000/T6001 macOS 27.2 (26B123) preloaded AVE firmware descriptor (TEXT 0x13c000, DATA 0x134000, link cell at TEXT 0x423c, CRC 0x24812842, ave_layout_26b123).
    • Scans all 5-cell entries in iommu-addresses inside ave_fw_segment() so dual-encoder SoCs (T6001 ave0 / ave1) sharing the preloaded TEXT carveout match their own phandle entry instead of failing with -EINVAL.
    • (Note: #3357 targets the older 13.5 T6001 AVE build 65d16c38; this commit admits the 27.2 26B123 build.)
  2. af0feb11b — arm64: dts: apple: t6001: extend pmgr_south reg past ps_prores

    • Live J316c 27.2 ADT (/arm-io/pmgr reg[3] size 0x74000, ps-reg[18] offset 0xc000) places ps_prores at offset 0xc000 inside pmgr_south.
    • Extends &pmgr_south reg length from 0xc000 to 0xc004 so ps_prores and apr1 probe cleanly on T6001.
  3. fa82a989c — pmdomain/dts: apple: t600x: fix South pmp_report indices and honor apple,no-ack

    • Live J316c 27.2 ADT /arm-io/pmp/iop-pmp-nub soc-device records index South devices three slots lower than the prior t600x-die0.dtsi entries:
      • afnc4_ioa=0x1a, afnc5_ioa=0x1b, dispext2=0x1d, dispext3=0x1e, venc1=0x1f, msr1=0x20, prores=0x21.
      • Previously afnc4_ioa/afnc5_ioa occupied 0x1d/0x1e, inadvertently holding dispext2/dispext3 requested in PMP.
    • soc-device-ps-group (0x0ffff803f1fffe00) has bits 26 and 27 (afnc4_ioa/afnc5_ioa) cleared (just like IOA0..IOA3), so PMP never acknowledges them in SOC-DEV-PS-ACK.
    • Marks pmp_report_afnc4_ioa and pmp_report_afnc5_ioa with apple,no-ack and reads apple,no-ack in apple_pmp_report_entry_probe() for non-start reports as well, eliminating the 1000 ms PMP ACK timeout warning on wake and reducing early resume on J316c from ~1013 ms to 9.7–13.2 ms.

Testing

  • Verified live on MacBook Pro 16" M1 Max (J316c / T6001, OS FW 27.2 26B123):
    • ave0 and ave1 probe cleanly and expose V4L2 video encoder devices; ps_prores / apr1 probe cleanly; South pmp_report entries report without timeout warnings across 20/20 deep sleep cycles.
  • Clean ARM64 LLVM=1 compile-check against aurora-silicon/linux main (16a732e9c): all 6 T600x DTBs, drivers/pmdomain/apple/pmp-report.o, and drivers/media/platform/apple/ave/ave-{drv,fw,layout}.o build cleanly with zero warnings.

Admit the M1 Pro/Max (T6000/T6001) video encoder firmware preloaded by the
macOS 27.2 (26B123) stub (shared TEXT 0x13c000, per-engine DATA 0x134000,
link cell at TEXT 0x423c, TEXT CRC 0x24812842 using ave_layout_26b123).

Also scan all 5-cell entries in iommu-addresses inside ave_fw_segment() so
dual-encoder SoCs (T6001 ave0/ave1) sharing the preloaded TEXT carveout
match their own phandle entry instead of failing with -EINVAL.

Verified live on MacBook Pro 16" M1 Max (J316c / T6001, OS FW 27.2 26B123).

Signed-off-by: Connor Chan <connor.chan.jazzman@gmail.com>
T6001's South PMGR places ps_prores at offset 0xc000 (verified from live
J316c 27.2 ADT /arm-io/pmgr reg[3] size 0x74000, ps-reg[18] offset 0xc000).
Extend &pmgr_south's reg length from 0xc000 to 0xc004 so ps_prores and
apr1 probe cleanly on T6001.

Signed-off-by: Connor Chan <connor.chan.jazzman@gmail.com>
…ple,no-ack

Live J316c (T6001) 27.2 ADT /arm-io/pmp/iop-pmp-nub soc-device records
index South devices three slots lower than the prior T600x DT entries
(afnc4_ioa=0x1a, afnc5_ioa=0x1b, dispext2=0x1d, dispext3=0x1e,
venc1=0x1f, msr1=0x20, prores=0x21). Previously afnc4_ioa/afnc5_ioa
occupied 0x1d/0x1e, inadvertently keeping dispext2/dispext3 requested.

Additionally, soc-device-ps-group (0x0ffff803f1fffe00) has bits 26 and 27
(afnc4_ioa/afnc5_ioa) cleared (just like IOA0..IOA3), so PMP never
acknowledges them in SOC-DEV-PS-ACK. Mark pmp_report_afnc4_ioa and
pmp_report_afnc5_ioa with apple,no-ack and read apple,no-ack in
apple_pmp_report_entry_probe() for non-start reports as well, eliminating
the 1000 ms PMP acknowledgment timeout warning on wake (reducing early
resume from ~1013 ms to ~11 ms on J316c).

Signed-off-by: Connor Chan <connor.chan.jazzman@gmail.com>
@connorchanjazzman
connorchanjazzman requested review from a team as code owners December 4, 2026 11:27
@github-actions github-actions Bot added area:media Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) area:power Area from CODEOWNERS (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Merge readiness at fa82a989: not ready yet

Check Detail
CI at head ok 7 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head no no line with the head SHA fa82a989, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text no add a 'Tested:' line; a 'Risk:' line (door and Macs) (guide)

Areas: area:media, area:platform, area:power

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

@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: MERGE at fa82a98

Checked: Rebuilt all six T6000, T6001 and T6002 DTBs at the head and base. Both T6000 DTBs are byte-identical. The three T6001 DTBs extend South PMGR through the ProRes register. Those three DTBs and the T6002 DTB have seven distinct PMP indices and exactly the two intended no-ack entries. Dtschema validates the existing PMP and reserved-memory binding documents, and focused PMP validation is clean for all twelve DTBs.

Checked: Nine exact-source AVE mapping cases passed with GCC and Clang on both revisions. The head accepts both phandles in the shared carveout, keeps the single-entry case, and rejects a partial table, a missing phandle, a misaligned address and a size mismatch. The existing hardware-block and firmware identity checks select the AVE descriptor. The PMP driver reads the existing DT property for legacy reports and preserves the existing native-PMP validation. Reviewed the whole diff and commit text.

Integration: #3357 changes the same AVE build table for 13.5. Keep both firmware identities when composing those changes. The J316c report is the author's hardware result. The fork's substantive hosted workflows are skipped.

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

ORCH5 merge sweep: passes the six-point gate (CI green at fa82a98, independent review approval by aurora-silicon-review[bot], no taint, no Stage 1/LocalPolicy change).

@RyanTheTide
RyanTheTide merged commit c98af54 into aurora-silicon:main Dec 5, 2026
8 checks passed
IronsideXXVI pushed a commit to IronsideXXVI/linux that referenced this pull request Dec 5, 2026
Two merges that landed in the same sweep each passed on their own, but
together they broke main's host tests:

- sleep-legacy-fw-tests: apple_sleep_undescribed() now reads
  s->gp_pcie_undescribed, which the test fixture's struct apple_sleep
  doesn't have, so the fixture no longer compiles. Add the member
  (zero, as on a board without the gp PCIe gap).

- t6030-pmp-graph-tests --mutations: aurora-silicon#4304 added a second branch that
  reads "apple,no-ack", so the no-storage-policy mutation's pattern
  matches twice and the harness refuses it. Anchor the pattern on the
  "} else {" that follows the record-start branch it is meant to break.

Tested: run-host-tests.py --only sleep-legacy-fw (1/1) and
--only t6030-pmp-graph (2/2, the mutation is killed again); the full
local run at main f02bd68 had only these two failures (1249/1251).

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:media Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) area:power Area from CODEOWNERS (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants