x86/PCI: VMD: Request userspace control of PCIe hotplug indicators
[cascardo/linux.git] / arch / x86 / pci / common.c
index 7b6a9d1..a4fdfa7 100644 (file)
@@ -677,6 +677,12 @@ static void set_dma_domain_ops(struct pci_dev *pdev)
 static void set_dma_domain_ops(struct pci_dev *pdev) {}
 #endif
 
+static void set_dev_domain_options(struct pci_dev *pdev)
+{
+       if (is_vmd(pdev->bus))
+               pdev->hotplug_user_indicators = 1;
+}
+
 int pcibios_add_device(struct pci_dev *dev)
 {
        struct setup_data *data;
@@ -707,6 +713,7 @@ int pcibios_add_device(struct pci_dev *dev)
                iounmap(data);
        }
        set_dma_domain_ops(dev);
+       set_dev_domain_options(dev);
        return 0;
 }