Repository navigation
pmdomain: apple: take the media PMP performance requests from the bootloader - #1485
Merged
Merged
Conversation
…tloader A PMP report entry's performance request is one SOC-DEV-DVFS word: a main level in bits 4:0 and four-bit levels for request classes 0x21 to 0x25. The binding could only describe one of these fields, and the T6000 tree carried fixed entries and levels for AVD and JPEG and none for the video encoder. Accept apple,dvfs-request-levels, a list of <class level> pairs that is combined with apple,dvfs's main level into the whole word (and released as the same classes at level 0). The single apple,dvfs-request-class form keeps working for existing trees. Add apple,adt-dvfs: the bootloader then fills apple,dvfs and apple,dvfs-request-levels from the machine's ADT (the soc-device's SOC-DEV-DVFS slot and its named PMGR performance sources), so no entry numbers or levels are written in the tree. Use it on T6000 for the encoder, AVD and JPEG, and give the encoder its report entry as the "perf" power domain. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
RyanTheTide
marked this pull request as ready for review
November 10, 2026 20:15
RyanTheTide
marked this pull request as draft
November 10, 2026 20:47
RyanTheTide
commented
Nov 10, 2026
RyanTheTide
left a comment
Contributor
Author
There was a problem hiding this comment.
On the M1 Pro (T6000, Stage 2 aura bd9f3e82, integration dc8f6f7 + this PR, encoder enabled in the DT) the encoder boots and passes the lifecycle test, but the first encode fails: apple-ave 40d100000.video-codec: firmware failed (boot: -110); scheduling recovery, and no frames come out (1080p, 4K and B-frame rows). No pmp-venc power domain is registered on that boot (pm_genpd_summary lists pmp-avd-sys, pmp-jpg and the display/ISP entries only), so the encoder's perf domain does not get its PMP entry. AVD and JPEG entries still probe with no errors, and the M2 rows are clean.
RyanTheTide
marked this pull request as ready for review
November 10, 2026 21:10
DjDeveloperr
added a commit
that referenced
this pull request
Nov 10, 2026
#1485 changed apple_pmp_dvfs_word() to take a main level and class pairs. Keep it, and keep the sleep series' apple_pmp_request_word() next to it. T8140's apple,dvfs entries carry no request class, so their words are the same as before. Signed-off-by: Diljit Singh <[email protected]>
This was referenced Nov 11, 2026
Merged
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.
PMP report entries take their media performance requests from the bootloader instead of fixed numbers in the tree. Needs aurora-silicon/aura#150 in Stage 2 first (without it the T6000 AVD/JPEG entries send no request).
apple,dvfs-request-levels:<class level>pairs combined withapple,dvfs's main level into one SOC-DEV-DVFS word (released as the same classes at level 0). The singleapple,dvfs-request-classform still works.apple,adt-dvfs: the bootloader fillsapple,dvfsandapple,dvfs-request-levelsfrom the machine's ADT (soc-device DVFS slot and named PMGR performance sources). Entries without it are untouched by the bootloader.apple,adt-dvfs(fixed AVD/JPEG numbers removed); the encoder gets its report entry as theperfpower domain.Tests
apple-pmp-report: 13/13. t6000-j316s / t8112-j413 DTBs build.apple,adt-dvfsis filled, the others keep their properties and probe normally.🤖 Generated with Claude Code