Skip to content

soc: apple: expose T8140 PMP DVFS diagnostics - #182

Merged
RyanTheTide merged 1 commit into
aurora-wipfrom
j700/mcc-telemetry
Oct 8, 2026
Merged

RyanTheTide merged 1 commit into
aurora-wipfrom
j700/mcc-telemetry

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

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

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]>
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