From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/rockchip: dsi: Relax the lane rate margin requirements
Date: Thu, 04 Jun 2026 11:57:42 +1000 [thread overview]
Message-ID: <review-patch3-20260603033532.164-4-kernel@airkyi.com> (raw)
In-Reply-To: <20260603033532.164-4-kernel@airkyi.com>
Patch Review
**Status: Looks correct, accept with caveats**
Changes the overhead factor from `10/8` (25% margin, i.e. 1/0.8) to `10/9` (~11% margin, i.e. 1/0.9) in two places:
```c
/* Internal PHY path */
tmp = mpclk * (bpp / lanes) * 10 / 9;
/* External PHY path */
phy_mipi_dphy_get_default_config(mode->clock * 1000 * 10 / 9,
bpp, lanes,
&dsi->phy_opts.mipi_dphy);
```
The commit message gives a concrete justification: RGB888 at 148.5 MHz with 4 lanes at 1/0.8 overhead = 1113.75 Mbps, which exceeds the 1000 Mbps limit on PX30/RK3128/RV1126. With 1/0.9, it becomes ~990 Mbps, which fits.
**Concerns:**
- The MIPI DSI spec recommends that the data rate should exceed the required bandwidth to account for protocol overhead (LP escape, ECC, CRC, etc.). 11% margin is tighter than typical. The commit message says "downstream test results" validate this, but it would be helpful to know on which panels/SoCs this was tested.
- The comment `/* since mbps must big than bandwidth of RGB */` (grammar aside) is retained but the meaning changes — the margin is now significantly tighter.
- This is ordered as patch 3/3, so it depends on patch 1 having already set the correct per-chip max. The combination works: chips limited to 1000 Mbps can now drive 148.5 MHz RGB888 panels, which was the motivating use case.
---
## SUMMARY
| Patch | Verdict |
|-------|---------|
| 1/3 — max lane bit rate | **OK** |
| 2/3 — dphy_get_timing | **BUG: rk3506_chip_data missing `.dphy_get_timing` — will NULL deref** |
| 3/3 — relax margin | **OK with caveat** (tighter margin; needs tested panel coverage noted) |
The series should not be merged until `rk3506_chip_data` gets its `.dphy_get_timing` assignment added (likely `dw_mipi_dsi_phy_px30_get_timing`).
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-06-04 1:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-03 3:35 [PATCH v2 0/3] DSI Controller improvements for Rockchip platforms Chaoyi Chen
2026-06-03 3:35 ` [PATCH v2 1/3] drm/rockchip: dsi: Add maximum per lane bit rate calculation Chaoyi Chen
2026-06-04 1:57 ` Claude review: " Claude Code Review Bot
2026-06-03 3:35 ` [PATCH v2 2/3] drm/rockchip: dsi: Add dphy_get_timing support for multiple PHY types Chaoyi Chen
2026-06-04 1:57 ` Claude review: " Claude Code Review Bot
2026-06-03 3:35 ` [PATCH v2 3/3] drm/rockchip: dsi: Relax the lane rate margin requirements Chaoyi Chen
2026-06-04 1:57 ` Claude Code Review Bot [this message]
2026-06-04 1:57 ` Claude review: DSI Controller improvements for Rockchip platforms Claude Code Review Bot
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-patch3-20260603033532.164-4-kernel@airkyi.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