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

Commit b5702b95 authored by Harshdeep Dhatt's avatar Harshdeep Dhatt
Browse files

msm: kgsl: Log the breadcrumb on GMU boot failure



This helps with understanding how far the GMU boot process
went before encountering a problem.

Change-Id: Id6cf933ba4e00c355daa0edfbb3a9530cc21e3b0
Signed-off-by: default avatarHarshdeep Dhatt <hdhatt@codeaurora.org>
parent 7159e284
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -360,7 +360,16 @@ static int a6xx_gmu_start(struct kgsl_device *device)
	if (timed_poll_check(device,
			A6XX_GMU_CM3_FW_INIT_RESULT,
			val, GMU_START_TIMEOUT, mask)) {
		dev_err(&gmu->pdev->dev, "GMU doesn't boot\n");
		u32 val;

		/*
		 * The breadcrumb is written to a gmu virtual mapping
		 * which points to dtcm byte offset 0x3fdc.
		 */
		gmu_core_regread(device,
			A6XX_GMU_CM3_DTCM_START + (0x3fdc >> 2), &val);
		dev_err(&gmu->pdev->dev, "GMU doesn't boot: 0x%x\n", val);

		return -ETIMEDOUT;
	}