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

Commit 11245d7e authored by Thomas (Wonyoung) Yun's avatar Thomas (Wonyoung) Yun
Browse files

msm: kgsl: Program sub-cache ID for SC8180



Require to program GBIF_SCACHE_CNTL1 register for gpu SCID.

Change-Id: Ic61f34d49103be7a297a1870e0bf372aa888860a
Signed-off-by: default avatarThomas (Wonyoung) Yun <wyun@codeaurora.org>
parent 74939878
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1628,7 +1628,7 @@ static void a6xx_llc_configure_gpu_scid(struct adreno_device *adreno_dev)
			| gpu_scid;

	if (adreno_is_a640(adreno_dev) || adreno_is_a612(adreno_dev) ||
		adreno_is_a610(adreno_dev)) {
		adreno_is_a610(adreno_dev) || adreno_is_a680(adreno_dev)) {
		kgsl_regrmw(KGSL_DEVICE(adreno_dev), A6XX_GBIF_SCACHE_CNTL1,
			A6XX_GPU_LLC_SCID_MASK, gpu_cntl1_val);
	} else {
@@ -1651,7 +1651,7 @@ static void a6xx_llc_configure_gpuhtw_scid(struct adreno_device *adreno_dev)
	 * XBL image.
	 */
	if (adreno_is_a640(adreno_dev) || adreno_is_a612(adreno_dev) ||
		adreno_is_a610(adreno_dev))
		adreno_is_a610(adreno_dev) || adreno_is_a680(adreno_dev))
		return;

	gpuhtw_scid = adreno_llc_get_scid(adreno_dev->gpuhtw_llc_slice);
@@ -1673,7 +1673,7 @@ static void a6xx_llc_enable_overrides(struct adreno_device *adreno_dev)
	 * Attributes are used as configured through SMMU pagetable entries.
	 */
	if (adreno_is_a640(adreno_dev) || adreno_is_a612(adreno_dev) ||
		adreno_is_a610(adreno_dev))
		adreno_is_a610(adreno_dev) || adreno_is_a680(adreno_dev))
		return;

	/*
+2 −1
Original line number Diff line number Diff line
@@ -1192,7 +1192,8 @@ void _enable_gpuhtw_llc(struct kgsl_mmu *mmu, struct kgsl_iommu_pt *iommu_pt)
		return;

	/* Domain attribute to enable system cache for GPU pagetable walks */
	if (adreno_is_a640(adreno_dev) || adreno_is_a612(adreno_dev))
	if (adreno_is_a640(adreno_dev) || adreno_is_a612(adreno_dev) ||
			adreno_is_a680(adreno_dev))
		ret = iommu_domain_set_attr(iommu_pt->domain,
			DOMAIN_ATTR_USE_LLC_NWA, &gpuhtw_llc_enable);
	else