summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHareesh Gundu <hareeshg@codeaurora.org>2016-03-18 18:49:47 +0530
committerJeevan Shriram <jshriram@codeaurora.org>2016-04-13 11:04:35 -0700
commitf8856af38c24716058eef2931c7bf70dc6ba46ac (patch)
treeb9c1935b9e5bb5928d1dfe9f36e0529e74a6917d /drivers
parenta65f379129d06a926bbd31232059d3867198610c (diff)
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: Hareesh Gundu <hareeshg@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/msm/adreno_ringbuffer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/msm/adreno_ringbuffer.c b/drivers/gpu/msm/adreno_ringbuffer.c
index dc1fbdb64317..dceb8fb93461 100644
--- a/drivers/gpu/msm/adreno_ringbuffer.c
+++ b/drivers/gpu/msm/adreno_ringbuffer.c
@@ -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);