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

Commit bbe5662b authored by Shubhraprakash Das's avatar Shubhraprakash Das
Browse files

Revert "msm: kgsl: Enable UCHE out of bounds checking"



This reverts commit 82b160ff.
It's better to disable UCHE OOB error and get a pagefault instead
that can be analyzed by getting a snapshot. With a UCHE OOB we
cannot reliably stop the GPU on it's tracks but we can do so
with a pagefault so it's better for debugging.

CRs-fixed: 587642
Change-Id: I997046e4f8d8a6d60f2035b101ecc52d4e1dc179
Signed-off-by: default avatarShubhraprakash Das <sadas@codeaurora.org>
parent fe59e87b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -392,6 +392,10 @@ 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));

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