Skip to content

Commit

Permalink
Merge git://git.infradead.org/iommu-2.6
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
Linus Torvalds committed Jun 24, 2009
2 parents cf5434e + f007e99 commit be98eb2
Show file tree
Hide file tree
Showing 5 changed files with 416 additions and 77 deletions.
6 changes: 6 additions & 0 deletions arch/x86/kernel/apic/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
Loading

0 comments on commit be98eb2

Please sign in to comment.