Repository navigation
t6000: AVD performance request to the PMP (AVD under PMP -40% -> +16% over PMP off) - #1293
Merged
Merged
Conversation
…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
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
Contributor
Author
|
Window 2 rows (M1 Pro J316s with the J314s PMP profile, test kernel = #1290 + this PR at 2795fdb, same session):
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. |
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
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
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. |
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.
Summary
Follows #1290 (AGX vote, merged). With
APPLE_USE_PMPon 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:apple,dvfslevel can now sit in a request-class lane:apple,dvfs-request-class0x21..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).Boards without
APPLE_USE_PMPare 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