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

Commit 41f532e2 authored by Amit Kushwaha's avatar Amit Kushwaha
Browse files

msm: kgsl: Add a check before requesting GPU keepalive



When GMU is diabled then attempt to access gmu register
will throw warning. Fixed by adding conditional check.
When GMU disabled then warning was observed after gpu
keepalive call so adding conditional check for keep-
alive only.

Change-Id: Ie9ce6ab3bc62addf29d69a96c41227175eea3e12
Signed-off-by: default avatarAmit Kushwaha <kushwaha@codeaurora.org>
parent 1f668377
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1301,6 +1301,9 @@ static int _load_firmware(struct kgsl_device *device, const char *fwfile,
static inline void a6xx_gpu_keepalive(struct adreno_device *adreno_dev,
		bool state)
{
	if (!gmu_core_isenabled(KGSL_DEVICE(adreno_dev)))
		return;

	adreno_write_gmureg(adreno_dev,
			ADRENO_REG_GMU_PWR_COL_KEEPALIVE, state);
}