Skip to content

Commit 21e722c

Browse files
ashok-rajjoergroedel
authored andcommitted
iommu/vt-d: Tylersburg isoch identity map check is done too late.
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> Fixes: 86080cc ("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>
1 parent aaa5930 commit 21e722c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/iommu/intel-iommu.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3325,13 +3325,14 @@ static int __init init_dmars(void)
33253325
iommu_identity_mapping |= IDENTMAP_GFX;
33263326
#endif
33273327

3328+
check_tylersburg_isoch();
3329+
33283330
if (iommu_identity_mapping) {
33293331
ret = si_domain_init(hw_pass_through);
33303332
if (ret)
33313333
goto free_iommu;
33323334
}
33333335

3334-
check_tylersburg_isoch();
33353336

33363337
/*
33373338
* If we copied translations from a previous kernel in the kdump

0 commit comments

Comments
 (0)