]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
AMD IOMMU: save pci segment from ACPI tables
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 8 Sep 2008 12:48:04 +0000 (14:48 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 19 Sep 2008 10:59:12 +0000 (12:59 +0200)
This patch adds the pci_seg field to the amd_iommu structure and fills
it with the corresponding value from the ACPI table.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/amd_iommu_init.c
include/asm-x86/amd_iommu_types.h

index 41ce8d5d626ed96e62d5317c08b7d688c08805e1..b50234ef91edd0baebcf5d0e6ef132e8c3316b52 100644 (file)
@@ -676,6 +676,7 @@ static int __init init_iommu_one(struct amd_iommu *iommu, struct ivhd_header *h)
         */
        iommu->devid = h->devid;
        iommu->cap_ptr = h->cap_ptr;
+       iommu->pci_seg = h->pci_seg;
        iommu->mmio_phys = h->mmio_phys;
        iommu->mmio_base = iommu_map_mmio_space(h->mmio_phys);
        if (!iommu->mmio_base)
index 8b8cd0c60b3cadaf9fbdeb409dfd988cb6788955..20814b85bbc3fdccdbcbe5d18a76bc20bd249003 100644 (file)
@@ -232,6 +232,9 @@ struct amd_iommu {
        /* capabilities of that IOMMU read from ACPI */
        u32 cap;
 
+       /* pci domain of this IOMMU */
+       u16 pci_seg;
+
        /* first device this IOMMU handles. read from PCI */
        u16 first_device;
        /* last device this IOMMU handles. read from PCI */