x64, x2apic/intr-remap: MSI and MSI-X support for interrupt remapping infrastructure
MSI and MSI-X support for interrupt remapping infrastructure. MSI address register will be programmed with interrupt-remapping table entry(IRTE) index and the IRTE will contain information about the vector, cpu destination, etc. For MSI-X, all the IRTE's will be consecutively allocated in the table, and the address registers will contain the starting index to the block and the data register will contain the subindex with in that block. This also introduces a new irq_chip for cleaner irq migration (in the process context as opposed to the current irq migration in the context of an interrupt. interrupt-remapping infrastructure will help us achieve this). As MSI is edge triggered, irq migration is a simple atomic update(of vector and cpu destination) of IRTE and flushing the hardware cache. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Cc: akpm@linux-foundation.org Cc: arjan@linux.intel.com Cc: andi@firstfloor.org Cc: ebiederm@xmission.com Cc: jbarnes@virtuousgeek.org Cc: steiner@sgi.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:

committed by
Ingo Molnar

parent
89027d35aa
commit
75c46fa61b
@@ -230,6 +230,17 @@ struct intel_iommu *map_ioapic_to_ir(int apic)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct intel_iommu *map_dev_to_ir(struct pci_dev *dev)
|
||||
{
|
||||
struct dmar_drhd_unit *drhd;
|
||||
|
||||
drhd = dmar_find_matched_drhd_unit(dev);
|
||||
if (!drhd)
|
||||
return NULL;
|
||||
|
||||
return drhd->iommu;
|
||||
}
|
||||
|
||||
int free_irte(int irq)
|
||||
{
|
||||
int index, i;
|
||||
|
Reference in New Issue
Block a user