Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67ccac41 authored by David Woodhouse's avatar David Woodhouse
Browse files

iommu/vt-d: Store PCI segment number in struct intel_iommu

parent 7c7faa11
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;

+1 −0
Original line number Diff line number Diff line
@@ -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