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

Commit 0a7c09d2 authored by Venkateswara Rao Tadikonda's avatar Venkateswara Rao Tadikonda Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Update GPU idleness check when RB is empty



GPU is considered to be idle when ring buffer is idle in current design.
But ring buffer empty will not alone determine GPU idleness. RBBM
status also should be checked along with ring buffer status to determine
GPU idleness.

Change-Id: I165edfb7f10144612525f240817fd77ac5da6efb
Signed-off-by: default avatarVenkateswara Rao Tadikonda <vtadik@codeaurora.org>
parent 9487d015
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -208,8 +208,8 @@ static inline bool _isidle(struct adreno_device *adreno_dev)
	if (!kgsl_state_is_awake(KGSL_DEVICE(adreno_dev)))
		goto ret;

	if (adreno_rb_empty(adreno_dev->cur_rb))
		goto ret;
	if (!adreno_rb_empty(adreno_dev->cur_rb))
		return false;

	/* only check rbbm status to determine if GPU is idle */
	adreno_readreg(adreno_dev, ADRENO_REG_RBBM_STATUS, &reg_rbbm_status);