Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/msm/dsi: fix bits_per_pclk
@ 2026-03-07 11:12 Pengyu Luo
  2026-03-07 11:12 ` [PATCH 2/2] drm/msm/dsi: fix hdisplay calculation for CMD mode panel Pengyu Luo
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Pengyu Luo @ 2026-03-07 11:12 UTC (permalink / raw)
  To: Rob Clark, Dmitry Baryshkov, Abhinav Kumar, Jessica Zhang,
	Sean Paul, Marijn Suijten, David Airlie, Simona Vetter
  Cc: Pengyu Luo, linux-arm-msm, dri-devel, freedreno, linux-kernel

mipi_dsi_pixel_format_to_bpp return dst bpp not src bpp, dst bpp may
not be the uncompressed data size. use src bpc * 3 to get src bpp,
this aligns with pclk rate calculation.

Fixes: ac47870fd795 ("drm/msm/dsi: fix hdisplay calculation when programming dsi registers")
Signed-off-by: Pengyu Luo <mitltlatltl@gmail.com>
---
 drivers/gpu/drm/msm/dsi/dsi_host.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c
index e8e83ee61e..7c16216e8b 100644
--- a/drivers/gpu/drm/msm/dsi/dsi_host.c
+++ b/drivers/gpu/drm/msm/dsi/dsi_host.c
@@ -1030,7 +1030,7 @@ static void dsi_timing_setup(struct msm_dsi_host *msm_host, bool is_bonded_dsi)
 		 */
 		h_total -= hdisplay;
 		if (wide_bus_enabled)
-			bits_per_pclk = mipi_dsi_pixel_format_to_bpp(msm_host->format);
+			bits_per_pclk = dsc->bits_per_component * 3;
 		else
 			bits_per_pclk = 24;
 
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-04-14 18:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-07 11:12 [PATCH 1/2] drm/msm/dsi: fix bits_per_pclk Pengyu Luo
2026-03-07 11:12 ` [PATCH 2/2] drm/msm/dsi: fix hdisplay calculation for CMD mode panel Pengyu Luo
2026-03-29 18:04   ` Marijn Suijten
2026-03-20  1:48 ` [PATCH 1/2] drm/msm/dsi: fix bits_per_pclk Dmitry Baryshkov
2026-03-20 11:11   ` Pengyu Luo
2026-03-27 19:47 ` Dmitry Baryshkov
2026-04-14 10:13   ` Luca Weiss
2026-04-14 18:11     ` Dmitry Baryshkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox