OSDN Git Service

msm: kgsl: Set the abnormal power perf counter value to zero
authorAbhilash Kumar <krabhi@codeaurora.org>
Fri, 14 Jul 2017 07:43:44 +0000 (13:13 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Thu, 3 Aug 2017 18:22:12 +0000 (11:22 -0700)
commit696ce310cf2542d3c163828beeae5a4d327e2612
tree0ac38654e89f7331f4c28ed6589933aff174d642
parentfc30a7a6403d258e5cd397a58b93e7ab040c917b
msm: kgsl: Set the abnormal power perf counter value to zero

During preemption microcode does save restore for all perf
counters. If we read the power counters at preemption boundary
we might get abnormal value from the perf counter. This will
result in showing incorrect GPU busy percentage. Fix this by
setting the abnormal power perf counter value with zero.

Change-Id: I96ba367ceeeb92d6adb507d0d917113297b4b58d
Signed-off-by: Abhilash Kumar <krabhi@codeaurora.org>
drivers/gpu/msm/adreno.h
drivers/gpu/msm/adreno_a3xx.c
drivers/gpu/msm/adreno_a4xx.c
drivers/gpu/msm/adreno_a5xx.c