Commit f5150405 authored by Suman Tatiraju's avatar Suman Tatiraju Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Fix race condition in adreno_spin_idle()



adreno_spin_idle spins for a timeout checking for gpu to idle.
Sometimes due to race conditions the timeout can occur before the
loop is executed. Change the logic to a do-while loop and add an
extra idle check after the timeout before returning failure.

CRs-Fixed: 955055
Change-Id: Idb92a0180dd8cc3e662b1ccf44d69e4bbafb29f1
Signed-off-by: default avatarSuman Tatiraju <sumant@codeaurora.org>
parent 5f2fe158
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment