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

Commit 418f4a45 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Overwrite the existing snapshot only if GMU is enabled"

parents 3387ecda 99612257
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -660,10 +660,12 @@ void kgsl_device_snapshot(struct kgsl_device *device,
	device->snapshot_faultcount++;

	/*
	 * Overwrite a non-GMU fault snapshot if a GMU fault occurs.
	 * Overwrite a fault snapshot only if GMU is
	 * enabled and we managed to recover from it.
	 */
	if (device->snapshot != NULL) {
		if (!device->prioritize_unrecoverable ||
		if (!gmu_core_gpmu_isenabled(device) ||
			!device->prioritize_unrecoverable ||
				!device->snapshot->recovered)
			return;