]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mediatek: Check plane visibility in atomic_update
authorHsin-Yi Wang <hsinyi@chromium.org>
Mon, 22 Jun 2020 15:57:53 +0000 (23:57 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Sat, 27 Jun 2020 02:08:03 +0000 (10:08 +0800)
commita16e570027231d5bf0e77df3578abd0a1b227890
treee78d3350a2161b71f05dab2cfa7b862e267ec4db
parent2ea80c70a1e77c36625dcf7f410e37cb82a254b8
drm/mediatek: Check plane visibility in atomic_update

Disable the plane if it's not visible. Otherwise mtk_ovl_layer_config()
would proceed with invalid plane and we may see vblank timeout.

Fixes: 8f0f8d0f3cce ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.")
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_drm_plane.c