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

Commit 76d29ca4 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Do not attach secure PT if already attached"

parents ece185f0 94df0727
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -1003,11 +1003,13 @@ static int _setup_secure_context(struct kgsl_mmu *mmu)
	}
	iommu_pt = mmu->securepagetable->priv;

	if (!iommu_pt->attached) {
		ret = iommu_attach_device(iommu_pt->domain, ctx->dev);
		if (ret) {
			KGSL_CORE_ERR("Failed to attach, err %d\n", ret);
			goto done;
		}
	}
	ctx->default_pt = mmu->securepagetable;

	ret = iommu_domain_get_attr(iommu_pt->domain, DOMAIN_ATTR_CONTEXT_BANK,