Skip to content

Commit d7c5df5

Browse files
lumaggregkh
authored andcommitted
drm/msm/dpu: correct dpu_plane_virtual_atomic_check()
[ Upstream commit 1a76b25 ] Fix c&p error in dpu_plane_virtual_atomic_check(), compare CRTC width too, in addition to CRTC height. Fixes: 8c62a31 ("drm/msm/dpu: allow using two SSPP blocks for a single plane") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202507150432.U0cALR6W-lkp@intel.com/ Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Reviewed-by: Jessica Zhang <jessica.zhang@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Patchwork: https://patchwork.freedesktop.org/patch/664170/ Link: https://lore.kernel.org/r/20250715-msm-fix-virt-atomic-check-v1-1-9bab02c9f952@oss.qualcomm.com Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 127cbbe commit d7c5df5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ static int dpu_plane_virtual_atomic_check(struct drm_plane *plane,
11691169
if (!old_plane_state || !old_plane_state->fb ||
11701170
old_plane_state->src_w != plane_state->src_w ||
11711171
old_plane_state->src_h != plane_state->src_h ||
1172-
old_plane_state->src_w != plane_state->src_w ||
1172+
old_plane_state->crtc_w != plane_state->crtc_w ||
11731173
old_plane_state->crtc_h != plane_state->crtc_h ||
11741174
msm_framebuffer_format(old_plane_state->fb) !=
11751175
msm_framebuffer_format(plane_state->fb))

0 commit comments

Comments
 (0)