iommu/amd: Don't register interrupt remapping irqdomain when IR is disabled
authorDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 11 Nov 2020 14:43:20 +0000 (14:43 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 11 Nov 2020 22:01:58 +0000 (23:01 +0100)
commit2df985f5e44c43f5d29d8cc3aaa8e8ac697e9de6
tree61cde3d225f61735a12b5c5640922508a442f878
parent2fb6acf3edfeb904505f9ba3fd01166866062591
iommu/amd: Don't register interrupt remapping irqdomain when IR is disabled

Registering the remapping irq domain unconditionally is potentially
allowing I/O-APIC and MSI interrupts to be parented in the IOMMU IR domain
even when IR is disabled. Don't do that.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20201111144322.1659970-1-dwmw2@infradead.org
drivers/iommu/amd/init.c