pmdomain: rockchip: mark PD_PIPE as active wakeup on RK3568
Subsystems (2)
PATCH 1/1 pmdomain: rockchip: mark PD_PIPE as active wakeup on RK3568
The PD_PIPE power domain on RK3568 hosts the XPCS, the PCIe controllers and the SATA controllers. All of them can act as wakeup sources for the system:
- the XPCS for MAC WoL, through the SGMII link
- the PCIe controllers for PME#
- the SATA controllers for hotplug wake
The domain is registered with active_wakeup = false, so genpd powers it down during system suspend even when a consumer is on the wakeup path. That kills the XPCS and the SerDes, which breaks MAC WoL on RK3568 SGMII boards, and it also powers down the PCIe and SATA controllers while their drivers still expect the link to be alive.
Mark PD_PIPE as active_wakeup so that genpd honours the wakeup path of its consumers. Consumers that call device_set_wakeup_path() keep the domain powered; consumers that do not mark themselves as wakeup sources are unaffected and the domain is still powered down when nothing needs it.
Several other Rockchip SoCs already mark their PCIe and USB power domains as active wakeup, for example RK3588's pcie and usb domains and RK3576's usb domain. PD_PIPE hosts the same kind of wakeup-capable controllers on RK3568, so this follows the same pattern.
--- drivers/pmdomain/rockchip/pm-domains.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pmdomain/rockchip/pm-domains.c +1 -1
@@ -1296,7 +1296,7 @@ static const struct rockchip_domain_info rk3568_pm_domains[] = { [RK3568_PD_VPU] = DOMAIN_RK3568("vpu", BIT(2), BIT(6), false, false), [RK3568_PD_RKVDEC] = DOMAIN_RK3568("vdec", BIT(4), BIT(8), false, false), [RK3568_PD_RKVENC] = DOMAIN_RK3568("venc", BIT(3), BIT(7), false, false), - [RK3568_PD_PIPE] = DOMAIN_RK3568("pipe", BIT(8), BIT(11), false, false), + [RK3568_PD_PIPE] = DOMAIN_RK3568("pipe", BIT(8), BIT(11), true, false), };static const struct rockchip_domain_info rk3576_pm_domains[] = {
Signature · 1 line
2.47.3
Quoted 36 lines · Coia Prant
The
PD_PIPEpower domain on RK3568 hosts the XPCS, the PCIe controllers and the SATA controllers. All of them can act as wakeup sources for the system:- the XPCS for MAC WoL, through the SGMII link
- the PCIe controllers for PME#
- the SATA controllers for hotplug wakeThe domain is registered with
active_wakeup= false, so genpd powers it down during system suspend even when a consumer is on the wakeup path. That kills the XPCS and the SerDes, which breaks MAC WoL on RK3568 SGMII boards, and it also powers down the PCIe and SATA controllers while their drivers still expect the link to be alive.Mark
PD_PIPEasactive_wakeupso that genpd honours the wakeup path of its consumers. Consumers that calldevice_set_wakeup_path()keep the domain powered; consumers that do not mark themselves as wakeup sources are unaffected and the domain is still powered down when nothing needs it.Several other Rockchip SoCs already mark their PCIe and USB power domains as active wakeup, for example RK3588's pcie and usb domains and RK3576's usb domain.
PD_PIPEhosts the same kind of wakeup-capable controllers on RK3568, so this follows the same pattern.Signed-off-by Coia Prant <[email protected]>---
drivers/pmdomain/rockchip/pm-domains.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/pmdomain/rockchip/pm-domains.c +0
-0
drivers/pmdomain/rockchip/pm-domains.c static const struct rockchip_domain_info rk3568_pm_domains[] = { · line 1302
Quoted 8 lines
drivers/pmdomain/rockchip/pm-domains.c +1
-1@@ -1296,7 +1296,7 @@ static const struct rockchip_domain_info rk3568_pm_domains[] = { [RK3568_PD_VPU] = DOMAIN_RK3568("vpu", BIT(2), BIT(6), false, false), [RK3568_PD_RKVDEC] = DOMAIN_RK3568("vdec", BIT(4), BIT(8), false, false), [RK3568_PD_RKVENC] = DOMAIN_RK3568("venc", BIT(3), BIT(7), false, false), - [RK3568_PD_PIPE] = DOMAIN_RK3568("pipe", BIT(8), BIT(11), false, false), + [RK3568_PD_PIPE] = DOMAIN_RK3568("pipe", BIT(8), BIT(11), true, false), };static const struct rockchip_domain_info rk3576_pm_domains[] = {
Hi,
Gentle ping on this patch. It was sent on Sep 25, and linux-pm Patchwork shows it as "Handled Elsewhere", but I can't find it merged in linux-pm, linux-rockchip, linux-next or mainline, and I haven't received any review feedback.
Thanks,
Coia
Quoted 22 lines · Coia Prant <[email protected]> 于2026年10月6日周二 07:27写道:
Quoted 20 lines · Coia Prant
The
PD_PIPEpower domain on RK3568 hosts the XPCS, the PCIe controllers and the SATA controllers. All of them can act as wakeup sources for the system:- the XPCS for MAC WoL, through the SGMII link
- the PCIe controllers for PME#
- the SATA controllers for hotplug wakeThe domain is registered with
active_wakeup= false, so genpd powers it down during system suspend even when a consumer is on the wakeup path. That kills the XPCS and the SerDes, which breaks MAC WoL on RK3568 SGMII boards, and it also powers down the PCIe and SATA controllers while their drivers still expect the link to be alive.Mark
PD_PIPEasactive_wakeupso that genpd honours the wakeup path of its consumers. Consumers that calldevice_set_wakeup_path()keep the domain powered; consumers that do not mark themselves as wakeup sources are unaffected and the domain is still powered down when nothing needs it.
Quoted 7 lines
Quoted 7 lines
Several other Rockchip SoCs already mark their PCIe and USB power domains as active wakeup, for example RK3588's pcie and usb domains and RK3576's usb domain.
PD_PIPEhosts the same kind of wakeup-capable controllers on RK3568, so this follows the same pattern.Signed-off-by Coia Prant <[email protected]>
Hi Ulf,
Gentle ping on this patch. It was sent on Sep 25 and Patchwork shows it as "Handled Elsewhere", but I can't find it merged in linux-pm, linux-rockchip, linux-next or mainline, and I haven't received any review feedback.
Since then, the XPCS driver and DTS that depend on PD_PIPE staying powered across suspend have been merged and sent upstream:
- XPCS driver in net-next: https://git.kernel.org/netdev/net-next/c/5e91edfb0e45
Could you let me know which tree this should go through, or whether it was already picked somewhere? If it needs to be routed differently, I'm happy to resend it.
Thanks,
Coia
Quoted 42 lines · Coia Prant
Quoted 22 lines · Coia Prant <[email protected]> 于2026年10月6日周二 07:27写道:
Quoted 20 lines · Coia Prant
The
PD_PIPEpower domain on RK3568 hosts the XPCS, the PCIe controllers and the SATA controllers. All of them can act as wakeup sources for the system:- the XPCS for MAC WoL, through the SGMII link
- the PCIe controllers for PME#
- the SATA controllers for hotplug wakeThe domain is registered with
active_wakeup= false, so genpd powers it down during system suspend even when a consumer is on the wakeup path. That kills the XPCS and the SerDes, which breaks MAC WoL on RK3568 SGMII boards, and it also powers down the PCIe and SATA controllers while their drivers still expect the link to be alive.Mark
PD_PIPEasactive_wakeupso that genpd honours the wakeup path of its consumers. Consumers that calldevice_set_wakeup_path()keep the domain powered; consumers that do not mark themselves as wakeup sources are unaffected and the domain is still powered down when nothing needs it.Quoted 7 lines
Quoted 7 lines
Several other Rockchip SoCs already mark their PCIe and USB power domains as active wakeup, for example RK3588's pcie and usb domains and RK3576's usb domain.
PD_PIPEhosts the same kind of wakeup-capable controllers on RK3568, so this follows the same pattern.Signed-off-by Coia Prant <[email protected]>Hi Ulf,
Gentle ping on this patch. It was sent on Sep 25 and Patchwork shows it as "Handled Elsewhere", but I can't find it merged in linux-pm, linux-rockchip, linux-next or mainline, and I haven't received any review feedback.
Since then, the XPCS driver and DTS that depend on
PD_PIPEstaying powered across suspend have been merged and sent upstream:
Quoted 8 lines
- XPCS driver in net-next: https://git.kernel.org/netdev/net-next/c/5e91edfb0e45
Could you let me know which tree this should go through, or whether it was already picked somewhere? If it needs to be routed differently, I'm happy to resend it.
Thanks,
Coia
Apologize for the huge delay. I was waiting for an ack from some of the rockchip maintainers.
Anyway, this looks fine to me so, applied for next, thanks!
Kind regards
Uffe
Heiko Stuebner
maintainerAm Freitag, 13. November 2026, 18:48:00 Mitteleuropäische Normalzeit schrieb Ulf Hansson:
Quoted 49 lines · Coia Prant
Quoted 48 lines
Quoted 22 lines · Coia Prant <[email protected]> 于2026年10月6日周二 07:27写道:
Quoted 20 lines · Coia Prant
The
PD_PIPEpower domain on RK3568 hosts the XPCS, the PCIe controllers and the SATA controllers. All of them can act as wakeup sources for the system:- the XPCS for MAC WoL, through the SGMII link
- the PCIe controllers for PME#
- the SATA controllers for hotplug wakeThe domain is registered with
active_wakeup= false, so genpd powers it down during system suspend even when a consumer is on the wakeup path. That kills the XPCS and the SerDes, which breaks MAC WoL on RK3568 SGMII boards, and it also powers down the PCIe and SATA controllers while their drivers still expect the link to be alive.Mark
PD_PIPEasactive_wakeupso that genpd honours the wakeup path of its consumers. Consumers that calldevice_set_wakeup_path()keep the domain powered; consumers that do not mark themselves as wakeup sources are unaffected and the domain is still powered down when nothing needs it.Quoted 7 lines
Quoted 7 lines
Several other Rockchip SoCs already mark their PCIe and USB power domains as active wakeup, for example RK3588's pcie and usb domains and RK3576's usb domain.
PD_PIPEhosts the same kind of wakeup-capable controllers on RK3568, so this follows the same pattern.Signed-off-by Coia Prant <[email protected]>Hi Ulf,
Gentle ping on this patch. It was sent on Sep 25 and Patchwork shows it as "Handled Elsewhere", but I can't find it merged in linux-pm, linux-rockchip, linux-next or mainline, and I haven't received any review feedback.
Since then, the XPCS driver and DTS that depend on
PD_PIPEstaying powered across suspend have been merged and sent upstream:- XPCS driver in net-next: https://git.kernel.org/netdev/net-next/c/5e91edfb0e45
Could you let me know which tree this should go through, or whether it was already picked somewhere? If it needs to be routed differently, I'm happy to resend it.
Quoted 7 lines
Quoted 2 lines
Thanks,
CoiaApologize for the huge delay. I was waiting for an ack from some of the rockchip maintainers.
Anyway, this looks fine to me so, applied for next, thanks!
got lost in my inbox ... and for the record yep, looks correct
Heiko