iommu/vt-d: Store PCI segment number in struct intel_iommu
authorDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 9 Mar 2014 20:49:45 +0000 (13:49 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 24 Mar 2014 14:07:31 +0000 (14:07 +0000)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/iommu/dmar.c
include/linux/intel-iommu.h

index 7ea086f61073b962827e4da5dffda34bd76d55f2..56e1c79dc77fd31bc9ad031df74a5eaecd73fc0b 100644 (file)
@@ -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;
 
index 2c4bed593b32367559cc2aff89e40b88306bab90..0a2da518821706baf5345e76e1490c55953a9f8f 100644 (file)
@@ -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
This page took 0.031509 seconds and 5 git commands to generate.