[PATCH net-next v2 0/2] amd-xgbe: Improve power management for S0i3
From: Raju Rangoju
Date: Sun Mar 08 2026 - 05:29:25 EST
Improve the amd-xgbe power management handling to allow AMD platforms to
reach the deepest suspend state (S0i3) when modern standby is used.
The first patch cleans up the xgbe_powerdown() and xgbe_powerup()
helpers by removing an unused caller distinction and aligning the
ordering of operations with xgbe_stop().
The second patch adds proper PCI power management operations, following
the standard PCI PM model, so that the device can be cleanly put into
D3 and resumed back to D0. Without this, the amd_pmc driver reports:
"Last suspend didn't reach deepest state"
when the amd-xgbe driver is enabled.
These changes have been tested on AMD platforms using S0i3 modern
standby.
---
Changes since v1:
- Fix compiler warnings when CONFIG_PM_SLEEP is not enabled.
- Added a new helper function xgbe_pci_synchronize_irqs() that
synchronizes all registered IRQs to ensure that no pending IRQs are
left when the device is suspended.
Raju Rangoju (2):
amd-xgbe: Simplify powerdown/powerup paths
amd-xgbe: add PCI power management for S0i3 support
drivers/net/ethernet/amd/xgbe/xgbe-drv.c | 47 +++++------
drivers/net/ethernet/amd/xgbe/xgbe-pci.c | 83 +++++++++++++++++--
drivers/net/ethernet/amd/xgbe/xgbe-platform.c | 4 +-
drivers/net/ethernet/amd/xgbe/xgbe.h | 8 +-
4 files changed, 99 insertions(+), 43 deletions(-)
--
2.34.1