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

Commit 51856ef0 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Reduce hang detection threshold for A610 GPU"

parents eb0dcd7c 01b52fae
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);