All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/4] PCI: Keep AER status in pci_restore_state()
@ 2023-04-20  1:58 Kai-Heng Feng
  2023-04-20  1:58   ` Kai-Heng Feng
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Kai-Heng Feng @ 2023-04-20  1:58 UTC (permalink / raw)
  To: bhelgaas
  Cc: mika.westerberg, koba.ko, sathyanarayanan.kuppuswamy,
	Kai-Heng Feng, linux-pci, linux-kernel

When AER is using the same IRQ as PME, AER interrupt is treated as a
wakeup event and it can disrupt system suspend process.

If that happens, the system will report it's woken up by PME IRQ without
indicating any AER error since AER status is cleared on resume.

So keep the AER status so users can know the system is woken up by AER
instead of PME.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
---
v2:
 - New patch.

 drivers/pci/pci.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 7a67611dc5f4..71aead00fc20 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -1778,7 +1778,6 @@ void pci_restore_state(struct pci_dev *dev)
 	pci_restore_dpc_state(dev);
 	pci_restore_ptm_state(dev);
 
-	pci_aer_clear_status(dev);
 	pci_restore_aer_state(dev);
 
 	pci_restore_config_space(dev);
-- 
2.34.1


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

end of thread, other threads:[~2023-04-20 10:54 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-20  1:58 [PATCH v2 1/4] PCI: Keep AER status in pci_restore_state() Kai-Heng Feng
2023-04-20  1:58 ` [PATCH v2 2/4] PCI/AER: Factor out interrput toggling into helpers Kai-Heng Feng
2023-04-20  1:58   ` Kai-Heng Feng
2023-04-20 10:47   ` Mika Westerberg
2023-04-20 10:47     ` Mika Westerberg
2023-04-20  1:58 ` [PATCH v2 3/4] PCI/AER: Disable AER interrupt on suspend Kai-Heng Feng
2023-04-20  1:58   ` Kai-Heng Feng
2023-04-20 10:50   ` Mika Westerberg
2023-04-20 10:50     ` Mika Westerberg
2023-04-20  1:58 ` [PATCH v2 4/4] PCI/DPC: Disable DPC interrupt during suspend Kai-Heng Feng
2023-04-20  1:58   ` Kai-Heng Feng
2023-04-20 10:51   ` Mika Westerberg
2023-04-20 10:51     ` Mika Westerberg
2023-04-20 10:49 ` [PATCH v2 1/4] PCI: Keep AER status in pci_restore_state() Mika Westerberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.