]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/msm/dpu: calculate data_width like downstream
authorAlexander Koskovich <akoskovich@pm.me>
Sun, 22 Mar 2026 18:48:09 +0000 (18:48 +0000)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Wed, 25 Mar 2026 07:42:19 +0000 (09:42 +0200)
commit3bd3d4999f6fbb53631d268af3cdf837601bb77c
treec414017f460a4e57c6ee67ebb4d107c20704ae11
parent7c5166fd79fcee30b29edc90a504d4a387f256ff
drm/msm/dpu: calculate data_width like downstream

Derive INTF data_width from dce_bytes_per_line rather than
timing->width when DSC is enabled. Use DIV_ROUND_UP to avoid
rounding errors.

Signed-off-by: Alexander Koskovich <akoskovich@pm.me>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Tested-by: Pengyu Luo <mitltlatltl@gmail.com> # Lenovo Legion Y700 Gen4 (SM8750)
Patchwork: https://patchwork.freedesktop.org/patch/713333/
Link: https://lore.kernel.org/r/20260322-fix-data-width-calc-v2-1-d5f28136bc4e@pm.me
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.h