On Wed, 13 Dec 2023 at 01:11, Paloma Arellano <quic_parellan@xxxxxxxxxxx> wrote: > > Add a mutex lock to control vblank irq to synchronize vblank > enable/disable operations happening from different threads to prevent > race conditions while registering/unregistering the vblank irq callback. > > v4: -Removed vblank_ctl_lock from dpu_encoder_virt, so it is only a > parameter of dpu_encoder_phys. > -Switch from atomic refcnt to a simple int counter as mutex has > now been added > v3: Mistakenly did not change wording in last version. It is done now. > v2: Slightly changed wording of commit message > > Signed-off-by: Paloma Arellano <quic_parellan@xxxxxxxxxxx> > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 1 - > .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h | 4 ++- > .../drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 32 ++++++++++++------ > .../drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 33 ++++++++++++------- > 4 files changed, 47 insertions(+), 23 deletions(-) Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx> -- With best wishes Dmitry