2019-03-29 14:12:17 +08:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2019-03-22 14:52:12 +08:00
|
|
|
From: kgopala2 <karthik.l.gopalakrishnan@intel.com>
|
|
|
|
Date: Wed, 13 Mar 2019 22:54:22 +0800
|
2019-03-29 14:12:17 +08:00
|
|
|
Subject: [PATCH] iommu/vt-d: disble BXT IPU by default
|
2019-03-22 14:52:12 +08:00
|
|
|
|
|
|
|
Remove any dependence on command-line option. Disable
|
|
|
|
IPU mapping by IOMMU by defaut.
|
|
|
|
|
|
|
|
Signed-off-by: kgopala2 <karthik.l.gopalakrishnan@intel.com>
|
|
|
|
---
|
|
|
|
drivers/iommu/intel-iommu.c | 9 +--------
|
|
|
|
1 file changed, 1 insertion(+), 8 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
|
2020-01-23 06:31:30 +08:00
|
|
|
index 812d25801c13..498432db65da 100644
|
2019-03-22 14:52:12 +08:00
|
|
|
--- a/drivers/iommu/intel-iommu.c
|
|
|
|
+++ b/drivers/iommu/intel-iommu.c
|
|
|
|
@@ -428,7 +428,6 @@ int intel_iommu_enabled = 0;
|
|
|
|
EXPORT_SYMBOL_GPL(intel_iommu_enabled);
|
|
|
|
|
|
|
|
static int dmar_map_gfx = 1;
|
|
|
|
-static int dmar_map_ipu = 1;
|
|
|
|
static int dmar_forcedac;
|
|
|
|
static int intel_iommu_strict;
|
|
|
|
static int intel_iommu_superpage = 1;
|
|
|
|
@@ -535,10 +534,6 @@ static int __init intel_iommu_setup(char *str)
|
|
|
|
} else if (!strncmp(str, "igfx_off", 8)) {
|
|
|
|
dmar_map_gfx = 0;
|
|
|
|
pr_info("Disable GFX device mapping\n");
|
|
|
|
- } else if (!strncmp(str, "ipu_off", 7)) {
|
|
|
|
- dmar_map_ipu = 0;
|
|
|
|
- printk(KERN_INFO
|
|
|
|
- "Intel-IOMMU: disable IPU device mapping\n");
|
|
|
|
} else if (!strncmp(str, "forcedac", 8)) {
|
|
|
|
pr_info("Forcing DAC for PCI devices\n");
|
|
|
|
dmar_forcedac = 1;
|
2019-06-26 23:08:52 +08:00
|
|
|
@@ -5451,9 +5446,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x006a, quirk_calpella_no_shadow_g
|
2019-03-22 14:52:12 +08:00
|
|
|
|
|
|
|
static void quirk_broxton_ipu(struct pci_dev *dev)
|
|
|
|
{
|
|
|
|
- if (!dmar_map_ipu) {
|
|
|
|
- iommu_identity_mapping |= IDENTMAP_IPU;
|
|
|
|
- }
|
|
|
|
+ iommu_identity_mapping |= IDENTMAP_IPU;
|
|
|
|
}
|
|
|
|
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x5a88, quirk_broxton_ipu);
|
|
|
|
|
|
|
|
--
|
2019-04-08 18:08:36 +08:00
|
|
|
https://clearlinux.org
|
2019-03-22 14:52:12 +08:00
|
|
|
|