amd-xgbe: Improve power management for S0i3
Status from this message: This series was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 0 repliesApplied 2/2
- v12 patches 0 repliesSuperseded
Changes in v2 from the cover letter
- 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.
Patches in v2 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | amd-xgbe: Simplify powerdown/powerup pathsdrivers/ drivers/ drivers/ +1 more | +32 | 0 replies | Applied |
| 2/2 | amd-xgbe: add PCI power management for S0i3 supportdrivers/ | +67 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH net-next v2 0/2] amd-xgbe: Improve power management for S0i3
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(-)
Signature · 1 line
2.34.1