linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V1] PCI/AER: Configure ECRC only AER is native
@ 2023-01-11 20:31 Vidya Sagar
  2023-01-11 21:42 ` Sathyanarayanan Kuppuswamy
  2023-01-12  7:21 ` [PATCH V2] " Vidya Sagar
  0 siblings, 2 replies; 12+ messages in thread
From: Vidya Sagar @ 2023-01-11 20:31 UTC (permalink / raw)
  To: bhelgaas, ruscur, oohall, treding, jonathanh
  Cc: linux-pci, linuxppc-dev, linux-kernel, vsethi, kthota,
	mmaddireddy, vidyas, sagar.tv

As the ECRC configuration bits are part of AER registers, configure
ECRC only if AER is natively owned by the kernel.

Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
---
 drivers/pci/pcie/aer.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c
index e2d8a74f83c3..730b47bdcdef 100644
--- a/drivers/pci/pcie/aer.c
+++ b/drivers/pci/pcie/aer.c
@@ -184,6 +184,9 @@ static int disable_ecrc_checking(struct pci_dev *dev)
  */
 void pcie_set_ecrc_checking(struct pci_dev *dev)
 {
+	if (!pcie_aer_is_native(dev))
+		return;
+
 	switch (ecrc_policy) {
 	case ECRC_POLICY_DEFAULT:
 		return;
-- 
2.17.1


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

end of thread, other threads:[~2023-01-12 18:56 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-11 20:31 [PATCH V1] PCI/AER: Configure ECRC only AER is native Vidya Sagar
2023-01-11 21:42 ` Sathyanarayanan Kuppuswamy
2023-01-11 23:10   ` Bjorn Helgaas
2023-01-11 23:27     ` Sathyanarayanan Kuppuswamy
2023-01-12  3:33       ` Vidya Sagar
2023-01-12  3:48         ` Sathyanarayanan Kuppuswamy
2023-01-12  4:59           ` Vidya Sagar
2023-01-12  5:06             ` Sathyanarayanan Kuppuswamy
2023-01-12  7:12               ` Vidya Sagar
2023-01-12 18:23       ` Bjorn Helgaas
2023-01-12  7:21 ` [PATCH V2] " Vidya Sagar
2023-01-12 18:25   ` Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).