Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1567742

[PATCH 2/2] iommu/vt-d: tylersburg isoch identity map check is done too late.

From Ashok Raj <ashok.raj@intel.com>
Newsgroups linux.kernel
Subject [PATCH 2/2] iommu/vt-d: tylersburg isoch identity map check is done too late.
Date 2017-01-26 23:00 +0100
Message-ID <t40fh-48w-31@gated-at.bofh.it> (permalink)
References <t40fh-48w-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


The check to set identity map for tylersburg is done too late. It needs
to be done before the check for identity_map domain is done.

To: Joerg Roedel <joro@8bytes.org>
To: David Woodhouse <dwmw2@infradead.org>
Cc: iommu@lists.linux-foundation.org
Cc: linux-kernel@vger.kernel.org
Cc: stable@vger.kernel.org
Cc: Ashok Raj <ashok.raj@intel.com>

Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Reported-by: Yunhong Jiang <yunhong.jiang@intel.com>
---
 drivers/iommu/intel-iommu.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 8a18525..23eead3 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -3325,13 +3325,14 @@ static int __init init_dmars(void)
 	iommu_identity_mapping |= IDENTMAP_GFX;
 #endif
 
+	check_tylersburg_isoch();
+
 	if (iommu_identity_mapping) {
 		ret = si_domain_init(hw_pass_through);
 		if (ret)
 			goto free_iommu;
 	}
 
-	check_tylersburg_isoch();
 
 	/*
 	 * If we copied translations from a previous kernel in the kdump
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] iommu/vt-d: Fix some macros that are incorrectly specified in intel-iommu Ashok Raj <ashok.raj@intel.com> - 2017-01-26 23:00 +0100
  [PATCH 2/2] iommu/vt-d: tylersburg isoch identity map check is done too late. Ashok Raj <ashok.raj@intel.com> - 2017-01-26 23:00 +0100

csiph-web