mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
iommu/vt-d: Store PCI segment number in struct intel_iommu
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
7c7faa11ec
commit
67ccac41fa
2 changed files with 2 additions and 0 deletions
|
@ -952,6 +952,7 @@ static int alloc_iommu(struct dmar_drhd_unit *drhd)
|
||||||
}
|
}
|
||||||
iommu->agaw = agaw;
|
iommu->agaw = agaw;
|
||||||
iommu->msagaw = msagaw;
|
iommu->msagaw = msagaw;
|
||||||
|
iommu->segment = drhd->segment;
|
||||||
|
|
||||||
iommu->node = -1;
|
iommu->node = -1;
|
||||||
|
|
||||||
|
|
|
@ -319,6 +319,7 @@ struct intel_iommu {
|
||||||
int agaw; /* agaw of this iommu */
|
int agaw; /* agaw of this iommu */
|
||||||
int msagaw; /* max sagaw of this iommu */
|
int msagaw; /* max sagaw of this iommu */
|
||||||
unsigned int irq;
|
unsigned int irq;
|
||||||
|
u16 segment; /* PCI segment# */
|
||||||
unsigned char name[13]; /* Device Name */
|
unsigned char name[13]; /* Device Name */
|
||||||
|
|
||||||
#ifdef CONFIG_INTEL_IOMMU
|
#ifdef CONFIG_INTEL_IOMMU
|
||||||
|
|
Loading…
Reference in a new issue