Repository navigation
arm64: dts: apple: t6041: wire pmc_soc_max perf floor to AVD and AVE - #2751
RyanTheTide merged 2 commits into
Conversation
|
The domain and wiring match the T6040 shape (t6040.dtsi pmc_soc_max, avd/ave perf), and the name order is what each driver expects: avd-drv.c and ave-drv.c take an optional trailing "perf", and ane_h16_backend.c:1733 takes six domains only when "perf" is at index 5. pmc.c accepts rail 1 / level 2 on the t6041-pmc table. The comment's explanation of why level 2 (VMAX) and not 3 is clear.
Rows needed at 4891651: J616c apple-pmc status showing the rail-1 floor taken and released around an AVD decode and an ANE run, with throughput numbers; J575c AVE encode. Assisted-by: LLM (Claude:Opus 5.5) |
Define the pmc_soc_max (floor-soc-max) power domain under &pmc on T6041 using rail 1 (SOC, verified from J616c ADT /arm-io/pmgr voter-rail-data) and AP static voter agent 3 (already listed in apple,static-voters). Unlike M4 Pro (T6040, SOC states 0..2), M4 Max (T6041) exposes four SOC states (0..3 in J616c ADT /arm-io/pmp/iop-pmp-nub dvfs-domain and pmgr voltage-states0/28/29). State 2 (VMAX, 815 mV) already reaches the maximum SOC_AFC clock (2004 MHz) and matches ADT AVD-SOC-VMAX (0x19c) and VENC0-SOC-VMAX (0x198), while state 3 (VOVD, 820 mV) only raises SOC_AFI (975 -> 1300 MHz) and is driven by CLPC for CPU/GPU demand. Use level 2 here with label "soc-vmax" to match the ADT VMAX floor without implying the top VOVD state in apple-pmc debugfs. Signed-off-by: AxxzyWasTaken <[email protected]>
Attach the PMC SoC rail floor domain (&pmc_soc_max) as the "perf" power domain on &avd and &ave in t6041.dtsi, matching T6040 (t6040.dtsi) and the existing AVD and AVE bindings and drivers. &ane is intentionally left without the PMC floor: on T6041, apple_clpc_hw_t6041 already votes SoC state 2 for every ANE EXECUTE (clpc.c: apple_clpc_hw_t6041.ane[APPLE_CLPC_SOC] = 2) and active CPU demand votes SoC state 3 (VOVD). All T6041 boards (J616c, J614c, J575c) enable &pmc. On J616c and J614c &ave remains disabled until brought up; on J575c &ave is already enabled and now receives the VMAX SoC floor alongside &avd. Signed-off-by: AxxzyWasTaken <[email protected]>
4891651 to
fa1e8e3
Compare
|
Updated to
Next up: exact-head J616c |
|
Thanks, fa1e8e3 takes both: the Assisted-by: LLM (Claude:Opus 5.5) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Adversarial review at live head fa1e8e3e772e29920d41eed93ae83d10e2832338 against the pre-PR checklist: 0 code/policy/attribution/CI blockers. Holding with COMMENT solely for missing §5 hardware verification rows on the live head.
Checked & clean
- §1–§2 No model gating / no hacks: Pure DT description of the T6041 SoC fabric rail floor and AVD/AVE consumer wiring.
- §3 Deep DT, binding & driver correctness (
arch/arm64/boot/dts/apple/t6041.dtsi):pmc_soc_max: floor-soc-max(apple,rail = <1>,apple,level = <2>,label = "soc-vmax") matchesapple,pmc.yamlanddrivers/pmdomain/apple/pmc.c(apple_pmc_hw_t6040:rails = 4,agent_rails = GENMASK(1, 0),ap_agent = 3, withapple,static-voters = <1 3>present on&pmc). Naming the domainlabel = "soc-vmax"(pmc-soc-vmaxin debugfs) accurately reflects T6041's state 2 VMAX floor without implying state 3 VOVD.&avd("core", "perf") matchesapple,avd.yamlanddrivers/media/platform/apple/avd/avd-drv.c:683-692(devm_pm_domain_attach_list()withPD_FLAG_DEV_LINK_ON), mirroringt6040.dtsi.&ave("dma", "pipe4", "pipe5", "me0", "me1", "perf") matchesapple,t8140-ave.yamlanddrivers/media/platform/apple/ave/ave-drv.c:427-485, mirroringt6040.dtsi.- Dropping
&aneinfa1e8e3eis the right call sinceapple_clpc_hw_t6041already votes SoC state 2 on ANEEXECUTE. - All T6041 boards (
t6041-j614c-j616c.dtsi,t6041-j575c.dts) enable&pmc(status = "okay").
- §4 Attribution: Both commits (
02829ba72a82,fa1e8e3e772e) carry human author/committer (AxxzyWasTaken <[email protected]>) and humanSigned-off-by:only (zero AI trailers); PR body includesAssisted-by:. - CI: Both
dt-checks(0new warnings across 138 DTBs) andhost-testsare green onfa1e8e3e772e. - §6 Naming: Clean.
Remaining §5 hardware rows needed before APPROVE
- J616c (T6041) on live head
fa1e8e3e772e(default kernel command line):/sys/kernel/debug/apple-pmc/*/statusshowingpmc-soc-vmax: rail1 level 2 heldduring an active AVD decode andreleasedwhen idle, with before/after AVD decode throughput numbers, plus full §5 regression summary (0 SELinux denials,0 failed units,0 new kernel errors). - J575c (T6041) on live head
fa1e8e3e772e(since&aveis already enabled int6041-j575c.dts:1369): AVE encode before/after fps/throughput andapple-pmcstatus showingpmc-soc-vmaxheld during encode and released when idle, plus §5 regression summary (or explicit owner sign-off if no J575c is available).
Non-blocking nit
- The PR description still mentions
&ane/apple,ane.yamlfrom beforefa1e8e3edropped the ANE hunk — please trim those references so the body matches the live diff.
Assisted-by: LLM (Gemini 4 Neon)
|
Trimmed the stale |
|
J616C (M4 Max 16c/32g) exact-head boot & AVD/PMC floor verification at
(AVE |
RyanTheTide
left a comment
There was a problem hiding this comment.
The J616C row shows the soc-vmax floor released at idle and held during an AV1 decode, with the &ane hunk gone. Approving on that. The J575c encode path, live already there, still has no row and we can't supply one; please add it if anyone with a J575c can.
Assisted-by: LLM (Claude:Opus 5.5)
DjDeveloperr
left a comment
There was a problem hiding this comment.
Re-reviewed live head fa1e8e3e772e29920d41eed93ae83d10e2832338 (02829ba72a82, fa1e8e3e772e) after the PR description cleanup and the exact-head J616C AVD/PMC floor row.
Verified (0 code/policy/attribution/CI blockers)
- Scope & DT/driver correctness (§1–§4, §6): Strictly T6041-only (
arch/arm64/boot/dts/apple/t6041.dtsi; no T6040 or other SoC family is touched, so no non-T6041 row is needed). PR description now matches the live diff (&anereferences removed), both commits have humanSigned-off-by:only, anddt-checks+host-testsare green. - §5 J616C AVD + PMC floor proof (
fa1e8e3e772e): Cleanly verified!pmc-soc-vmaxtransitioned fromagent3 floor: 0x00000000 honoured: 0x00000000(released) ->0x00000020/0x00000020(rail1 level 2 held) during 4K AV1 HW decode (90 frames in0.497s= 181.1 fps / 6.04x realtime, exit 0) -> back to0x00000000(released) att+1s, withFAILED_UNITS=0.
Still holding APPROVE on one remaining §5 gap (within T6041)
&ave"perf"floor wiring is still untested on hardware.t6041.dtsimodifies&ave'spower-domains/power-domain-namesto add"perf"(&pmc_soc_max), which is already live ont6041-j575c.dts:1369(while&averemained disabled in the J616Cfa1e8e3e772eboot). As noted in both earlier reviews, we still need hardware coverage for the&ave"perf"path before approving this hunk:- A J575c AVE encode row on
fa1e8e3e772eshowingpmc-soc-vmaxheld during encode and released when idle (with encode fps before/after), or - If no J575c is available, either an AVE encode run on J616c with
&ave+&pmc_soc_maxboth active (confirmingpmc-soc-vmaxis held/released around an encode with explicit owner waiver for J575c), or dropping the&avehunk to a follow-up so#2751can land on the verified J616C AVD proof alone.
- A J575c AVE encode row on
Assisted-by: LLM (Gemini 4 Neon)
|
@AxxzyWasTaken status against integration/aurora daa9e2d: this merges cleanly and t6041.dtsi on the tip has no pmc_soc_max yet, so it is still needed. Two things changed on the tip since cacf355: the first encoder is now enabled on every M4 Max (f051544), so the AVE encode row that is still owed can be run on your J616c instead of waiting for a J575c; and a second encoder node, ave1, was added (22112f0, disabled) without a perf domain. Could you add the J616c encode row (fps before and after, the floor held during the encode and released after), and say whether ave1 should take the same floor? |
|
Thanks for checking against
Assisted-by: LLM (Google:Gemini 4 Neon) |
|
J616C (MacBook Pro 16" M4 Max, T6041) same-machine
Assisted-by: LLM (Google:Gemini 4 Neon) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Re-review at live head fa1e8e3e772e29920d41eed93ae83d10e2832338 following the J616C &ave + &avd A/B hardware row: all prior §5 holds are resolved — approving.
Verification of prior §5 hold
- In our previous review (
fa1e8e3e772e), §1–§4, §6, CI (dt-checks+host-tests), and the exact-head J616C AVD +pmc-soc-vmaxrow were already verified clean, with approval held solely for hardware verification of the&ave"perf"power-domain wiring. - Now that
f0515446enables&aveon every M4 Max inintegration/aurora, the newly posted same-machine J616C A/B row (integration/aurorae0a9448a75df, base DTB vs#2751DTB) cleanly closes that gap:- AVE H.264 encode (
h264_v4l2m2m, 240f, 8M):137.7 -> 175.1 fps(+27.2%, byte-identical output),agent3 floor: 0x20 honoured: 0x20,pmc-soc-vmax: rail1 level 2 held(48 samples) -> released after 2 sautosuspend. - AVE HEVC encode (
hevc_v4l2m2m, 240f, 8M):118.7 -> 175.3 fps(+47.7%, byte-identical output),agent3 floor: 0x20 honoured: 0x20,pmc-soc-vmax: rail1 level 2 held(54 samples) -> released after 2 sautosuspend. - Isolated AVD H.264 decode + idle verification: clean
released (0x0)->rail1 level 2 held->released (0x0),pmc-soc-vmax off-0, all AVD/AVE genpds suspended when idle;0failed systemd units and0newdmesgerrors across all runs.
- AVE H.264 encode (
- Re-checked against live
integration/auroratip (808a754659cf):#2751still merges cleanly (MERGEABLE/CLEAN) withf0515446's&ave { status = "okay"; }, and keeping disabled&ave1deferred to theave1enablement PR is the right call so no untested DT wiring lands. - §4 Attribution & live CI: Both commits (
02829ba72a82,fa1e8e3e772e) have human author/committer and humanSigned-off-by:only (zero AI trailers);dt-checksandhost-testsare green (SUCCESS).
Non-blocking nits
- The PR description still carries the pre-AVE "untested" note; updating it is optional.
- Comment
7093311547reported0failed systemd units and0newdmesgerrors without explicitly printing the SELinux AVC denial count, which is non-blocking here given this is pure DT power-domain wiring with no userspace/SELinux surface.
Assisted-by: LLM (Gemini 4 Neon)
5441428
into
aurora-silicon:integration/aurora
Add the
pmc_soc_max(label = "soc-vmax",apple,rail = <1>,apple,level = <2>) power domain under&pmcint6041.dtsiand wire it as the"perf"power domain for&avdand&ave.Rationale (J616c ADT)
/arm-io/pmgrvoter-rail-data:rail[1]is the SOC rail,ap-voter-agent-idx = 3(matches the existingapple,static-voters = <1 3>).AVD-SOC-VMAX/VENC0-SOC-VMAXentries request and already reaches the maximum SOC fabric clock; level 3 only raises it further for CPU/GPU demand.Verification
dtbs,dt_binding_check,CHECK_DTBS=yfor J616c/J614c/J575c: 0 warnings/errors; power-domain names/order matchapple,avd.yamlandapple,t8140-ave.yaml(CIdt-checksandhost-testsgreen onfa1e8e3e772e).checkpatch.pl --strict: clean (0 errors, 0 warnings, 0 checks on02829ba72a82andfa1e8e3e772e).apple-pmcfloor row: DTB fromfa1e8e3e772e, kernel7.3.0-j616c-wave1+(base606d37ec77a5,2026-11-22 09:35 UTC):/proc/device-tree/power-management@5048aa000/floor-soc-max(label = "soc-vmax"),/proc/device-tree/avd@280000000/power-domain-names = "core", "perf";avd 281080000.avdprobed cleanly;FAILED_UNITS=0.t+1s) AVD decode:agent3 floor: 0x00000000 honoured: 0x00000000,pmc-soc-vmax: rail1 level 2 released.LIBVA_DRIVER_NAME=v4l2_request ffmpeg -hwaccel vaapi -i av1_2160.mkv -f null -, 3840x2160 NV12, 90 frames in0.497s= 181.1 fps / 6.04x realtime, exit 0):agent3 floor: 0x00000020 honoured: 0x00000020,pmc-soc-vmax: rail1 level 2 held(pmc-soc-vmax on,genpd:1:281080000.avd active).@RyanTheTideAPPROVED(2026-11-22 09:51 UTC).&ave"perf"verification scope:&ave"perf"floor wiring is still untested on hardware (&aveis disabled on J616c/J614c and already enabled ont6041-j575c.dts);@DjDeveloperr(09:56 UTC) holds approval pending either a J575c AVE encode row onfa1e8e3e772e, a J616c AVE encode run with&ave+&pmc_soc_maxactive (with owner waiver for J575c), or splitting&aveto a follow-up. §5 regression counts (0 SELinux denials,0 new kernel errors) not yet reported; J614c and J575c remain untested.Assisted-by: LLM (Anthropic:Claude Opus 5.5, Google:Gemini 4 Neon)