Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e34ef247 authored by Shubhraprakash Das's avatar Shubhraprakash Das
Browse files

msm: kgsl: Enable the iommu halt feature for certain IOMMU versions



Enable the IOMMU halt feature for non v0 IOMMU versions instead of
depending on the feature being enabled in the IOMMU device tree.
This is because on certain chipsets this feature is not set in
the device tree even if the IOMMU h/w supports it.

Change-Id: I39236b5f7a7dc1d0d739bbb39bfc7fda4931da56
Signed-off-by: default avatarShubhraprakash Das <sadas@codeaurora.org>
parent f3802d58
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1165,7 +1165,8 @@ static int kgsl_set_register_map(struct kgsl_mmu *mmu)
		if (ret)
			goto err;

		iommu_unit->iommu_halt_enable = data.iommu_halt_enable;
		if (!msm_soc_version_supports_iommu_v0())
			iommu_unit->iommu_halt_enable = 1;
		iommu_unit->ahb_base = data.physstart - mmu->device->reg_phys;
	}
	iommu->unit_count = pdata_dev->iommu_count;