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

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

msm: kgsl: Return EOPNOTSUPP for A3XX command batch profiling



A3XX doesn't have support for command batch profiling. Return
EOPNOTSUPP for a command batch profiling request on A3XX, so that
userspace code knows that this feature is not supported.

CRs-Fixed: 986169
Change-Id: I6dfcab462a933ef31e3bba6bef07f17016ae50b9
Signed-off-by: default avatarHareesh Gundu <hareeshg@codeaurora.org>
parent 2741ea71
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -801,6 +801,11 @@ adreno_ringbuffer_issueibcmds(struct kgsl_device_private *dev_priv,
		&& !(cmdbatch->flags & KGSL_CMDBATCH_SYNC))
		device->flags &= ~KGSL_FLAG_WAKE_ON_TOUCH;

	/* A3XX does not have support for command batch profiling */
	if (adreno_is_a3xx(adreno_dev) &&
			(cmdbatch->flags & KGSL_CMDBATCH_PROFILING))
		return -EOPNOTSUPP;

	/* Queue the command in the ringbuffer */
	ret = adreno_dispatcher_queue_cmd(adreno_dev, drawctxt, cmdbatch,
		timestamp);