disp: msm: sde: manage vblank refcount concurrency
Vblank refcount can reach out of sync with below case 1. event_thread triggers the vblank_enable 2. commit_thread triggers the modeset 2.a modeset resets the vblank refcount with mode_set 3. event_thread triggers the vblank_disable Event 2.a resets the vblank refcount and vblank disable request after 2.a is going to fail. This can be fixed by avoiding concurrency between mode_set call and vblank request. Change-Id: Ibb810ec90e81d63feee443f1c37dd736d5cfac0d Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

orang tua
743dc695c4
melakukan
44cde01fc7
@@ -3619,7 +3619,6 @@ static int sde_kms_hw_init(struct msm_kms *kms)
|
||||
dev->mode_config.max_height = sde_kms->catalog->max_display_height;
|
||||
|
||||
mutex_init(&sde_kms->secure_transition_lock);
|
||||
mutex_init(&sde_kms->vblank_ctl_global_lock);
|
||||
|
||||
atomic_set(&sde_kms->detach_sec_cb, 0);
|
||||
atomic_set(&sde_kms->detach_all_cb, 0);
|
||||
|
Reference in New Issue
Block a user