summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd_iommu.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2012-06-14 15:52:58 +0200
committerJoerg Roedel <joerg.roedel@amd.com>2012-09-28 17:29:34 +0200
commit6efed63bec36e260204a50cfe6878cd36b710ade (patch)
treeb558d08bfcb70faaf896fdc903c32ddbd0940d76 /drivers/iommu/amd_iommu.c
parent979570e02981d4a8fc20b3cc8fd651856c98ee9d (diff)
downloadlinux-stable-6efed63bec36e260204a50cfe6878cd36b710ade.tar.gz
linux-stable-6efed63bec36e260204a50cfe6878cd36b710ade.tar.bz2
linux-stable-6efed63bec36e260204a50cfe6878cd36b710ade.zip
iommu/amd: Keep track of HPET and IOAPIC device ids
The IVRS ACPI table provides information about the IOAPICs and the HPETs available in the system and which PCI device ID they use in transactions. Save that information for later usage in interrupt remapping. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/iommu/amd_iommu.c')
-rw-r--r--drivers/iommu/amd_iommu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index b64502dfa9f4..6f514831af1f 100644
--- a/drivers/iommu/amd_iommu.c
+++ b/drivers/iommu/amd_iommu.c
@@ -72,6 +72,9 @@ static DEFINE_SPINLOCK(iommu_pd_list_lock);
static LIST_HEAD(dev_data_list);
static DEFINE_SPINLOCK(dev_data_list_lock);
+LIST_HEAD(ioapic_map);
+LIST_HEAD(hpet_map);
+
/*
* Domain for untranslated devices - only allocated
* if iommu=pt passed on kernel cmd line.