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

Commit 377d040d authored by Pankaj Gupta's avatar Pankaj Gupta
Browse files

msm: kgsl: Fix snapshot collection after preempt trigger failure



Do not set FAULT_SKIP_SNAPSHOT in case of not collecting inline
snapshot.

Change-Id: I5f3de5881768ab07de989010096a58bea749c680
Signed-off-by: default avatarPankaj Gupta <gpankaj@codeaurora.org>
parent 9a643a21
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -374,10 +374,14 @@ void a6xx_preemption_trigger(struct adreno_device *adreno_dev)
	return;
err:
	/* If fenced write fails, take inline snapshot and trigger recovery */
	if (!in_interrupt())
	if (!in_interrupt()) {
		gmu_core_snapshot(device);
		adreno_set_gpu_fault(adreno_dev,
			ADRENO_GMU_FAULT_SKIP_SNAPSHOT);
	} else {
		adreno_set_gpu_fault(adreno_dev, ADRENO_GMU_FAULT);
	}
	adreno_set_preempt_state(adreno_dev, ADRENO_PREEMPT_NONE);
	adreno_set_gpu_fault(adreno_dev, ADRENO_GMU_FAULT_SKIP_SNAPSHOT);
	adreno_dispatcher_schedule(device);
	/* Clear the keep alive */
	if (gmu_core_isenabled(device))