Re: [PATCH] drm/mediatek: Add spinlock for setting vblank event in atomic_begin

From: Fei Shao
Date: Thu Aug 31 2023 - 03:13:38 EST


On Tue, Aug 22, 2023 at 10:27 PM Jason-JH.Lin <jason-jh.lin@xxxxxxxxxxxx> wrote:
>
> Add spinlock protection to avoid race condition on vblank event
> between mtk_drm_crtc_atomic_begin() and mtk_drm_finish_page_flip().
>
> Fixes: 119f5173628a ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.")
> Signed-off-by: Jason-JH.Lin <jason-jh.lin@xxxxxxxxxxxx>

Reviewed-by: Fei Shao <fshao@xxxxxxxxxxxx>