Repository navigation
media/pmdomain/dts: apple: T6001 27.2 bring-up (AVE 26B123, South PMGR ProRes, South pmp_report) - #4304
Conversation
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>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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).
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>
Summary
Standalone T6001 (M1 Max) OS FW 27.2 (
26B123) hardware bring-up and South PMGR /pmp_reportfixes onmain, 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
57deb4ccd—media: apple: ave: admit T6000/T6001 macOS 27.2 (26B123) firmware26B123) preloaded AVE firmware descriptor (TEXT0x13c000,DATA0x134000, link cell atTEXT0x423c, CRC0x24812842,ave_layout_26b123).iommu-addressesinsideave_fw_segment()so dual-encoder SoCs (T6001ave0/ave1) sharing the preloadedTEXTcarveout match their own phandle entry instead of failing with-EINVAL.#3357targets the older 13.5 T6001 AVE build65d16c38; this commit admits the 27.226B123build.)af0feb11b—arm64: dts: apple: t6001: extend pmgr_south reg past ps_prores/arm-io/pmgrreg[3]size0x74000,ps-reg[18]offset0xc000) placesps_proresat offset0xc000insidepmgr_south.&pmgr_southreglength from0xc000to0xc004sops_proresandapr1probe cleanly on T6001.fa82a989c—pmdomain/dts: apple: t600x: fix South pmp_report indices and honor apple,no-ack/arm-io/pmp/iop-pmp-nubsoc-devicerecords index South devices three slots lower than the priort600x-die0.dtsientries:afnc4_ioa=0x1a,afnc5_ioa=0x1b,dispext2=0x1d,dispext3=0x1e,venc1=0x1f,msr1=0x20,prores=0x21.afnc4_ioa/afnc5_ioaoccupied0x1d/0x1e, inadvertently holdingdispext2/dispext3requested in PMP.soc-device-ps-group(0x0ffff803f1fffe00) has bits 26 and 27 (afnc4_ioa/afnc5_ioa) cleared (just likeIOA0..IOA3), so PMP never acknowledges them inSOC-DEV-PS-ACK.pmp_report_afnc4_ioaandpmp_report_afnc5_ioawithapple,no-ackand readsapple,no-ackinapple_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
26B123):ave0andave1probe cleanly and expose V4L2 video encoder devices;ps_prores/apr1probe cleanly; Southpmp_reportentries report without timeout warnings across 20/20 deep sleep cycles.LLVM=1compile-check againstaurora-silicon/linuxmain(16a732e9c): all 6 T600x DTBs,drivers/pmdomain/apple/pmp-report.o, anddrivers/media/platform/apple/ave/ave-{drv,fw,layout}.obuild cleanly with zero warnings.