From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/msm/dsi: fix hdisplay calculation when programming dsi registers
Date: Sun, 15 Feb 2026 19:06:21 +1000 [thread overview]
Message-ID: <review-overall-20260214105145.105308-1-mitltlatltl@gmail.com> (raw)
In-Reply-To: <20260214105145.105308-1-mitltlatltl@gmail.com>
Overall Series Review
Subject: drm/msm/dsi: fix hdisplay calculation when programming dsi registers
Author: Pengyu Luo <mitltlatltl@gmail.com>
Patches: 1
Reviewed: 2026-02-15T19:06:21.715308
---
This is a single patch fixing the `hdisplay` calculation in `dsi_timing_setup()` for DSC-compressed video when widebus is enabled. The commit message claims the current code only works for a 3:1 compressed ratio and that a panel with DSC BPP=8 and BPC=10 would get wrong values because the default `bits_per_pclk` of 24 doesn't account for pixel formats with different bit depths.
The patch renames `bytes_per_pclk` to `bits_per_pclk`, replaces the hardcoded 3/6 values with `mipi_dsi_pixel_format_to_bpp()` (when widebus is enabled) or 24 (when not), and adjusts the division to work in bits rather than bytes. It also removes the `MIPI_DSI_MODE_VIDEO` guard, so widebus now takes effect for video mode too (previously it was CMD-only).
The core mathematical concern is whether `mipi_dsi_pixel_format_to_bpp(msm_host->format)` is the correct divisor. The commit message says this should cross-compare with `dsi_adjust_pclk_for_compression()`, which uses `dsc->bits_per_component * 3` as its uncompressed-bpp divisor. For 8bpc panels with RGB888 these agree (both yield 24), but they diverge for 10bpc or 12bpc panels where `bpc * 3` would be 30 or 36 while `mipi_dsi_pixel_format_to_bpp(MIPI_DSI_FMT_RGB888)` still returns 24. This discrepancy warrants clarification.
---
Generated by Claude Code Patch Reviewer
prev parent reply other threads:[~2026-02-15 9:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-14 10:51 [PATCH] drm/msm/dsi: fix hdisplay calculation when programming dsi registers Pengyu Luo
2026-02-15 9:06 ` Claude review: " Claude Code Review Bot
2026-02-15 9:06 ` Claude Code Review Bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=review-overall-20260214105145.105308-1-mitltlatltl@gmail.com \
--to=claude-review@example.com \
--cc=dri-devel-reviews@example.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox