OpenCloudOS-Kernel/drivers/gpu/drm/mediatek
jason-jh.lin 1a64a7aff8 drm/mediatek: Fix cursor plane no update
The cursor plane should use the current plane state in atomic_async_update
because it would not be the new plane state in the global atomic state
since _swap_state happened when those hook are run.

Fix cursor plane issue by below modification:
1. Remove plane_helper_funcs->atomic_update(plane, state) in
   mtk_drm_crtc_async_update.
2. Add mtk_drm_update_new_state in to mtk_plane_atomic_async_update to
   update the cursor plane by current plane state hook and update
   others plane by the new_state.

Fixes: 37418bf14c ("drm: Use state helper instead of the plane state pointer")
Signed-off-by: jason-jh.lin <jason-jh.lin@mediatek.com>
Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
2021-07-22 22:57:52 +08:00
..
Kconfig phy: mediatek: Move mtk_mipi_dsi_phy driver into drivers/phy/mediatek folder 2020-11-30 23:42:40 +08:00
Makefile drm/mediatek: Separate ccorr module 2021-02-04 22:55:46 +08:00
mtk_cec.c drm/mediatek: Add missing MODULE_DEVICE_TABLE() 2021-03-31 19:38:06 +08:00
mtk_cec.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
mtk_disp_ccorr.c drm/mediatek: Add matrix_bits private data for ccorr 2021-02-04 22:55:46 +08:00
mtk_disp_color.c drm/mediatek/mtk_disp_color: Strip incorrect doc and demote header 2021-06-03 13:27:26 +02:00
mtk_disp_drv.h drm/mediatek: Separate ccorr module 2021-02-04 22:55:46 +08:00
mtk_disp_gamma.c drm/mediatek/mtk_disp_gamma: Strip and demote non-conformant kernel-doc header 2021-06-03 13:28:39 +02:00
mtk_disp_ovl.c drm/mediatek/mtk_disp_ovl: Strip and demote non-conformant header 2021-06-03 13:28:48 +02:00
mtk_disp_rdma.c drm/mediatek/mtk_disp_rdma: Strip and demote non-conformant kernel-doc header 2021-06-03 13:28:57 +02:00
mtk_dpi.c drm/mediatek: mtk-dpi: Set out_fmt from config if not the last bridge 2021-07-22 22:44:42 +08:00
mtk_dpi_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
mtk_drm_crtc.c drm/mediatek: Fix cursor plane no update 2021-07-22 22:57:52 +08:00
mtk_drm_crtc.h drm-misc-next for 5.13: 2021-03-16 17:08:46 +10:00
mtk_drm_ddp_comp.c drm/mediatek: Separate ccorr module 2021-02-04 22:55:46 +08:00
mtk_drm_ddp_comp.h drm/mediatek: Move mtk_ddp_comp_init() from sub driver to DRM driver 2021-01-07 06:28:16 +08:00
mtk_drm_drv.c drm/mediatek: Add missing MODULE_DEVICE_TABLE() 2021-03-31 19:38:06 +08:00
mtk_drm_drv.h drm/mediatek: Separate ccorr module 2021-02-04 22:55:46 +08:00
mtk_drm_gem.c drm/prime: split array import functions v4 2020-11-30 15:00:45 +01:00
mtk_drm_gem.h drm/mediatek: Use struct dma_buf_map in GEM vmap ops 2020-11-10 10:39:16 +01:00
mtk_drm_plane.c drm/mediatek: Fix cursor plane no update 2021-07-22 22:57:52 +08:00
mtk_drm_plane.h drm/mediatek: update cursors by using async atomic update 2019-12-20 16:19:11 +08:00
mtk_dsi.c drm/mediatek: Add missing MODULE_DEVICE_TABLE() 2021-03-31 19:38:06 +08:00
mtk_hdmi.c drm/mediatek: hdmi: Add MT8167 configuration 2021-05-13 07:59:18 +08:00
mtk_hdmi.h drm/mediatek: Separate mtk_hdmi_phy to an independent module 2020-09-06 07:02:54 +08:00
mtk_hdmi_ddc.c drm/mediatek: Add missing MODULE_DEVICE_TABLE() 2021-03-31 19:38:06 +08:00
mtk_hdmi_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00