drm/rockchip: vop2: clear afbc en and transform bit for cluster window at linear...
authorAndy Yan <andy.yan@rock-chips.com>
Mon, 11 Dec 2023 11:57:41 +0000 (19:57 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 13 Dec 2023 14:17:48 +0000 (15:17 +0100)
commit20529a68307feed00dd3d431d3fff0572616b0f2
tree8197dc9828f64279001891bc567445714244f925
parentbebad6bd4fbdc448ad3b337ad281b813e68f6f53
drm/rockchip: vop2: clear afbc en and transform bit for cluster window at linear mode

The enable bit and transform offset of cluster windows should be
cleared when it work at linear mode, or we may have a iommu fault
issue on rk3588 which cluster windows switch between afbc and linear
mode.

As the cluster windows of rk3568 only supports afbc format
so is therefore not affected.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20231211115741.1784954-1-andyshrk@163.com
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c