Skip to content

Commit 8986f22

Browse files
committed
iommu/vt-d: Take CONFIG_PCI_ATS into account
pci_dev::physfn is only available when CONFIG_PCI_ATS is set. The recent fix for the irqdomain rework missed that dependency which makes the build fail when CONFIG_PCI_ATS=n. Add the necessary #ifdeffery. Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Fixes: ff82872 ("iommu/vt-d: Cure VF irqdomain hickup") Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Joerg Roedel <joro@8bytes.org>
1 parent 09162bc commit 8986f22

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/iommu/intel/dmar.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,9 @@ static void dmar_pci_bus_del_dev(struct dmar_pci_notify_info *info)
335335

336336
static inline void vf_inherit_msi_domain(struct pci_dev *pdev)
337337
{
338+
#ifdef CONFIG_PCI_ATS
338339
dev_set_msi_domain(&pdev->dev, dev_get_msi_domain(&pdev->physfn->dev));
340+
#endif
339341
}
340342

341343
static int dmar_pci_bus_notifier(struct notifier_block *nb,

0 commit comments

Comments
 (0)