Repository navigation
cpufreq: apple: add bounded M6 T8152 CPU scaling - #161
Merged
Merged
Conversation
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
marked this pull request as ready for review
October 2, 2026 18:39
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This was referenced Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.