From: Raju Rangoju <Raju.Rangoju@amd.com>
To: <netdev@vger.kernel.org>
Cc: <linux-kernel@vger.kernel.org>, <pabeni@redhat.com>,
<kuba@kernel.org>, <edumazet@google.com>, <davem@davemloft.net>,
<andrew+netdev@lunn.ch>, "Raju Rangoju" <Raju.Rangoju@amd.com>
Subject: [PATCH net-next v2 0/2] amd-xgbe: Improve power management for S0i3
Date: Sun, 8 Mar 2026 14:58:49 +0530 [thread overview]
Message-ID: <20260308092851.1510214-1-Raju.Rangoju@amd.com> (raw)
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
next reply other threads:[~2026-03-08 9:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-08 9:28 Raju Rangoju [this message]
2026-03-08 9:28 ` [PATCH net-next v2 1/2] amd-xgbe: Simplify powerdown/powerup paths Raju Rangoju
2026-03-08 9:28 ` [PATCH net-next v2 2/2] amd-xgbe: add PCI power management for S0i3 support Raju Rangoju
2026-03-11 3:00 ` [PATCH net-next v2 0/2] amd-xgbe: Improve power management for S0i3 patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260308092851.1510214-1-Raju.Rangoju@amd.com \
--to=raju.rangoju@amd.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox