Skip to content

Commit a31a610

Browse files
Esha Bharadwajlumag
authored andcommitted
drm/msm/dpu: add CWB support to dpu_hw_wb
Adjust the WB_MUX configuration to account for using dedicated CWB pingpong blocks. Signed-off-by: Esha Bharadwaj <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Jessica Zhang <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/629248/ Link: https://lore.kernel.org/r/[email protected]
1 parent aae8736 commit a31a610

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_wb.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ static void dpu_hw_wb_bind_pingpong_blk(
173173
mux_cfg = DPU_REG_READ(c, WB_MUX);
174174
mux_cfg &= ~0xf;
175175

176-
if (pp)
176+
if (pp >= PINGPONG_CWB_0)
177+
mux_cfg |= (pp < PINGPONG_CWB_2) ? 0xd : 0xb;
178+
else if (pp)
177179
mux_cfg |= (pp - PINGPONG_0) & 0x7;
178180
else
179181
mux_cfg |= 0xf;

0 commit comments

Comments
 (0)