[PATCH 05/11] iommu/vt-d: Request passthrough mode from IOMMU core
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Joerg Roedel <joro@xxxxxxxxxx>
- Subject: [PATCH 05/11] iommu/vt-d: Request passthrough mode from IOMMU core
- From: Joerg Roedel <joro@xxxxxxxxxx>
- Date: Mon, 19 Aug 2019 15:22:50 +0200
- Cc: corbet@xxxxxxx, tony.luck@xxxxxxxxx, fenghua.yu@xxxxxxxxx, tglx@xxxxxxxxxxxxx, mingo@xxxxxxxxxx, bp@xxxxxxxxx, hpa@xxxxxxxxx, x86@xxxxxxxxxx, linux-doc@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, Thomas.Lendacky@xxxxxxx, Suravee.Suthikulpanit@xxxxxxx, Joerg Roedel <jroedel@xxxxxxx>
- In-reply-to: <20190819132256.14436-1-joro@8bytes.org>
- References: <20190819132256.14436-1-joro@8bytes.org>
From: Joerg Roedel <jroedel@xxxxxxx>
Get rid of the iommu_pass_through variable and request
passthrough mode via the new iommu core function.
Signed-off-by: Joerg Roedel <jroedel@xxxxxxx>
---
drivers/iommu/intel-iommu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 12d094d08c0a..a66c2a1bbbe3 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -3267,7 +3267,7 @@ static int __init init_dmars(void)
iommu->flush.flush_iotlb(iommu, 0, 0, 0, DMA_TLB_GLOBAL_FLUSH);
}
- if (iommu_pass_through)
+ if (iommu_default_passthrough())
iommu_identity_mapping |= IDENTMAP_ALL;
#ifdef CONFIG_INTEL_IOMMU_BROKEN_GFX_WA
--
2.16.4
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]