]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/mediatek: Fix config_updating flag never false when no mbox channel
authorJason-JH Lin <jason-jh.lin@mediatek.com>
Mon, 24 Feb 2025 05:12:21 +0000 (13:12 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:16 +0000 (14:39 +0200)
commite5838a2bf16fc669908769d74539499a25e1ccd9
tree5738b79e1df5dabf7b7841029a90e2eb6179f105
parent02e94069c3e9d2e59009663f83412c1bf3f230cc
drm/mediatek: Fix config_updating flag never false when no mbox channel

[ Upstream commit 4ba973c8bad04d59fd4efa62512f4d9cee131714 ]

When CONFIG_MTK_CMDQ is enabled, if the display is controlled by the CPU
while other hardware is controlled by the GCE, the display will encounter
a mbox request channel failure.
However, it will still enter the CONFIG_MTK_CMDQ statement, causing the
config_updating flag to never be set to false. As a result, no page flip
event is sent back to user space, and the screen does not update.

Fixes: da03801ad08f ("drm/mediatek: Move mtk_crtc_finish_page_flip() to ddp_cmdq_cb()")
Signed-off-by: Jason-JH Lin <jason-jh.lin@mediatek.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20250224051301.3538484-1-jason-jh.lin@mediatek.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/mediatek/mtk_crtc.c