Repository navigation
accel/ane: keep the CPU boost when no performance controller is bound - #718
Merged
Merged
Conversation
The performance-request rework replaced the engine-busy CPU frequency boost with a PMP level request, but only a DT that names apple,performance-controller (and a pmp_report with its ane-dvfs window) gets a level. Everything else, T8103 and every machine still booting an older DTB set, lost the boost and gained nothing. On the M1 Pro at the boot ANE clock the boost is worth 1 to 3 % at p50 on single layers and mostly protects the tail: a 3x3 depthwise layer at 112x112 goes from 207 us p99 with the boost to 245-364 us without it, over 2000 submits. Bring the boost back for exactly that case. When the DT binds no performance controller, ane_perf_init sets up the same min-frequency QoS as before and ane_perf_begin/end drive it around each submit. A DT with a controller gets the level request and no boost, as before. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
Contributor
Author
|
M1 Pro check, 7.3.0-aurora-fleet12g-ane (aurora-wip aa07c00 + #717 + this), 7.1 DTB set from boot.bin:
One more reason to keep the boost where there's no level: lane A's bisect tonight found that with the boost off ( |
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.
Keeps the engine-busy CPU frequency boost when the DT binds no ANE performance controller.
#684 replaced the boost with a PMP level request, but only DTs with
apple,performance-controlleron the ANE node and theane-dvfswindow on pmp_report get a level. T8103 and every machine still booting an older DTB set (our ref Macs boot the 7.1 set from boot.bin) lost the boost and got nothing in its place.Measured on the M1 Pro at the default ANE clock, boost on vs off, 2000 submits per run, two interleaved rounds:
With this change a DT without a controller gets the old min-frequency QoS around each submit. A DT with one gets the level request and no boost, exactly as #684 does now. No module parameter decides it, only the DT.
performance_levelstill readsunsupportedon those machines.KUnit x86_64/arm64 for the ANE and PMP suites pass, except 3 ane-h16-hwx subtests that fail the same way on aurora-wip. Checkpatch strict is clean apart from the MAINTAINERS note for the restored file (drivers/accel/ane/ is already covered).
🤖 Generated with Claude Code