Repository navigation
soc: apple: expose T8140 PMP DVFS diagnostics - #182
Merged
Merged
Conversation
The firmware describes DVFS-STATE as four report entries beginning at entry 8. Make those values available through a read-only debugfs file in the existing PMP report driver. Require firmware readiness before and after sampling, bound the reads to the mapped resource, and remove the debugfs directory before releasing the mapping. The entry encoding and rate conversion are not established. Document the raw values as diagnostics, without presenting them as temperatures or hardware clock rates. This complements firmware frequency limits and thermal cooling without issuing new requests or changing policy. The T8140 report match and platform resources are provided separately. Assisted-by: LLM Signed-off-by: Ryan Murray <[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.
Expose the ADT-named T8140 PMP DVFS-STATE report through the existing Apple PMP report driver. The read-only debugfs file samples four complete 16-byte report entries as uninterpreted word pairs, checks firmware readiness before and after sampling, validates the mapped resource bounds, and is removed before its mapping is released.
This change is independently written from firmware device-tree facts and standard Linux interfaces. It uses the T8140 provider supplied by PMP support PR #179. It composes with the existing firmware cpufreq limit and thermal power allocator support; it adds no clock request, cache write, or thermal policy.
A bounded Linux observation found zero first words and nonzero changing second words, so both words are exposed without assigning field meanings. That observation ran on a separate diagnostic kernel and is not qualification of this change.
The report field encoding, mapping to memory clock rates, value freshness, and MCC temperature sensor identity remain unestablished. This is a diagnostic step, not full memory-controller thermal/clock or SLC parity.
Static validation has passed. Strict checkpatch currently reports only the required Assisted-by trailer warning. Test composition with PR #179 and the integration source has no conflicts. The complete remote Image/modules/J700 DTB build passed with zero compiler warnings and matching artifact hashes. The modified driver object and J700 DTB also build on the combined public integration containing PMP and IPA support. Neo qualification is pending; the earlier foreign-kernel observation is excluded. No hardware PASS is claimed.
🤖 Generated with Claude Code