From 6b3e4b88af969304dff340818181e3ba64e7ea86 Mon Sep 17 00:00:00 2001 From: Andreas Fernandez Date: Tue, 1 Dec 2026 20:16:04 +0100 Subject: [PATCH 1/3] dt-bindings: power: apple,pmp-report: add apple,sleep-wakeup-path A display coprocessor whose power domain is a PMP report entry keeps its firmware running through s2idle and puts itself on the wakeup path for it. Let the entry say so, as apple,sleep-wakeup-path says it for a PMGR power state, so that the entry and the power states above it stay on while the firmware runs. Signed-off-by: Andreas Fernandez --- .../bindings/power/apple,t8140-pmp-report.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/power/apple,t8140-pmp-report.yaml b/Documentation/devicetree/bindings/power/apple,t8140-pmp-report.yaml index 9e0847cb04b0a..2186802c66215 100644 --- a/Documentation/devicetree/bindings/power/apple,t8140-pmp-report.yaml +++ b/Documentation/devicetree/bindings/power/apple,t8140-pmp-report.yaml @@ -258,6 +258,15 @@ patternProperties: switched with interrupts disabled. Setting the state takes a spinlock and polls the acknowledgment atomically. + apple,sleep-wakeup-path: + type: boolean + description: + The consumer of this entry can keep its firmware running through a + system sleep and is then on the wakeup path. The OS keeps the entry, + and the power states it is a child of, on through system sleep while + its consumer is on the wakeup path, as apple,sleep-wakeup-path does + for a PMGR power state. + required: - compatible - reg From 71804777c60aae195b08a29ec4c68e709e0317cd Mon Sep 17 00:00:00 2001 From: Andreas Fernandez Date: Tue, 1 Dec 2026 20:16:04 +0100 Subject: [PATCH 2/3] pmdomain: apple: pmp-report: keep an entry on for a wakeup-path consumer genpd keeps a domain on through system sleep for a device on the wakeup path only if the domain is active-wakeup, and only apple,always-on entries were. An entry without it is powered off in the noirq phase although its consumer asked to stay powered: the request is withdrawn and the PMGR states above it go off under a firmware that still runs. Make an entry with apple,sleep-wakeup-path active-wakeup too. Nothing else changes for it: it is not seeded at the PMP start and not requested at probe. Signed-off-by: Andreas Fernandez --- drivers/pmdomain/apple/pmp-report.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/pmdomain/apple/pmp-report.c b/drivers/pmdomain/apple/pmp-report.c index c790606badd8a..d24ac7c4f0f1c 100644 --- a/drivers/pmdomain/apple/pmp-report.c +++ b/drivers/pmdomain/apple/pmp-report.c @@ -3718,6 +3718,14 @@ static int apple_pmp_report_entry_probe(struct platform_device *pdev) ent->sleep_release = false; } } + /* + * A consumer whose firmware keeps running through a system sleep puts itself on the + * wakeup path, as a PMGR state's consumer does for apple,sleep-wakeup-path. Keep the + * entry on with it then, and with the entry its parent power states: powered off in the + * noirq phase, they would take the firmware's power while it runs. + */ + if (of_property_read_bool(node, "apple,sleep-wakeup-path")) + ent->genpd.flags |= GENPD_FLAG_ACTIVE_WAKEUP; ent->genpd.power_on = apple_pmp_report_entry_power_on; ent->genpd.power_off = apple_pmp_report_entry_power_off; From 85e09a42ed5e0cabb40fbec934f9fafc395a7e9a Mon Sep 17 00:00:00 2001 From: Andreas Fernandez Date: Tue, 1 Dec 2026 20:16:05 +0100 Subject: [PATCH 3/3] arm64: dts: apple: t6000: keep dcpext1 powered through s2idle With APPLE_USE_PMP (J314s, J316s) dcpext1 sits in the pmp-dispext1 report entry, which unlike disp0's and dispext0's is not always-on. Its DCP stays on the wakeup path through s2idle, with its firmware running, but genpd powered the entry and dispext1's power states off in the noirq phase all the same. The firmware lost its power unseen, and the next deep sleep could not park it: link sleep timed out, IOP IDLE failed, and the block went down with it for the rest of the boot. Mark the entry apple,sleep-wakeup-path. dcpext1 then goes through every sleep as dcpext0 does. Signed-off-by: Andreas Fernandez --- arch/arm64/boot/dts/apple/t6000.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t6000.dtsi b/arch/arm64/boot/dts/apple/t6000.dtsi index 07ae672a27c96..07f20a5b445e2 100644 --- a/arch/arm64/boot/dts/apple/t6000.dtsi +++ b/arch/arm64/boot/dts/apple/t6000.dtsi @@ -85,6 +85,16 @@ reg-names = "report", "ane-dvfs"; }; +/* + * The external DCPs' firmware runs through s2idle and a sleep given up, and the DCP puts + * itself on the wakeup path for it. With APPLE_USE_PMP this entry is dcpext1's power domain: + * keep it, and the dispext1 power states under it, on then. dispext0's and disp0's entries + * have that from apple,always-on. + */ +&pmp_report_dispext1 { + apple,sleep-wakeup-path; +}; + #ifdef APPLE_USE_PMP /* * The video encoder, AVD, the JPEG codecs, the scaler and the ProRes codec