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

Commit 4238939b authored by Alan Kwong's avatar Alan Kwong
Browse files

msm: sde: enable system cache for pagetable walks in rotator



Enable system cache for rotator page table walks as
recommended.

Change-Id: I904cf7e0ef2965ed6c647d0064f6386edafcaf8f
Signed-off-by: default avatarAlan Kwong <akwong@codeaurora.org>
parent 8072741f
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -517,6 +517,7 @@ int sde_smmu_probe(struct platform_device *pdev)
	const struct of_device_id *match;
	struct sde_module_power *mp;
	char name[MAX_CLIENT_NAME_LEN];
	int mdphtw_llc_enable = 1;
	u32 sid = 0;

	if (!mdata) {
@@ -612,6 +613,13 @@ int sde_smmu_probe(struct platform_device *pdev)
		goto disable_power;
	}

	rc = iommu_domain_set_attr(sde_smmu->mmu_mapping->domain,
			DOMAIN_ATTR_USE_UPSTREAM_HINT, &mdphtw_llc_enable);
	if (rc) {
		SDEROT_ERR("couldn't enable rot pagetable walks: %d\n", rc);
		goto release_mapping;
	}

	if (smmu_domain.domain == SDE_IOMMU_DOMAIN_ROT_SECURE) {
		int secure_vmid = VMID_CP_PIXEL;