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

Commit b2cc23c8 authored by Hareesh Gundu's avatar Hareesh Gundu Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Update HW idle check for A619 holi



Update HW idle check for A619 holi to ensure GPU
idle status is captured correctly.

Change-Id: I2c332e43b3e3f653421e0bc4ab823ac557cfa141
Signed-off-by: default avatarHareesh Gundu <hareeshg@codeaurora.org>
parent e2f7dca4
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -1072,13 +1072,14 @@ static void a6xx_gpu_keepalive(struct adreno_device *adreno_dev,

static bool a619_holi_hw_isidle(struct adreno_device *adreno_dev)
{
	struct kgsl_device *device = KGSL_DEVICE(adreno_dev);
	unsigned int reg;

	adreno_read_gmu_wrapper(adreno_dev,
		A6XX_GPU_GMU_AO_GPU_CX_BUSY_STATUS, &reg);
	kgsl_regread(device, A6XX_RBBM_STATUS, &reg);
	if (reg & 0xfffffffe)
		return false;

	/* Bit 23 is GPUBUSYIGNAHB */
	return (reg & BIT(23)) ? false : true;
	return adreno_irq_pending(adreno_dev) ? false : true;
}

bool a6xx_hw_isidle(struct adreno_device *adreno_dev)