Skip to content

cpufreq: apple: add bounded M6 T8152 CPU scaling - #161

Merged
Acelogic merged 7 commits into
aurora-wipfrom
codex/m6-cpu
Oct 2, 2026
Merged

Acelogic merged 7 commits into
aurora-wipfrom
codex/m6-cpu

Conversation

@Acelogic

@Acelogic Acelogic commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Add bounded M6 T8152 CPU scaling and integrate M5 SMP/frequency #160/#162. Preserve older SoC settings, T8140's thermal guard, M5's firmware-owned policy, and M6's verified low states and transition bound.

The integrated kernel passed physical M6 boot through public m1n1/U-Boot, all 12 CPUs, concurrent atomic work and measured frequency scaling. Kernel/113 Apple DT builds pass; M5/M6 cpufreq bindings validate with no new legacy diagnostics. Combined PR heads merge cleanly in both orders. Older-chip hardware was not rebooted.

Add the M5 compatible for its five-bit P-state command interface. The
controller retains firmware voltage and CLPC/PMP configuration.

Signed-off-by: Acelogic <[email protected]>
T8142 can clear registers when returning from WFIT, just as it can with
WFI in the idle task. The second Linux cluster-frequency transition on
J813 reached __const_udelay while polling the command register, then
returned with a cleared callee-saved pointer and faulted in cpufreq.

Use the existing counter delay loop on both T8142 core types. The idle
task's register/FP flush path cannot be used by arbitrary kernel delays
which may have live SIMD state.

With this change, repeated E/P state sweeps and pinned integer workloads
complete on J813, followed by timer progress and SHA-256 jobs on all ten
CPUs. Other CPU models retain their existing delay paths.

Signed-off-by: Acelogic <[email protected]>
Use five-bit P-state requests with the existing busy timeout, expected
state and completion checks. Preserve firmware voltage, PLL and CLPC/PMP
configuration; stop requests after an unexpected state or timeout.

Separate T8140's SMC thermal-policy requirement from command verification
so T8142 can use verified transitions with its bounded initial OPP table.
T8140 retains its thermal requirement and behavior.

Signed-off-by: Acelogic <[email protected]>
Describe both shared cluster policies and enable the userspace governor
in the J813 configuration. Expose only the states up to the observed
firmware handoff: E state 2 at 972 MHz and P state 10 at 3516 MHz.

State 1 is a 300 MHz floor before the firmware SRAM table entries.
Dependent decrement-loop timing on J813 confirmed every exposed state's
frequency. Document repeatable state sweeps and qualification limits.

Signed-off-by: Acelogic <[email protected]>
@Acelogic
Acelogic marked this pull request as ready for review October 2, 2026 18:39
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@Acelogic
Acelogic merged commit 9845b1b into aurora-wip Oct 2, 2026
@Acelogic
Acelogic deleted the codex/m6-cpu branch October 2, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant