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

Commit 82b160ff authored by Shubhraprakash Das's avatar Shubhraprakash Das Committed by Jordan Crouse
Browse files

msm: kgsl: Enable UCHE out of bounds checking



Enable out of bounds checking by UCHE. This feature was initially
turned off in 0519dbf8 to workaround
a issue with leaving interrupts disabled while going into fault
recovery.  58ea104d made UCHE
faults not fatal so we can now safely turn back on UCHE bounds
checking.

Change-Id: I9752bf0e85e5cd4fee5db7ba614c2822595e7093
Signed-off-by: default avatarShubhraprakash Das <sadas@codeaurora.org>
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent cb544cb0
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -298,14 +298,9 @@ static void a4xx_start(struct adreno_device *adreno_dev)
	/* Turn on the GPU busy counter and let it run free */
	adreno_dev->gpu_cycles = 0;

	/* 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);

	/* On A420 cores turn on SKIP_IB2_DISABLE in addition to the default */
	kgsl_regwrite(device, A4XX_CP_DEBUG, A4XX_CP_DEBUG_DEFAULT |
			(adreno_is_a420(adreno_dev) ? (1 << 29) : 0));

}

int a4xx_perfcounter_enable_vbif(struct kgsl_device *device,