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

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

Merge "drm/msm/sde: enable system cache for pagetable walks in mdp"

parents 4fa8b82a ddfd3e50
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -455,6 +455,7 @@ static int _msm_smmu_create_mapping(struct msm_smmu_client *client,
	const struct msm_smmu_domain *domain)
{
	int rc;
	int mdphtw_llc_enable = 1;

	client->mmu_mapping = arm_iommu_create_mapping(&platform_bus_type,
			domain->va_start, domain->va_size);
@@ -465,6 +466,14 @@ static int _msm_smmu_create_mapping(struct msm_smmu_client *client,
		return PTR_ERR(client->mmu_mapping);
	}

	rc = iommu_domain_set_attr(client->mmu_mapping->domain,
			DOMAIN_ATTR_USE_UPSTREAM_HINT, &mdphtw_llc_enable);
	if (rc) {
		dev_err(client->dev, "couldn't enable mdp pagetable walks: %d\n",
			rc);
		goto error;
	}

	if (domain->secure) {
		int secure_vmid = VMID_CP_PIXEL;