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

Commit bfdf436e authored by Hareesh Gundu's avatar Hareesh Gundu
Browse files

msm: kgsl: Fill a6xx crash dumper buffer with known pattern



Sometimes crashdumper can timeout due to  unresponsive hang
scenarios. Hence fill the crash dumper with known pattern to
know the progress of crashdumper before it gets timed out.

Change-Id: I757fa345b4d7db7d7012ff6501b169a562f9b9c6
Signed-off-by: default avatarHareesh Gundu <hareeshg@codeaurora.org>
parent 8543fd31
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1582,6 +1582,9 @@ static void _a6xx_do_crashdump(struct kgsl_device *device)
	if (a6xx_is_smmu_stalled(device))
	if (a6xx_is_smmu_stalled(device))
		return;
		return;


	memset(a6xx_crashdump_registers->hostptr, 0xaa,
			a6xx_crashdump_registers->size);

	/* Turn on APRIV for legacy targets so we can access the buffers */
	/* Turn on APRIV for legacy targets so we can access the buffers */
	if (!ADRENO_FEATURE(ADRENO_DEVICE(device), ADRENO_APRIV))
	if (!ADRENO_FEATURE(ADRENO_DEVICE(device), ADRENO_APRIV))
		kgsl_regwrite(device, A6XX_CP_MISC_CNTL, 1);
		kgsl_regwrite(device, A6XX_CP_MISC_CNTL, 1);