]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/rockchip: vop: clear DMA stop bit on RK3066
authorVal Packett <val@packett.cool>
Mon, 24 Jun 2024 20:40:48 +0000 (17:40 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:46 +0000 (15:11 +0200)
commite1b0752da800962a56bb7c25e9db77f28d2a02c1
tree6bfe0aaf7d50c5129d9547a82cb397d69d7ceb6f
parent5e889e72de5833c88e0d4b5289f6c3b0ea9c07a0
drm/rockchip: vop: clear DMA stop bit on RK3066

[ Upstream commit 6b44aa559d6c7f4ea591ef9d2352a7250138d62a ]

The RK3066 VOP sets a dma_stop bit when it's done scanning out a frame
and needs the driver to acknowledge that by clearing the bit.

Unless we clear it "between" frames, the RGB output only shows noise
instead of the picture. atomic_flush is the place for it that least
affects other code (doing it on vblank would require converting all
other usages of the reg_lock to spin_(un)lock_irq, which would affect
performance for everyone).

This seems to be a redundant synchronization mechanism that was removed
in later iterations of the VOP hardware block.

Fixes: f4a6de855eae ("drm: rockchip: vop: add rk3066 vop definitions")
Cc: stable@vger.kernel.org
Signed-off-by: Val Packett <val@packett.cool>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20240624204054.5524-2-val@packett.cool
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
drivers/gpu/drm/rockchip/rockchip_drm_vop.h
drivers/gpu/drm/rockchip/rockchip_vop_reg.c