aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/amd_iommu_init.c1
-rw-r--r--include/asm-x86/amd_iommu_types.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/amd_iommu_init.c b/arch/x86/kernel/amd_iommu_init.c
index 41ce8d5d626e..b50234ef91ed 100644
--- a/arch/x86/kernel/amd_iommu_init.c
+++ b/arch/x86/kernel/amd_iommu_init.c
@@ -676,6 +676,7 @@ static int __init init_iommu_one(struct amd_iommu *iommu, struct ivhd_header *h)
676 */ 676 */
677 iommu->devid = h->devid; 677 iommu->devid = h->devid;
678 iommu->cap_ptr = h->cap_ptr; 678 iommu->cap_ptr = h->cap_ptr;
679 iommu->pci_seg = h->pci_seg;
679 iommu->mmio_phys = h->mmio_phys; 680 iommu->mmio_phys = h->mmio_phys;
680 iommu->mmio_base = iommu_map_mmio_space(h->mmio_phys); 681 iommu->mmio_base = iommu_map_mmio_space(h->mmio_phys);
681 if (!iommu->mmio_base) 682 if (!iommu->mmio_base)
diff --git a/include/asm-x86/amd_iommu_types.h b/include/asm-x86/amd_iommu_types.h
index 8b8cd0c60b3c..20814b85bbc3 100644
--- a/include/asm-x86/amd_iommu_types.h
+++ b/include/asm-x86/amd_iommu_types.h
@@ -232,6 +232,9 @@ struct amd_iommu {
232 /* capabilities of that IOMMU read from ACPI */ 232 /* capabilities of that IOMMU read from ACPI */
233 u32 cap; 233 u32 cap;
234 234
235 /* pci domain of this IOMMU */
236 u16 pci_seg;
237
235 /* first device this IOMMU handles. read from PCI */ 238 /* first device this IOMMU handles. read from PCI */
236 u16 first_device; 239 u16 first_device;
237 /* last device this IOMMU handles. read from PCI */ 240 /* last device this IOMMU handles. read from PCI */