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

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

Merge "msm: kgsl: Set UCHE_CACHE_WAYS_VFD to 0x7 for A4XX"

parents 3065f83c 08b767ce
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -522,6 +522,7 @@ enum a4xx_sp_perfctr_sp_sel {
#define UCHE_TRAP_BASE_HI               0xe84
#define A4XX_UCHE_INVALIDATE0		0xe8a
#define A4XX_UCHE_INVALIDATE1		0xe8b
#define A4XX_UCHE_CACHE_WAYS_VFD	0xe8c

/* VSC registers */
#define A4XX_VSC_SIZE_ADDRESS		0xc01
+3 −0
Original line number Diff line number Diff line
@@ -586,6 +586,9 @@ static void a4xx_start(struct adreno_device *adreno_dev)
	/* Turn on the GPU busy counter and let it run free */
	memset(&adreno_dev->busy_data, 0, sizeof(adreno_dev->busy_data));

	/* Enable VFD to access most of the UCHE (7 ways out of 8) */
	kgsl_regwrite(device, A4XX_UCHE_CACHE_WAYS_VFD, 0x07);

	/* Disable L2 bypass to avoid UCHE out of bounds errors */
	kgsl_regwrite(device, UCHE_TRAP_BASE_LO, 0xffff0000);
	kgsl_regwrite(device, UCHE_TRAP_BASE_HI, 0xffff0000);