Skip to content

t6000: AVD performance request to the PMP (AVD under PMP -40% -> +16% over PMP off) - #1293

Merged
RyanTheTide merged 4 commits into
integration/aurorafrom
pmpvote/t6000-media-votes
Nov 9, 2026
Merged

RyanTheTide merged 4 commits into
integration/aurorafrom
pmpvote/t6000-media-votes

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Follows #1290 (AGX vote, merged). With APPLE_USE_PMP on T6000, AVD and the JPEG codecs sent the PMP no performance request. On a J316s with the J314s PMP profile, AVD decode ran about 40% slower than with the PMP off, and 4K JPEG encode about 12% slower. This PR adds those requests:

  • pmp-report: request classes. A report entry's apple,dvfs level can now sit in a request-class lane: apple,dvfs-request-class 0x21..0x25 puts a 4-bit level at bits 35:32..51:48, and without the property the level stays in the default bits 4:0. The active word and the release word are both built from it. KUnit covers the encodings and the limits. The T600x offsets gain the update aperture and the SOC-DEV-DVFS range (PTD 0x108, 0x28 entries).
  • t6000.dtsi (APPLE_USE_PMP only). AVD gets level 2 in class 0x21 of entry 0x112. A JPEG request (entry 0x114) was tried and dropped: it made 1080p encode 27% slower (see the comment). The existing genpd ordering applies: power request, then ACK, then the level; on power-off, level 0, then the power request is cleared.

Boards without APPLE_USE_PMP are unchanged (DTB semantic diff: J316s identical).

Benchmarks

See the comments: AVD 1080p runs 72-73 fps against 62-63 with the PMP off, and 4K 18 against 15-16.

🤖 Generated with Claude Code

…uest classes

A report entry can send a SOC-DEV-DVFS performance request with its power
request (apple,dvfs), so far only as a level in the default lane, bits 4:0.
T6000 devices also take their level in a request class: a four-bit lane at
bits 35:32 (class 0x21) through 51:48 (class 0x25). Add
apple,dvfs-request-class and build both the active and the release word
from it, with KUnit checks of the encodings and the limits.

Give the T600x offsets the update aperture and the SOC-DEV-DVFS range
(PTD 0x108, 0x28 entries; the ANE level at 0x10c is one of them).

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
With APPLE_USE_PMP the PMP runs the fabric and DCS low, and AVD and the
JPEG codecs asked it for nothing: on a J316s with the J314s PMP profile,
AVD decode ran about 40% slower than with the PMP off and 4K JPEG encode
about 12% slower. Let their report entries send level 2 in request class
0x21 of SOC-DEV-DVFS entries 0x112 (AVD) and 0x114 (JPEG, shared by both
codecs) while they are powered; the level is dropped before the power
request. Only boards with APPLE_USE_PMP are affected.

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
@RyanTheTide
RyanTheTide changed the base branch from pmpvote/t600x-agx-vote to integration/aurora November 9, 2026 07:53
Measured on a J316s with the J314s PMP profile (same session): with level 2
in request class 0x21 of entry 0x114, JPEG encode at 1080p dropped from
405-432 fps to 287-303 fps, and 4K moved only from 106-107 to 111-114 fps
(119 with the PMP off). AVD with its request runs 72-73 fps at 1080p and
18 fps at 4K, against 62-63 and 15-16 with the PMP off, so keep that one and
drop the JPEG store until the JPEG request is understood.

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Window 2 rows (M1 Pro J316s with the J314s PMP profile, test kernel = #1290 + this PR at 2795fdb, same session):

row PMP off PMP on + #1290 PMP on + #1290 + AVD/JPEG requests (2795fdb)
AVD h264 / hevc 1080p fps 63 / 62 36 / 36 72 / 73, 72 / 72
AVD h264 / hevc 4K fps 16 / 15 9 / 9 18 / 18
JPEG enc 1080p fps 392 / 411 405 / 432 287 / 297, 303 / 296
JPEG enc 4K fps 119 / 118 107 / 106 111 / 111, 112 / 114
glmark2 10002 - 10193 12166 - 12300 11507 - 12213
ANE MobileNet p50 4.85 ms 3.68 ms 3.68 ms

The AVD request beats PMP off by 13-20%, with bit-identical frames. The JPEG request made 1080p encode 27% slower, so cee332d drops it, which leaves JPEG as it is with #1290. Rows for the new head (with the J316s PMP-enable DTB) and the FLEET suite follow.

@RyanTheTide RyanTheTide changed the title t6000: AVD and JPEG performance requests to the PMP (stacked on #1290) t6000: AVD performance request to the PMP (AVD under PMP -40% -> +16% over PMP off) Nov 9, 2026
The report entry now keeps the word it stores to release its performance
request (dvfs_off) next to the active one; the harness copy of the entry
struct follows.

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Rows for the current head (cee332d DT; the code is unchanged from 2795fdb apart from the harness fix), M1 Pro, 19:01-19:15. The J316s DTB has APPLE_USE_PMP (#1302), on test kernel f4pv2:

row PMP off (window 2) this head
glmark2 10002 - 10193 12079 - 12187
AVD h264 / hevc 1080p fps 63 / 62 71 / 72
AVD 4K fps 16 / 15 18 / 17
JPEG 1080p fps 392 - 411 387 - 405
JPEG 4K fps 118 - 119 107 (unchanged by this PR: 106-107 with #1290 alone)
ANE MobileNet 4.85 ms 3.67 ms

0 AVC, 0 GPU faults, decode md5 identical. FLEET suite on that trial: glmark +21%, and camera, BT, Wi-Fi, sleeps and ANE resume are equal. This PR improves AVD and changes nothing else.

@RyanTheTide
RyanTheTide marked this pull request as ready for review November 9, 2026 08:37
@RyanTheTide
RyanTheTide merged commit f97195f into integration/aurora Nov 9, 2026
2 checks passed
@RyanTheTide
RyanTheTide deleted the pmpvote/t6000-media-votes branch November 9, 2026 08:37
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