diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-23 19:49:24 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-23 19:49:24 -0700 |
commit | be98eb2c2fc88d9d61cfeab5c11ab1118ca0bba9 (patch) | |
tree | 2fda177b596534b9ec69d98f6843d24d7e234538 /arch | |
parent | cf5434e894a17bb8385997adc6d56642055a85d6 (diff) | |
parent | f007e99c8e2e322b8331aba72414715119a2920d (diff) | |
download | linux-3.10-be98eb2c2fc88d9d61cfeab5c11ab1118ca0bba9.tar.gz linux-3.10-be98eb2c2fc88d9d61cfeab5c11ab1118ca0bba9.tar.bz2 linux-3.10-be98eb2c2fc88d9d61cfeab5c11ab1118ca0bba9.zip |
Merge git://git.infradead.org/iommu-2.6
* git://git.infradead.org/iommu-2.6:
Intel-IOMMU, intr-remap: source-id checking
Intel-IOMMU, intr-remap: set the whole 128bits of irte when modify/free it
IOMMU Identity Mapping Support (drivers/pci/intel_iommu.c)
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/apic/io_apic.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index b7a79207295..4d0216fcb36 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c @@ -1414,6 +1414,9 @@ int setup_ioapic_entry(int apic_id, int irq, irte.vector = vector; irte.dest_id = IRTE_DEST(destination); + /* Set source-id of interrupt request */ + set_ioapic_sid(&irte, apic_id); + modify_irte(irq, &irte); ir_entry->index2 = (index >> 15) & 0x1; @@ -3290,6 +3293,9 @@ static int msi_compose_msg(struct pci_dev *pdev, unsigned int irq, struct msi_ms irte.vector = cfg->vector; irte.dest_id = IRTE_DEST(dest); + /* Set source-id of interrupt request */ + set_msi_sid(&irte, pdev); + modify_irte(irq, &irte); msg->address_hi = MSI_ADDR_BASE_HI; |