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

Commit fecfa940 authored by Shrenuj Bansal's avatar Shrenuj Bansal
Browse files

msm: kgsl: Avoid calling get_secure_bus for iommu_domain_alloc for 8996



For 8994, we needed to call iommu_domain_alloc() with
msm_iommu_sec_bus_type as a parameter. The ARM SMMU driver does
not distinguish between the secure and non secure domains using
this parameter. Therefore, continue using the platform_bus_type
as the parameter to iommu_domain_alloc().

Change-Id: I7ccac6c5a6a4c66c277400baac0d036b68d4c7fb
Signed-off-by: default avatarShrenuj Bansal <shrenujb@codeaurora.org>
parent dcbc3648
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -548,10 +548,12 @@ static int kgsl_iommu_init_pt(struct kgsl_mmu *mmu, struct kgsl_pagetable *pt)
		if (!mmu->secured)
			return -EPERM;

		if (!MMU_FEATURE(mmu, KGSL_MMU_HYP_SECURE_ALLOC)) {
			bus = get_secure_bus();
			if (bus == NULL)
				return -EPERM;
		}
	}

	iommu_pt = kzalloc(sizeof(struct kgsl_iommu_pt), GFP_KERNEL);
	if (!iommu_pt)