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

Commit 70a5e468 authored by Shubhraprakash Das's avatar Shubhraprakash Das
Browse files

msm: kgsl: Change check for gpu idle



Check whether gpu is idle by checking if any of its bits in
RBBM_STATUS is set except for AHB and HI bits.

Change-Id: I3dac8131a637c046d4c5cfde5935483cefaf8b53
Signed-off-by: default avatarShubhraprakash Das <sadas@codeaurora.org>
parent f2291a76
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2607,7 +2607,7 @@ bool adreno_hw_isidle(struct kgsl_device *device)
	adreno_readreg(adreno_dev, ADRENO_REG_RBBM_STATUS,
		&reg_rbbm_status);

	if (reg_rbbm_status & 0x80000000)
	if (reg_rbbm_status & ~0x80000001)
		return false;

	/* Don't consider ourselves idle if there is an IRQ pending */