public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] PCI/PM: Always disable PTM for all devices during suspend
@ 2022-09-02 23:35 Bjorn Helgaas
  2022-09-02 23:35 ` [PATCH v2 1/3] PCI/PTM: Preserve PTM Root Select Bjorn Helgaas
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Bjorn Helgaas @ 2022-09-02 23:35 UTC (permalink / raw)
  To: Kai-Heng Feng, Rajvi Jingar, Rafael J . Wysocki
  Cc: Koba Ko, Mika Westerberg, David E . Box,
	Sathyanarayanan Kuppuswamy, linux-pci, linux-pm, linux-kernel,
	Bjorn Helgaas

From: Bjorn Helgaas <bhelgaas@google.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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-09-03 17:42 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-02 23:35 [PATCH v2 0/3] PCI/PM: Always disable PTM for all devices during suspend Bjorn Helgaas
2022-09-02 23:35 ` [PATCH v2 1/3] PCI/PTM: Preserve PTM Root Select Bjorn Helgaas
2022-09-02 23:57   ` Sathyanarayanan Kuppuswamy
2022-09-02 23:35 ` [PATCH v2 2/3] PCI/PTM: Implement pci_enable_ptm() for Root Ports, Switch Upstream Ports Bjorn Helgaas
2022-09-02 23:56   ` Sathyanarayanan Kuppuswamy
2022-09-03 17:40   ` Rafael J. Wysocki
2022-09-03 17:42     ` Rafael J. Wysocki
2022-09-02 23:35 ` [PATCH v2 3/3] PCI/PM: Always disable PTM for all devices during suspend Bjorn Helgaas
2022-09-02 23:59   ` Sathyanarayanan Kuppuswamy
2022-09-03 17:13     ` Rafael J. Wysocki
2022-09-03  4:07   ` kernel test robot
2022-09-03  4:18   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox