Repository navigation
arm64: dts: apple: mark T8103 and T600x CPU OPP tables opp-shared - #3333
Conversation
All cores within each E- or P-cluster on T8103 and T600x share a single clock/voltage domain. Add opp-shared to their CPU OPP tables to match the newer Apple Silicon DTSIs and avoid duplicating per-CPU OPP tables. Signed-off-by: Erik Bourget <[email protected]>
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict at 262e263dae4c: the change is correct, with no code blockers. Before merge it needs a T600x row and the queued dt-checks run.
Checked
- Diff: it adds
opp-shared;to the two CPU OPP tables int8103.dtsi(ecluster_opp,pcluster_opp) andt600x-common.dtsi(icestorm_opp,firestorm_opp).- This matches
t8112.dtsiandt602x-common.dtsi. - On t602x,
avalanche_oppis already shared by both P clusters (cpufreq_p0,cpufreq_p1), the same shape this gives t600x.
- This matches
- No effect on cpufreq policies:
apple-soc-cpufreqbuildspolicy->cpusfromperformance-domains(of_perf_domain_get_sharing_cpumask()), not from the OPP sharing mask.- It adds the tables per policy (
dev_pm_opp_of_cpumask_add_table(policy->cpus)) and sets the P-state through its own cluster registers. - So the E, P0 and P1 policies (six on T6002, whose die-1 CPUs use the same two tables) stay as they were.
- The tables just become one shared OPP object per core type. The energy model is still registered per policy.
- Checks I ran:
checkpatch.pl --stricton the commit: 0 errors, 0 warnings, 0 checks;- the commit is signed off, with no attribution;
- CI:
Host testsandpr-textpass, whileDevice tree checksis still queued.
Before merge
dt-checksgreen at this head.- A T600x row at this head. It goes under Not yet, and the J313 row covers only T8103. On an M1 Pro or Max (ideally an M1 Ultra too, since its die-1 CPUs share the same two tables), check:
/sys/devices/system/cpu/cpufreq/still has one policy per cluster (E, P0, P1), withrelated_cpusper cluster;- an energy-model perf domain exists for each policy;
- P0 and P1 scale independently under a single-cluster load;
- a clean boot with no OPP or EM errors.
|
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: FINISH, then merge at 262e263dae4c3f3bdbd73acd6d4aed66f304e159
Blocker: The binding defines opp-shared as all users of the table switching DVFS together. In t600x-common.dtsi, independent P0 and P1 performance domains both point at firestorm_opp. T6002 also points independent die-1 domains at the same tables. The Apple driver's per-domain CPU mask prevents this from collapsing its current policies, but the emitted DT still describes the wrong hardware. Keep the T8103 change separately. For T600x, split the table nodes by coupled DVFS domain while sharing the table source, or leave the shared flag off for the tables with independent consumers.
Checked: Traced the T600x and T6002 references, checked the binding and the cpufreq policy mask, and verified the current DT/host checks. The J313 row tests the naturally coupled T8103 case, while a T600x layout and independent-scaling row remain due. No per-board run-time gate or attribution added.
|
Confirmed against the source at Updated the PR body to list M1 Ultra ( Exact-SHA J313 row (closing the missing merge SHA): |
In t600x-common.dtsi and t6002.dtsi, independent E- and P-cluster DVFS domains pointed at the same icestorm_opp and firestorm_opp nodes. Because opp-shared asserts that all consumers of a table node switch DVFS state together, sharing one node across independent clusters violates the opp-v2 binding. Move the shared Icestorm and Firestorm OPP entry definitions into t600x-icestorm-opp.dtsi and t600x-firestorm-opp.dtsi, and give each coupled cluster DVFS domain (E0, P0, P1, plus E1, P2, P3 on t6002) its own opp-shared table node. Signed-off-by: Erik Bourget <[email protected]>
|
Addressed the
Verified locally at
Hardware at Still under |
There was a problem hiding this comment.
Checked the DTS references directly. Each T600x cluster has exactly one OPP table per performance domain, including three separate domains on the T6002 second die. T8103 retains one table per cluster. The split resolves the false coupling issue. Code approved. The reported 139 DTB checks and J313 scaling row cover T8103; T600x hardware and hosted landing checks remain.
|
Updated the PR description with All current CI checks on |
|
Merging at |
What: Mark the T8103 CPU OPP tables (
ecluster_opp,pcluster_oppint8103.dtsi)opp-shared;and split the T600x/T6002 CPU OPP tables (t600x-common.dtsi,t6002.dtsi) into oneopp-shared;table node per coupled cluster DVFS domain while sharing the OPP entries int600x-icestorm-opp.dtsiandt600x-firestorm-opp.dtsi.Tested: J313 (M1 MacBook Air, T8103) Group A boot at
6b5fe9738c26(merged ontomainee36fbdcd1c8, all changed PR files verified byte-identical):opp-sharedon both CPU OPP tables (opp-table-0,opp-table-1),sched_energy_aware=1, Energy Model present forcpu0andcpu4,policy0/policy4onschedutil(600–2064/600–3204 MHz), boot smoke PASS, DPMS off/on x3 PASS, deep S2R x2 PASS, 16 MB RAM integrity PASS,0Oops/BUG/WARN (same Group A boot saw an unisolated ISP capture failure-19/DART fault after the first deep-S2R resume, whereas baselinemaincaptured successfully after its first deep-S2R resume and became unreachable after its second deep-S2R cycle, cause unisolated). Local DT checks (139/139DTBs in CI and targetedCHECK_DTBS=y), host tests, andcheckpatch.pl --strictpass at6b5fe9738c26.Risk: two-way door · M1, M1 Pro, M1 Max, and M1 Ultra Macs (
T8103,T6000,T6001,T6002).Revert:
git revert -m 1 <merge_commit>onmain(or revert6b5fe9738c26and262e263dae4cin reverse order); DT-only change with no persistent on-disk, ESP, Stage 2, or firmware state.Not yet: T600x (M1 Pro
T6000, M1 MaxT6001, M1 UltraT6002) hardware row at6b5fe9738c26verifying: (1) onecpufreqpolicy per cluster (E, P0, P1; six onT6002) withrelated_cpusper cluster, (2) a per-policy Energy Model perf domain for each policy, (3) independent P0/P1 (andT6002die-1) scaling under single-cluster load, and (4) clean boot with zero OPP or Energy Model errors (no T600x Mac is in our local lab; J313T8103covers the sharedopp-shared+apple-soc-cpufreq+ Energy Model path in the same family, and both the T600x hardware row and Core/Omarchy Mac maintainer review remain open); isolating the Group A post-first-S2R ISP capture failure (-19/DART fault) on J313 (not yet isolated because J313 became unreachable after the second deep-S2R cycle on baselinemainand awaits physical recovery).Details
All cores within each E- or P-cluster on T8103 and T600x share a single clock and voltage domain, matching
t8112.dtsi,t602x-common.dtsi,t8122,t8132,t604x, andt8140.Because the
opp-v2binding definesopp-sharedas all consumers of an OPP table node switching DVFS state together, independent cluster DVFS domains must not share oneopp-sharedtable node:t8103.dtsi),ecluster_opp(cpufreq_e) andpcluster_opp(cpufreq_p) each map 1:1 to a single coupled cluster DVFS domain.t600x-common.dtsi) and T6002 (t6002.dtsi), the shared entry definitions live int600x-icestorm-opp.dtsi(5 OPPs) andt600x-firestorm-opp.dtsi(15 OPPs), and each coupled cluster DVFS domain gets its ownopp-shared;table node:icestorm_e0_opp: opp-table-e0(cpufreq_e),firestorm_p0_opp: opp-table-p0(cpufreq_p0),firestorm_p1_opp: opp-table-p1(cpufreq_p1), plusicestorm_e1_opp: opp-table-e1(cpufreq_e_die1),firestorm_p2_opp: opp-table-p2(cpufreq_p0_die1), andfirestorm_p3_opp: opp-table-p3(cpufreq_p1_die1) ont6002.dtsi.In
drivers/cpufreq/apple-soc-cpufreq.c,apple_soc_cpufreq_find_cluster()buildspolicy->cpusfromperformance-domains(of_perf_domain_get_sharing_cpumask()),dev_pm_opp_of_cpumask_add_table(policy->cpus)attaches the OPP table per policy, and.register_em = cpufreq_register_em_with_oppregisters a per-policy Energy Model perf domain.Overlapping PRs (all conflict-free against
origin/main18058ea228e2):#3551(feat/dt-complete-t8103) and#3223(feat/t8103-idle-atc-poweroff) also toucharch/arm64/boot/dts/apple/t8103.dtsiin disjoint nodes (aop*andatcphy0/atcphy1, respectively) and require no special merge ordering.Evidence
mainee36fbdcd1c8+#3085,#3290,#3329,#3333,#3495,#3506,#3546,#3289,#3320, 2026-11-28):888c041944da96032a9252504c4d5543b906fd98717234eca5e091150af85798949dc089ed390b7535dd5ef2a6e99975c3026658e58dbd9d17e9b20d2bbb7d71#3333(6b5fe9738c26) verified byte-identical against#3333merged alone ontomain(ee36fbdcd1c8).cpufreq:opp-sharedpresent on both CPU OPP tables (opp-table-0,opp-table-1);sched_energy_aware=1; Energy Model present forcpu0andcpu4;policy0/policy4onschedutil(600–2064 MHz/600–3204 MHz).eDP-1connected/enabled, input, networking, audio enumeration, Borealis compute/render checks,0AVC denials; one baseline failed unitspeakerguardd-v2-switchtest.servicealso present on baselinemainee36fbdcd1c8); DPMS off/on x3 PASS (dpmsStatus, backlight0 -> 130); deep S2R (rtcwake -d rtc1 -m mem -s 30) x2 PASS (0 -> 2), 16 MB RAM integrity PASS,0Oops/BUG/WARN.apple-ispfirmware boot-19/ DART translation fault) after the first deep-S2R resume; on baselinemain(ee36fbdcd1c8), ISP capture worked successfully after its first deep-S2R resume, and J313 became unreachable after its second deep-S2R cycle (cause remains unisolated; awaiting physical recovery), leaving the Group A ISP failure unisolated. (s2idlehard-resets J313 on baselinemain, so deep S2R with RTC wake was used.)6b5fe9738c26:scripts/dtc/apple-dt-check.sh 8e2ee15f3ca3 HEAD "$W":base: make rc=0, 1192 warning lines, 139 DTBs,head: make rc=0, 1192 warning lines, 139 DTBs,new warnings: 0, removed: 0.make -j16 O=_build_dt ARCH=arm64 LLVM=1 CHECK_DTBS=y apple/t8103-j313.dtb apple/t8103-j293.dtb apple/t8103-j274.dtb apple/t8103-j456.dtb apple/t8103-j457.dtb apple/t6000-j314s.dtb apple/t6001-j316c.dtb apple/t6002-j375d.dtb:0errors,0OPP warnings.fdtget -l <dtb> / | grep opp-tableon the built DTBs:t6000-j314s.dtb/t6001-j316c.dtb:opp-table-e0,opp-table-p0,opp-table-p1(plusopp-table-gpu, andopp-table-dramont6000)t6002-j375d.dtb:opp-table-e0,opp-table-p0,opp-table-p1,opp-table-gpu,opp-table-e1,opp-table-p2,opp-table-p3t8103-j{274,293,313,456,457}.dtb:opp-table-0,opp-table-1,opp-table-gpupython3 -I tools/asahi/run-host-tests.py --only hardware-defaults(1/1passed) and--only cpu-order(1/1passed).scripts/dtc/apple-adt-coverage.py(withapple-adt-coverage-test.py19/19):t6000-j316sMISSING=0 mapped=481 waived=231 broken=0 total=712; all 6 coverage boards unchanged/clean.scripts/dtc/apple-dart-pd-check.py(apple-dart-pd-check-test.py17/17):DARTs without a usable power domain: 87, new: 0, fixed: 0.scripts/dtc/apple-sibling-drift.py(apple-sibling-drift-test.py5/5):drift 812, new 0, resolved 0../scripts/checkpatch.pl --strict --git 8e2ee15f3ca3..6b5fe9738c26:262e263dae4c0errors,0warnings,0checks;6b5fe9738c260errors,1warning (new fileMAINTAINERSreminder;arch/arm64/boot/dts/apple/is already covered);git diff --checkclean.git merge-tree --write-tree origin/main 6b5fe9738c26against18058ea228e2: clean (350cd5d1674aaaa4e37e3aadc4c763fdf60d0901).6b5fe9738c26:Device tree checks / dt-checks(46077237211),Host tests / host-tests(46077237064),pr-text / pr-text(46077237406), andpr-readiness / readiness(46077233931,46077749677) all passed.6b5fe9738c26in batched candidateac44bee46ee4(main9e38a276dcb4, default cmdline;t6002.dtsi,t600x-common.dtsi,t600x-firestorm-opp.dtsi, andt600x-icestorm-opp.dtsibyte-identical to6b5fe9738c26,t8103.dtsiOPP nodes identical with sibling#3223/#3332/#3334edits in unrelated nodes): live DTopp-sharedonopp-table-0andopp-table-1;sched_energy_aware=1; EM perf domains created forcpu0andcpu4;policy0(cpus=0..3,schedutil, 5 OPPs600–2064 MHz),policy4(cpus=4..7,schedutil, 12 OPPs600–2988 MHz,max=3204 MHz), live scalingp0: 1332 -> 2064 MHz,p4: 600 -> 1056 -> 1956 MHz.262e263dae4c(t8103.dtsiunchanged in6b5fe9738c26) in fleet candidate5509a254a6bd(mainfcb124279183+#3220,#3221,#3297,#3300,#3329,#3332,#3333,#3274), default cmdline, J313 DTB from candidate on default Stage 2 (1.0.0b17-gf5ddfff2) via one-shotaura-try, docked (Thunderbolt 5 dock with Ethernet and3840x2160@120external display ondcpext):sched_energy_aware=1,cpu cpu0: EM: created perf domainandcpu cpu4: EM: created perf domain,/sys/kernel/debug/energy_model/cpu0(5 states,cpus=0-3) andcpu4(15 states,cpus=4-7),policy0related_cpus0 1 2 3,policy44 5 6 7, 4 boots,0failed units,0AppArmor denials, 2 deep sleeps +s2idlepassed across 3 separate runs (one unrelateds2idlehang did not reproduce on isolated per-PR runs).