From ae360ccafb3b14588d39133f79c72e546fe12b6d Mon Sep 17 00:00:00 2001 From: Andreas Fernandez Date: Sun, 29 Nov 2026 16:39:56 +0100 Subject: [PATCH] arm64: dts: apple: t600x: mark the HDMI PHY domain sleep-wakeup-path The HDMI output's DCP keeps its firmware running through suspend-to-idle, and dcp_sleep_hold_phys() puts the output's DP PHY on the wakeup path so that the PHY's power domain stays up with the DCP's own. On t600x that domain is atc3_usb. It is off when the power controller probes, so it gets no GENPD_FLAG_ACTIVE_WAKEUP, and genpd powers it off in the noirq phase anyway. When the firmware next touches the PHY, the SoC hangs. On a MacBook Pro 14" M1 Pro (J314s) with an HDMI display attached, the first s2idle sleep after locking the session hung 6 times out of 6. It hangs when the devices are held suspended across the point about 30 s after the HDMI display was powered off, which the lock does: a pm_test=platform hold of 40 s right after the power-off hung 3 times out of 3, while a hold of 5 s, or of 40 s starting 40 s later, passed. With atc3_usb held, the 40 s hold passes and the lock-then-sleep sequence woke 5 times out of 5. Mark ps_atc3_usb apple,sleep-wakeup-path, as the t604x common_dp domains are. genpd holds the domain only while a device under it is on the wakeup path, so nothing changes without an HDMI link. Signed-off-by: Andreas Fernandez --- arch/arm64/boot/dts/apple/t600x-pmgr.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t600x-pmgr.dtsi b/arch/arm64/boot/dts/apple/t600x-pmgr.dtsi index e1abbd1c6dfe1..e7fa540f35abd 100644 --- a/arch/arm64/boot/dts/apple/t600x-pmgr.dtsi +++ b/arch/arm64/boot/dts/apple/t600x-pmgr.dtsi @@ -2171,6 +2171,8 @@ #power-domain-cells = <0>; #reset-cells = <0>; label = DIE_LABEL(atc3_usb); + /* The HDMI DCP keeps driving this PHY through s2idle. */ + apple,sleep-wakeup-path; power-domains = <&DIE_NODE(ps_atc3_usb_aon)>, <&DIE_NODE(ps_atc3_common)>; }; };