drm/rockchip: vop2: remove afbc disable when close cluster at rk356x

Disable cluster afbc when close cluster is a reasonable operation,
but for some design reasons, this will lead to VOP iommu pagefault at rk356x,
so we keep it always on at rk356x.

Fixes: 8379fd7555 ("drm/rockchip: vop2: add support rk3576")
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I9931da7f45171161b46fb46ab6b8e1e377debab0
This commit is contained in:
Sandy Huang
2024-03-19 19:29:39 +08:00
committed by Tao Huang
parent 9a148a7c75
commit 077e48341d

View File

@@ -1955,7 +1955,12 @@ static void vop2_win_disable(struct vop2_win *win, bool skip_splice_win)
}
VOP_CLUSTER_SET(vop2, win, enable, 0);
VOP_CLUSTER_SET(vop2, win, afbc_enable, 0);
/*
* If disable AFBC when close cluster will lead to VOP iommu
* pagefault at rk356x.
*/
if (vop2->version != VOP_VERSION_RK3568)
VOP_CLUSTER_SET(vop2, win, afbc_enable, 0);
}
/*