From 1c639c4956dc5ddca75a1226ec9991ad4886a5ad Mon Sep 17 00:00:00 2001 From: DjDeveloperr Date: Thu, 26 Nov 2026 18:12:00 -0500 Subject: [PATCH 1/2] soc: apple: t6030: restore the GPU's AGX PMP request entry Commit 7d82fde95f17 ("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: 7d82fde95f17 ("drm/apple: restore the T6030 firmware 27.2 display after sleep") Signed-off-by: DjDeveloperr Signed-off-by: Ryan Murray --- drivers/soc/apple/t6030-j516s-pmp.dtso | 15 +++++++++++++++ drivers/soc/apple/t6030-pmp.dtso | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/drivers/soc/apple/t6030-j516s-pmp.dtso b/drivers/soc/apple/t6030-j516s-pmp.dtso index 2100879ee7285..10b2a0c6b011a 100644 --- a/drivers/soc/apple/t6030-j516s-pmp.dtso +++ b/drivers/soc/apple/t6030-j516s-pmp.dtso @@ -78,6 +78,21 @@ status = "disabled"; }; + /* + * The GPU's request: AGX, soc-device record 4 in the ADT + * iop-pmp-nub. macOS 27.2 holds it while its GPU driver runs, + * withdraws it before GFX goes off for a sleep and makes it + * again once GFX is back. The gate links the GPU to it + * (apple,pmp-report-entry); the GPU driver makes it. + */ + pmp_report_agx: report@4 { + compatible = "apple,t6000-pmp-v2-report-entry"; + reg = <0x4>; + label = "pmp-agx"; + #power-domain-cells = <0>; + phandle = <0x103>; + }; + pmp_report_ans: report@10 { compatible = "apple,t6000-pmp-v2-report-entry"; reg = <0x10>; diff --git a/drivers/soc/apple/t6030-pmp.dtso b/drivers/soc/apple/t6030-pmp.dtso index 9aa9b3127e9ba..ea468db479518 100644 --- a/drivers/soc/apple/t6030-pmp.dtso +++ b/drivers/soc/apple/t6030-pmp.dtso @@ -78,6 +78,21 @@ status = "disabled"; }; + /* + * The GPU's request: AGX, soc-device record 4 in the ADT + * iop-pmp-nub. macOS 27.2 holds it while its GPU driver runs, + * withdraws it before GFX goes off for a sleep and makes it + * again once GFX is back. The gate links the GPU to it + * (apple,pmp-report-entry); the GPU driver makes it. + */ + pmp_report_agx: report@4 { + compatible = "apple,t6000-pmp-v2-report-entry"; + reg = <0x4>; + label = "pmp-agx"; + #power-domain-cells = <0>; + phandle = <0x103>; + }; + pmp_report_ans: report@10 { compatible = "apple,t6000-pmp-v2-report-entry"; reg = <0x10>; From 92cab990217d00b2d5dbaa65ed195d39a8edfa6c Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Thu, 3 Dec 2026 11:55:42 +1100 Subject: [PATCH 2/2] tools/asahi: keep the T6030 AGX request out of the PMP start graph test 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 --- tools/asahi/t6030-pmp-graph-tests.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/asahi/t6030-pmp-graph-tests.py b/tools/asahi/t6030-pmp-graph-tests.py index 6e6d1829f7cf9..c92405e9acdd2 100644 --- a/tools/asahi/t6030-pmp-graph-tests.py +++ b/tools/asahi/t6030-pmp-graph-tests.py @@ -35,11 +35,22 @@ def read_source(path): source = read_source(extract.REPORT) overlay = (ROOT / 'drivers/soc/apple/t6030-pmp.dtso').read_text() entries = [] + gpu_requests = [] for node in re.findall(r'report@[0-9a-f]+\s*\{(.*?)\n\s*\};', overlay, re.S): reg = int(re.search(r'reg = <(0x[0-9a-f]+|[0-9]+)>', node)[1], 0) + # The GPU's AGX request (reg 4) is made by the GPU driver through + # apple_pmp_report_entry_request(), never by the PMP start: keep it out + # of the startup graph, and require it to stay out of the seed. + if 'label = "pmp-agx";' in node: + gpu_requests.append(node) + assert reg == 4 + assert not any(p in node for p in ('apple,always-on;', 'apple,no-ack;', + 'apple,defer-startup-ack;', 'apple,irq-safe;')) + continue entries.append((reg, 'apple,always-on;' in node, 'apple,no-ack;' in node, 'apple,defer-startup-ack;' in node, 'apple,irq-safe;' in node)) assert len(entries) == 4 + assert len(gpu_requests) == 1 entry_data = ',\n'.join('{%d, %d, %d, %d, %d}' % e for e in entries) names = ['static int apple_pmp_report_record(', 'static int apple_pmp_report_bit(', 'static int apple_pmp_start_check_layout(', 'static int apple_pmp_start_describe(', 'static void apple_pmp_start_finish(',