linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] PCI/VMD: Use the more reliable method for setting the AER
@ 2016-10-07 17:26 Jon Derrick
  2016-10-07 17:26 ` [PATCH 2/2] PCI/Quirks: Imply that other users can use the no-aer-sid quirk Jon Derrick
  2016-10-07 17:45 ` [PATCH 1/2] PCI/VMD: Use the more reliable method for setting the AER Keith Busch
  0 siblings, 2 replies; 4+ messages in thread
From: Jon Derrick @ 2016-10-07 17:26 UTC (permalink / raw)
  To: helgaas; +Cc: Jon Derrick, keith.busch, linux-pci

Instead of relying on the domain being >= 0x10000, use the member of the
pci sysdata that identifies a VMD root port bus.
---
 drivers/pci/quirks.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index edc7f96..713035f 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -4438,8 +4438,7 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x443, quirk_intel_qat_vf_cap);
  */
 static void quirk_no_aersid(struct pci_dev *pdev)
 {
-	/* VMD Domain */
-	if (pdev->bus->sysdata && pci_domain_nr(pdev->bus) >= 0x10000)
+	if (is_vmd(pdev->bus))
 		pdev->bus->bus_flags |= PCI_BUS_FLAGS_NO_AERSID;
 }
 DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x2030, quirk_no_aersid);
-- 
1.8.3.1

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

end of thread, other threads:[~2016-10-07 17:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-07 17:26 [PATCH 1/2] PCI/VMD: Use the more reliable method for setting the AER Jon Derrick
2016-10-07 17:26 ` [PATCH 2/2] PCI/Quirks: Imply that other users can use the no-aer-sid quirk Jon Derrick
2016-10-07 17:45 ` [PATCH 1/2] PCI/VMD: Use the more reliable method for setting the AER Keith Busch
2016-10-07 17:46   ` Jon Derrick

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).