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

Commit 01b52fae authored by Deepak Kumar's avatar Deepak Kumar
Browse files

msm: kgsl: Reduce hang detection threshold for A610 GPU



Hang detection threshold was increased to prevent false hang
detect issue happening because of a hardware issue. This is
not required on A610 GPU as hardware already has the fix.
Reduce the hang detection threshold value for A610 to make
sure recovery happens within reasonable time.

Change-Id: I035e742b3dfca4834413fc7766a46d5d92914a08
Signed-off-by: default avatarDeepak Kumar <dkumar@codeaurora.org>
parent ec69467b
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -918,6 +918,14 @@ static void a6xx_start(struct adreno_device *adreno_dev)
	kgsl_regwrite(device, A6XX_UCHE_MODE_CNTL, (glbl_inv << 29) |
						(mal << 23) | (bit << 21));

	if (adreno_is_a610(adreno_dev))
		/*
		 * Set hang detection threshold to 4 million
		 * cycles (0x3FFFF*16).
		 */
		kgsl_regwrite(device, A6XX_RBBM_INTERFACE_HANG_INT_CNTL,
						(1 << 30) | 0x3ffff);
	else
		/* Set hang detection threshold to 0xCFFFFF * 16 cycles */
		kgsl_regwrite(device, A6XX_RBBM_INTERFACE_HANG_INT_CNTL,
						(1 << 30) | 0xcfffff);