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

Commit d707405c authored by Amit Kushwaha's avatar Amit Kushwaha Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: add condition to check gpuhtw_llc support



Avoid setting cache related domain attributes when
gpuhtw_llc not supported.

Change-Id: I3881e3a4e5ab06f075b1320717f43e9bc9208e45
Signed-off-by: default avatarAmit Kushwaha <kushwaha@codeaurora.org>
Signed-off-by: default avatarVishwanath Raju K <vishk@codeaurora.org>
parent 26138762
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1147,7 +1147,7 @@ void _enable_gpuhtw_llc(struct kgsl_mmu *mmu, struct kgsl_iommu_pt *iommu_pt)
	int ret;

	/* GPU pagetable walk LLC slice not enabled */
	if (IS_ERR(adreno_dev->gpuhtw_llc_slice))
	if (IS_ERR_OR_NULL(adreno_dev->gpuhtw_llc_slice))
		return;

	/* Domain attribute to enable system cache for GPU pagetable walks */