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

Commit e64f1cf0 authored by Tarun Karra's avatar Tarun Karra
Browse files

msm: kgsl: Restrict max cache ways allowed for VFD



Restrict max cache ways allowed for VFD to 2. This is to
increase performance by restricting VFD's cache access,
so that LRZ and other data get evicted less.

Change-Id: Icd4486c0f45c681a9dde7c946c53bd618431b631
Signed-off-by: default avatarTarun Karra <tkarra@codeaurora.org>
parent 9154e7c9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -637,6 +637,7 @@
#define A5XX_UCHE_GMEM_RANGE_MAX_LO         0xE8D
#define A5XX_UCHE_GMEM_RANGE_MAX_HI         0xE8E
#define A5XX_UCHE_INVALIDATE0               0xE95
#define A5XX_UCHE_CACHE_WAYS                0xE96
#define A5XX_UCHE_PERFCTR_UCHE_SEL_0        0xEA0
#define A5XX_UCHE_PERFCTR_UCHE_SEL_1        0xEA1
#define A5XX_UCHE_PERFCTR_UCHE_SEL_2        0xEA2
+6 −0
Original line number Diff line number Diff line
@@ -1350,6 +1350,12 @@ static void a5xx_start(struct adreno_device *adreno_dev)
	/* Turn on performance counters */
	kgsl_regwrite(device, A5XX_RBBM_PERFCTR_CNTL, 0x01);

	/*
	 * This is to increase performance by restricting VFD's cache access,
	 * so that LRZ and other data get evicted less.
	 */
	kgsl_regwrite(device, A5XX_UCHE_CACHE_WAYS, 0x02);

	/*
	 * Set UCHE_WRITE_THRU_BASE to the UCHE_TRAP_BASE effectively
	 * disabling L2 bypass