diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2014-03-09 20:49:45 (GMT) |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2014-03-24 14:07:31 (GMT) |
commit | 67ccac41fafda88492620f4c0a30d4ccb2eb7767 (patch) | |
tree | bdbb02b330c8977c49854792ee7d0d323a02e493 | |
parent | 7c7faa11ecf3eec17699ae73fc6e336cbf993081 (diff) | |
download | linux-67ccac41fafda88492620f4c0a30d4ccb2eb7767.tar.xz |
iommu/vt-d: Store PCI segment number in struct intel_iommu
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
-rw-r--r-- | drivers/iommu/dmar.c | 1 | ||||
-rw-r--r-- | include/linux/intel-iommu.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c index 7ea086f..56e1c79 100644 --- a/drivers/iommu/dmar.c +++ b/drivers/iommu/dmar.c @@ -952,6 +952,7 @@ static int alloc_iommu(struct dmar_drhd_unit *drhd) } iommu->agaw = agaw; iommu->msagaw = msagaw; + iommu->segment = drhd->segment; iommu->node = -1; diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h index 2c4bed5..0a2da51 100644 --- a/include/linux/intel-iommu.h +++ b/include/linux/intel-iommu.h @@ -319,6 +319,7 @@ struct intel_iommu { int agaw; /* agaw of this iommu */ int msagaw; /* max sagaw of this iommu */ unsigned int irq; + u16 segment; /* PCI segment# */ unsigned char name[13]; /* Device Name */ #ifdef CONFIG_INTEL_IOMMU |