Repository navigation
soc: apple: t6030: restore the GPU's AGX PMP request entry - #4028
Draft
RyanTheTide wants to merge 2 commits into
Draft
RyanTheTide wants to merge 2 commits into
RyanTheTide wants to merge 2 commits into
Conversation
Commit 7d82fde ("drm/apple: restore the T6030 firmware 27.2 display after sleep") brought in gate_gpu_agx_entry(), which links a T6030 GPU to the PMP report entry at reg 4 (apple,pmp-report-entry), but not the entry itself: neither T6030 PMP overlay defines report@4. The gate therefore never adds the link, the g16 driver's PMP request calls find no entry and return without writing anything, and the GPU runs without the PMP's AGX request on the 27.2 firmware. macOS 27.2 on J516s holds that request (PTD request bit 4, soc-device record 4 in the ADT iop-pmp-nub) while its GPU driver runs, withdraws it before GFX goes off for a sleep and makes it again once GFX is back. On the 27.2 firmware the J516s GPU has been seen held at its lowest performance state (S1, 338 MHz) under load on kernels without the request. Add the entry, as it was written for the gate, to both T6030 PMP overlays. Fixes: 7d82fde ("drm/apple: restore the T6030 firmware 27.2 display after sleep") Signed-off-by: DjDeveloperr <hey@djdev.me> Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
The T6030 PMP overlays now carry the GPU's AGX request entry (report@4). The PMP start never seeds or acknowledges it: the GPU driver makes and withdraws it through apple_pmp_report_entry_request(). Leave it out of the four-entry startup graph the test models, and require it to stay a plain, unseeded entry at reg 4. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
RyanTheTide
marked this pull request as draft
December 3, 2026 00:56
Contributor
|
J516s (T6030, M3 Pro) A/B check at exact head
|
This branch has not been deployed
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.
Problem: The T6030 GPU driver and display gate on main are written to make the GPU's PMP AGX request (PTD request bit 4), which macOS 27.2 on J516s holds while its GPU runs. The gate links the GPU to the PMP report entry at reg 4 (
gate_gpu_agx_entry()), and g16 sets the request after its backend starts (shared.pmp_request(true)) and withdraws it around sleep. Neither T6030 PMP overlay defines report@4, though. The gate finds nothing to link, and every request call returns 0 without writing anything.This is not the cause of the J516s S1 (338 MHz) nightly gap. Dj confirmed on J516s that the gap comes from a stale boot loader device tree without the
macsmc_soc_dietrip points, so the cooling backstop holds S1. With main's device tree, J516s reaches S8 (1380 MHz) without this request. This PR stays a draft until a J516s row shows what the request changes.Change: Add the AGX request entry (report@4,
pmp-agx) to both T6030 PMP overlays, exactly as Dj wrote it in ba42396 alongside the gate change. The #3815 squash (7d82fde) kept only the gate half. The host graph test now leaves this entry out of the PMP startup graph, which it is not part of, and checks that it stays an unseeded entry at reg 4.Tested: buildbox only, at 92cab99 (no Mac row yet). Both overlays compile with report@4. t6030-pmp-supplier host test PASS. t6030-pmp-graph host test PASS: 27 cases, and all 25 mutations are caught. checkpatch --strict clean on both commits.
Risk: Two-way door. T6030 only, and only on boots where the display gate installs the PMP overlay (J516s/J514s with the 27.2 handoff). The GPU then sets PTD request bit 4 while its firmware runs. The gate also removes the loader's apple,no-auto-pm from GFX on those boots.
Still to run: