drm/rockchip: vop2: add reset vp->win_mask

vp->mask must initialize correctly, otherwise after suspend and
resume, the software state[vp->mask] maybe different with hardware
state and lead to close win error or timeout.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Icc605878b6ac74b24dde44f7933bc761ccdcd526
This commit is contained in:
Sandy Huang
2024-10-22 11:49:53 +08:00
committed by Tao Huang
parent b021dd5871
commit c65d2fce11

View File

@@ -4154,6 +4154,10 @@ static void vop3_layer_map_initial(struct vop2 *vop2, uint32_t current_vp_id)
{
uint16_t vp_id;
struct drm_plane *plane = NULL;
int i = 0;
for (i = 0; i < vop2->data->nr_vps; i++)
vop2->vps[i].win_mask = 0;
drm_for_each_plane(plane, vop2->drm_dev) {
struct vop2_win *win = to_vop2_win(plane);