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

Commit 341258da authored by Deepak Kumar's avatar Deepak Kumar
Browse files

msm: kgsl: Force recovery path in case GMU_FAULT bit is set



Add missing check to force GMU recovery path in case GMU_FAULT
bit is set while transitioning from INIT to AWARE state during
GPU wake-up.

Change-Id: Ieabc4bde6ae7d92596aa1b6870a21f32650bff32
Signed-off-by: default avatarDeepak Kumar <dkumar@codeaurora.org>
parent 387632bf
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2760,6 +2760,12 @@ _aware(struct kgsl_device *device)
		status = gmu_start(device);
		break;
	case KGSL_STATE_INIT:
		/* if GMU already in FAULT */
		if (kgsl_gmu_isenabled(device) &&
			test_bit(GMU_FAULT, &gmu->flags)) {
			status = -EINVAL;
			break;
		}
		status = kgsl_pwrctrl_enable(device);
		break;
	/* The following 3 cases shouldn't occur, but don't panic. */