disp: msm: sde: flush pp event work queue before vm release
In some vm transitions, pp work might get executed on event thread after handoff is completed on commit thread leading to crash. This change flushes the pp event thread queue during vm pre-release before lending the io resources to the other vm. Change-Id: I53b76e48bc15084aa5519409fae0e692f49e7558 Signed-off-by: Saurabh Yadav <quic_sauyad@quicinc.com>
This commit is contained in:
@@ -1407,6 +1407,9 @@ int sde_kms_vm_pre_release(struct sde_kms *sde_kms,
|
||||
/* disable vblank events */
|
||||
drm_crtc_vblank_off(crtc);
|
||||
|
||||
/* Flush pp_event thread queue for any pending events */
|
||||
kthread_flush_worker(&priv->pp_event_worker);
|
||||
|
||||
/*
|
||||
* Flush event thread queue for any pending events as vblank work
|
||||
* might get scheduled from drm_crtc_vblank_off
|
||||
|
||||
Reference in New Issue
Block a user