Skip to content
Commit 1382e511 authored by Tarun Karra's avatar Tarun Karra
Browse files

msm: kgsl: Use spinlock for A6xx perfcounter updates



Add flag ADRENO_PERFCOUNTER_GROUP_RESTORE for perfcounters that
need to be restored for IFPC and preemption.
For these perfcounters
a) get spinlock
b) update the CP powerup restore list
c) update perfcounter select register
d) release spinlock.
Spinlock prevents race condition where GPU might be restoring
these registers while CPU is updating them at the same time.

Change-Id: I3d902d5cdc8c5b69a86353a944c07c9151b42654
Signed-off-by: default avatarTarun Karra <tkarra@codeaurora.org>
Signed-off-by: default avatarLynus Vaz <lvaz@codeaurora.org>
parent 4ea68128
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment