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

Commit 3a1872e7 authored by Pankaj Gupta's avatar Pankaj Gupta Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Clear halt before gmu boot



During hard reset if we are not able to toggle the CX
gdsc, the halt will remain asserted at the time of next
GMU boot. This causes GMU boot to fail and lead to NoC
errors. So clear the halt bit before attempting GMU boot.

Change-Id: Id214e0a9261c1f14de13864c715cf1a9d415e1e7
Signed-off-by: default avatarHarshdeep Dhatt <hdhatt@codeaurora.org>
Signed-off-by: default avatarPankaj Gupta <gpankaj@codeaurora.org>
parent 67cb322d
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -352,6 +352,14 @@ static int a6xx_gmu_start(struct kgsl_device *device)
		mask = 0xFFFFFFFF;
	}

	/**
	 * We may have asserted gbif halt as part of reset sequence which may
	 * not get cleared if the gdsc was not reset. So clear it before
	 * attempting GMU boot.
	 */
	if (adreno_has_gbif(ADRENO_DEVICE(device)))
		kgsl_regwrite(device, A6XX_GBIF_HALT, 0x0);

	/* Set the log wptr index */
	gmu_core_regwrite(device, A6XX_GPU_GMU_CX_GMU_PWR_COL_CP_RESP,
			gmu->log_wptr_retention);