Re: [PATCH] drm/msm/dsi: fix pclk rate calculation for bonded dsi
From: Dmitry Baryshkov
Date: Fri Mar 06 2026 - 11:53:01 EST
On Sat, Mar 07, 2026 at 12:32:38AM +0800, Pengyu Luo wrote:
> Recently, we round up new_hdisplay once at most, for bonded dsi, we
> may need twice, since they are independent links, we should round up
> each half separately. This also aligns with the hdisplay we program
> later in dsi_timing_setup()
>
> Example:
> full_hdisplay = 1904, dsc_bpp = 8, bpc = 8
> new_full_hdisplay = DIV_ROUND_UP(1904 * 8, 8 * 3) = 635
>
> if we use half display
> new_half_hdisplay = DIV_ROUND_UP(952 * 8, 8 * 3) = 318
> new_full_display = 636
>
> Fixes: 7c9e4a554d4a ("drm/msm/dsi: Reduce pclk rate for compression")
> Signed-off-by: Pengyu Luo <mitltlatltl@xxxxxxxxx>
> ---
> drivers/gpu/drm/msm/dsi/dsi_host.c | 29 +++++++++++++++++++++++------
> 1 file changed, 23 insertions(+), 6 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>
--
With best wishes
Dmitry