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

Commit 1874780b authored by Hareesh Gundu's avatar Hareesh Gundu
Browse files

msm: kgsl: Skip soft reset for A612 GPU



The IPC protocol between RGMU and CP will
not restart after soft reset. Hence skip
the soft reset for A612.

Change-Id: I2fbfba167e0303b546c64b8c7d0b74c9493aed4f
Signed-off-by: default avatarHareesh Gundu <hareeshg@codeaurora.org>
parent a487c3ab
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -2256,11 +2256,13 @@ static inline bool adreno_try_soft_reset(struct kgsl_device *device, int fault)

	/*
	 * Do not do soft reset for a IOMMU fault (because the IOMMU hardware
	 * needs a reset too) or for the A304 because it can't do SMMU
	 * programming of any kind after a soft reset
	 * needs a reset too) and also for below gpu
	 * A304: It can't do SMMU programming of any kind after a soft reset
	 * A612: IPC protocol between RGMU and CP will not restart after reset
	 */

	if ((fault & ADRENO_IOMMU_PAGE_FAULT) || adreno_is_a304(adreno_dev))
	if ((fault & ADRENO_IOMMU_PAGE_FAULT) || adreno_is_a304(adreno_dev) ||
			adreno_is_a612(adreno_dev))
		return false;

	return true;