aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshok Raj <ashok.raj@intel.com>2017-01-30 12:39:53 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-12 00:41:43 -0500
commit24427cd71d2fbef3eeb087e802ff327c18c7275f (patch)
tree06850f5ee71c9b11bcf3e7f6e7d486a7c3ca0f5f
parent61cb3c6357fd77a2b1af49a9015955b9f82c68d4 (diff)
iommu/vt-d: Tylersburg isoch identity map check is done too late.
commit 21e722c4c8377b5bc82ad058fed12165af739c1b upstream. 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: Ashok Raj <ashok.raj@intel.com> Fixes: 86080ccc22 ("iommu/vt-d: Allocate si_domain in init_dmars()") Signed-off-by: Ashok Raj <ashok.raj@intel.com> Reported-by: Yunhong Jiang <yunhong.jiang@intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/iommu/intel-iommu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index d82637ab09fd..34be95ee9038 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -3325,13 +3325,14 @@ static int __init init_dmars(void)
3325 iommu_identity_mapping |= IDENTMAP_GFX; 3325 iommu_identity_mapping |= IDENTMAP_GFX;
3326#endif 3326#endif
3327 3327
3328 check_tylersburg_isoch();
3329
3328 if (iommu_identity_mapping) { 3330 if (iommu_identity_mapping) {
3329 ret = si_domain_init(hw_pass_through); 3331 ret = si_domain_init(hw_pass_through);
3330 if (ret) 3332 if (ret)
3331 goto free_iommu; 3333 goto free_iommu;
3332 } 3334 }
3333 3335
3334 check_tylersburg_isoch();
3335 3336
3336 /* 3337 /*
3337 * If we copied translations from a previous kernel in the kdump 3338 * If we copied translations from a previous kernel in the kdump