Skip to content

pmdomain: apple: take the media PMP performance requests from the bootloader - #1485

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
ave-m1m2/pmp-adt-dvfs
Nov 10, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
ave-m1m2/pmp-adt-dvfs

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

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 with apple,dvfs's main level into one SOC-DEV-DVFS word (released as the same classes at level 0). The single apple,dvfs-request-class form still works.
  • apple,adt-dvfs: the bootloader fills apple,dvfs and apple,dvfs-request-levels from the machine's ADT (soc-device DVFS slot and named PMGR performance sources). Entries without it are untouched by the bootloader.
  • T6000: the encoder, AVD and JPEG entries use apple,adt-dvfs (fixed AVD/JPEG numbers removed); the encoder gets its report entry as the perf power domain.
  • Word fields are named constants; the KUnit vectors are synthetic.
  • T8112 is unchanged: its report has no request aperture in this driver yet.

Tests

  • KUnit apple-pmp-report: 13/13. t6000-j316s / t8112-j413 DTBs build.
  • M2 boot with aura#150: only the entry carrying apple,adt-dvfs is filled, the others keep their properties and probe normally.
  • On the M1 Pro the request aura#150 derives from the ADT is the one that lets the encoder reach its 4K speed (with the AVE DART tunables).

🤖 Generated with Claude Code

…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
RyanTheTide marked this pull request as ready for review November 10, 2026 20:15
@RyanTheTide
RyanTheTide marked this pull request as draft November 10, 2026 20:47

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
RyanTheTide marked this pull request as ready for review November 10, 2026 21:10
@RyanTheTide
RyanTheTide merged commit f404b59 into integration/aurora Nov 10, 2026
2 checks passed
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]>
@RyanTheTide
RyanTheTide deleted the ave-m1m2/pmp-adt-dvfs branch November 16, 2026 05:01
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