Repository navigation
soc: apple: clpc: name the vote reasons and share the sample work - #1555
Merged
Merged
Conversation
No functional change: the reasons debugfs reports for the last vote get names instead of bare bit values, and the two work functions, identical but for the work item they start from, call one locked sample. Signed-off-by: Diljit Singh <[email protected]>
The CLPC demand tests build apple_clpc_sample() from clpc.c over their own prelude, which has no APPLE_CLPC_REASON_* names now that the sample uses them, so the host test no longer compiled. Take the names from clpc.c as the test does APPLE_CLPC_GPU_DENSE_SAMPLES, and give the prelude BIT(). The reason values are unchanged. Signed-off-by: Diljit Singh <[email protected]>
Contributor
Author
|
Host tests failed on code, not the outage: |
The sample now passes reason & APPLE_CLPC_REASON_ANE to apple_clpc_ane_cluster(); the omit-ane-cluster mutation still looked for reason & 32 and would no longer change the code, which the test rejects as a stale mutation. Signed-off-by: Diljit Singh <[email protected]>
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.
No functional change: naming and one shared function, to make the CLPC easier to read.
reason_bits) get names instead of bare1,2,4,8,16and32. The debugfs output is unchanged.apple_clpc_work()andapple_clpc_idle_work()were identical except for the work item they start from. Both now call one lockedapple_clpc_run().Validation (J714sAP, 2026-11-11)
statusreads as before, for examplelast_vote: 0x36 reason_bits 0x2while GPU work streams and0x25 reason_bits 0x1under CPU load.🤖 Generated with Claude Code