mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
iommm/vt-d: Store irq domain in struct device
As a first 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. This is done from dmar_pci_bus_add_dev() because it has to work even when DMA remapping is disabled. 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.714566121@linutronix.de
This commit is contained in:
parent
2e4386eba0
commit
85a8dfc57a
3 changed files with 26 additions and 0 deletions
|
@ -425,6 +425,8 @@ struct q_inval {
|
|||
int free_cnt;
|
||||
};
|
||||
|
||||
struct dmar_pci_notify_info;
|
||||
|
||||
#ifdef CONFIG_IRQ_REMAP
|
||||
/* 1MB - maximum possible interrupt remapping table size */
|
||||
#define INTR_REMAP_PAGE_ORDER 8
|
||||
|
@ -439,6 +441,11 @@ struct ir_table {
|
|||
struct irte *base;
|
||||
unsigned long *bitmap;
|
||||
};
|
||||
|
||||
void intel_irq_remap_add_device(struct dmar_pci_notify_info *info);
|
||||
#else
|
||||
static inline void
|
||||
intel_irq_remap_add_device(struct dmar_pci_notify_info *info) { }
|
||||
#endif
|
||||
|
||||
struct iommu_flush {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue