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

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

Merge "msm: kgsl: Correctly handle CP_INIT failure"

parents 28e47763 78c56cdb
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -3065,7 +3065,15 @@ void adreno_spin_idle_debug(struct adreno_device *adreno_dev,

	dev_err(device->dev, " hwfault=%8.8X\n", hwfault);

	kgsl_device_snapshot(device, NULL, adreno_gmu_gpu_fault(adreno_dev));
	/*
	 * If CP is stuck, gmu may not perform as expected. So force a gmu
	 * snapshot which captures entire state as well as sets the gmu fault
	 * because things need to be reset anyway.
	 */
	if (gmu_core_isenabled(device))
		gmu_core_snapshot(device);
	else
		kgsl_device_snapshot(device, NULL, false);
}

/**