x86/PCI: Use is_vmd() rather than relying on the domain number
authorJon Derrick <jonathan.derrick@intel.com>
Thu, 17 Aug 2017 18:10:13 +0000 (12:10 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 30 Aug 2017 21:41:49 +0000 (16:41 -0500)
Use the is_vmd() predicate to identify devices below a VMD host rather than
relying on the domain number.

Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/x86/pci/fixup.c

index 4c2e318845ba2edbee03d99a4f7162a241f3d27c..f2228b150faa69caf10bc40574897597e3cd686a 100644 (file)
@@ -628,7 +628,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x8c10, quirk_apple_mbp_poweroff);
 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);