[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220902233543.390890-1-helgaas@kernel.org>
Date: Fri, 2 Sep 2022 18:35:40 -0500
From: Bjorn Helgaas <helgaas@...nel.org>
To: Kai-Heng Feng <kai.heng.feng@...onical.com>,
Rajvi Jingar <rajvi.jingar@...ux.intel.com>,
"Rafael J . Wysocki" <rafael@...nel.org>
Cc: Koba Ko <koba.ko@...onical.com>,
Mika Westerberg <mika.westerberg@...ux.intel.com>,
"David E . Box" <david.e.box@...ux.intel.com>,
Sathyanarayanan Kuppuswamy
<sathyanarayanan.kuppuswamy@...ux.intel.com>,
linux-pci@...r.kernel.org, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org, Bjorn Helgaas <bhelgaas@...gle.com>
Subject: [PATCH v2 0/3] PCI/PM: Always disable PTM for all devices during suspend
From: Bjorn Helgaas <bhelgaas@...gle.com>
We currently disable PTM for Root Ports during suspend. Leaving PTM
enabled for downstream devices causes UR errors if they send PTM Requests.
The intent of this series is to:
- Unconditionally disable PTM during suspend (even if the driver saves
its own state) by moving the disable from pci_prepare_to_sleep() to
pci_pm_suspend().
- Disable PTM for all devices by removing the Root Port condition and
doing it early in the suspend paths.
- Explicitly re-enable PTM during resume, which requires new support in
pci_enable_ptm() for Root Ports and Switch Upstream Ports.
Bjorn Helgaas (3):
PCI/PTM: Preserve PTM Root Select
PCI/PTM: Implement pci_enable_ptm() for Root Ports, Switch Upstream
Ports
PCI/PM: Always disable PTM for all devices during suspend
drivers/pci/pci-driver.c | 14 ++++++++++++++
drivers/pci/pci.c | 20 --------------------
drivers/pci/pcie/ptm.c | 36 ++++++++++++++++++++++++++++--------
3 files changed, 42 insertions(+), 28 deletions(-)
--
2.25.1
Powered by blists - more mailing lists