iommm/amd: Store irq domain in struct device
authorThomas Gleixner <tglx@linutronix.de>
Wed, 26 Aug 2020 11:17:00 +0000 (13:17 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 16 Sep 2020 14:52:37 +0000 (16:52 +0200)
commit2b2c6aa63824c69c112bbe4f937f034c5e606a6c
tree89bb6394ba2e3d1e3c567430eeb116d755c55f65
parent85a8dfc57a0b96785881735e09a61a0fde911ca4
iommm/amd: Store irq domain in struct device

As the next step to make X86 utilize the direct MSI irq domain operations
store the irq domain pointer in the device struct when a device is probed.

It only overrides the irqdomain of devices which are handled by a regular
PCI/MSI irq domain which protects PCI devices behind special busses like
VMD which have their own irq domain.

No functional change.

It just avoids the redirection through arch_*_msi_irqs() and allows the
PCI/MSI core to directly invoke the irq domain alloc/free functions instead
of having to look up the irq domain for every single MSI interupt.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Joerg Roedel <jroedel@suse.de>
Link: https://lore.kernel.org/r/20200826112333.806328762@linutronix.de
drivers/iommu/amd/iommu.c