2023-09-13 12:03:46

by Fei Shao

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

On Thu, Aug 31, 2023 at 3:12 PM Fei Shao <[email protected]> wrote:
>
> On Tue, Aug 22, 2023 at 10:27 PM Jason-JH.Lin <[email protected]> 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 <[email protected]>
>
> Reviewed-by: Fei Shao <[email protected]>

Also, I verified that this fixes a real world system hang issue on the
MT8195 Chromebook.

Tested-by: Fei Shao <[email protected]>