iommu/vt-d: Tylersburg isoch identity map check is done too late.

am: 31dac0e870

Change-Id: I0e8dacd983deed5a478e50a4ce4c48622668e563
This commit is contained in:
Ashok Raj 2017-03-12 08:15:08 +00:00 committed by android-build-merger
commit 6082e028f3

View file

@ -3238,13 +3238,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