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

Commit cfce3d5b authored by Kyle Piefer's avatar Kyle Piefer
Browse files

msm: kgsl: Continue stopping GMU if it cannot idle



If the GMU does not idle after the timeout the stop
sequence is aborted. This causes a bug where the RPMh
wake / sleep sequences are not in sync and that leaves
the system in an incorrect state.

Force the system to continue stopping the GMU in either
case to prevent this.

CRs-Fixed: 2017390
Change-Id: Ide875c52e364345925917301c978381ba0c2ebee
Signed-off-by: default avatarKyle Piefer <kpiefer@codeaurora.org>
parent dc62e315
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1477,8 +1477,7 @@ void gmu_stop(struct kgsl_device *device)

	if (!idle || (gpudev->wait_for_gmu_idle &&
			gpudev->wait_for_gmu_idle(adreno_dev))) {
		dev_err(&gmu->pdev->dev, "Failure to stop GMU");
		return;
		dev_err(&gmu->pdev->dev, "Stopping GMU before it is idle\n");
	}

	/* Pending message in all queues are abandoned */