Skip to content
Snippets Groups Projects
Commit a033d772 authored by Ingrid Gallardo's avatar Ingrid Gallardo Committed by Devin Kim
Browse files

msm: mdss: fix race conditions when enabling mdp clocks


During the early wakeup event for command mode panels
the enable of power, clocks and restore of the
controllers status happen in a different thread
context. This can cause a race condition with
multiple threads that also try to enable the power
resources and assume that the status of the
controllers has been restored.
Prevent race condition for multiple threads trying
to enable the resources, by making sure that the
complete power on, clocks and restore of the
controllers happen before return from the first
call to enable the clocks. This fixes random ping pong
timeouts observed due above described race conditions.

Bug: 35217359
Change-Id: Ie3607797994a5d4f533c4d4838718b0229e32dc6
Signed-off-by: default avatarIngrid Gallardo <ingridg@codeaurora.org>
Signed-off-by: default avatarguilbert.lee <guilbert.lee@lge.com>
Signed-off-by: default avatarDevin Kim <dojip.kim@lge.com>
parent 35dba3c7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment