public inbox for drm-ai-reviews@public-inbox.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] drm/panel-edp: Change BOE NV140WUM-N64 timings
@ 2026-02-26  8:32 Haikun Zhou
  2026-02-26 16:25 ` Doug Anderson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Haikun Zhou @ 2026-02-26  8:32 UTC (permalink / raw)
  To: dianders, neil.armstrong, jesszhan0024, maarten.lankhorst,
	mripard, tzimmermann
  Cc: dri-devel, linux-kernel, Haikun Zhou

This screen timing requires a backlight off time of more than 100ms
from the end of the data stream to avoid screen flickering and red
light caused by screen material limitations.

Signed-off-by: Haikun Zhou <zhouhaikun5@huaqin.corp-partner.google.com>
---
 drivers/gpu/drm/panel/panel-edp.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c
index 13fcf896ca832..436983fdd1139 100644
--- a/drivers/gpu/drm/panel/panel-edp.c
+++ b/drivers/gpu/drm/panel/panel-edp.c
@@ -1935,6 +1935,13 @@ static const struct panel_delay delay_200_500_e200 = {
 	.enable = 200,
 };
 
+static const struct panel_delay delay_200_500_e200_d100 = {
+	.hpd_absent = 200,
+	.unprepare = 500,
+	.enable = 200,
+	.disable = 100,
+};
+
 static const struct panel_delay delay_200_500_e200_d200 = {
 	.hpd_absent = 200,
 	.unprepare = 500,
@@ -2125,7 +2132,7 @@ static const struct edp_panel_entry edp_panels[] = {
 	EDP_PANEL_ENTRY('B', 'O', 'E', 0x0c20, &delay_200_500_e80, "NT140FHM-N47"),
 	EDP_PANEL_ENTRY('B', 'O', 'E', 0x0cb6, &delay_200_500_e200, "NT116WHM-N44"),
 	EDP_PANEL_ENTRY('B', 'O', 'E', 0x0cf2, &delay_200_500_e200, "NV156FHM-N4S"),
-	EDP_PANEL_ENTRY('B', 'O', 'E', 0x0cf6, &delay_200_500_e200, "NV140WUM-N64"),
+	EDP_PANEL_ENTRY('B', 'O', 'E', 0x0cf6, &delay_200_500_e200_d100, "NV140WUM-N64"),
 	EDP_PANEL_ENTRY('B', 'O', 'E', 0x0cfa, &delay_200_500_e50, "NV116WHM-A4D"),
 	EDP_PANEL_ENTRY('B', 'O', 'E', 0x0d45, &delay_200_500_e80, "NV116WHM-N4B"),
 	EDP_PANEL_ENTRY('B', 'O', 'E', 0x0ddf, &delay_200_500_e80, "NV116WHM-T01"),
-- 
2.34.1


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

* Re: [PATCH] drm/panel-edp: Change BOE NV140WUM-N64 timings
  2026-02-26  8:32 [PATCH] drm/panel-edp: Change BOE NV140WUM-N64 timings Haikun Zhou
@ 2026-02-26 16:25 ` Doug Anderson
  2026-02-27  2:30 ` Claude review: " Claude Code Review Bot
  2026-02-27  2:30 ` Claude Code Review Bot
  2 siblings, 0 replies; 4+ messages in thread
From: Doug Anderson @ 2026-02-26 16:25 UTC (permalink / raw)
  To: Haikun Zhou
  Cc: neil.armstrong, jesszhan0024, maarten.lankhorst, mripard,
	tzimmermann, dri-devel, linux-kernel

Hi,

On Thu, Feb 26, 2026 at 12:33 AM Haikun Zhou
<zhouhaikun5@huaqin.corp-partner.google.com> wrote:
>
> This screen timing requires a backlight off time of more than 100ms
> from the end of the data stream to avoid screen flickering and red
> light caused by screen material limitations.
>
> Signed-off-by: Haikun Zhou <zhouhaikun5@huaqin.corp-partner.google.com>
> ---
>  drivers/gpu/drm/panel/panel-edp.c | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)

Reviewed-by: Douglas Anderson <dianders@chromium.org>

...and pushed to drm-misc-next:

[1/1] drm/panel-edp: Change BOE NV140WUM-N64 timings
      commit: bbe814bcb961ed2f30706ffdc806f18150709d2d

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

* Claude review: drm/panel-edp: Change BOE NV140WUM-N64 timings
  2026-02-26  8:32 [PATCH] drm/panel-edp: Change BOE NV140WUM-N64 timings Haikun Zhou
  2026-02-26 16:25 ` Doug Anderson
@ 2026-02-27  2:30 ` Claude Code Review Bot
  2026-02-27  2:30 ` Claude Code Review Bot
  2 siblings, 0 replies; 4+ messages in thread
From: Claude Code Review Bot @ 2026-02-27  2:30 UTC (permalink / raw)
  To: dri-devel-reviews

Overall Series Review

Subject: drm/panel-edp: Change BOE NV140WUM-N64 timings
Author: Haikun Zhou <zhouhaikun5@huaqin.corp-partner.google.com>
Patches: 2
Reviewed: 2026-02-27T12:30:41.042708

---

This is a single-patch series that adds a 100ms backlight-off (disable) delay for the BOE NV140WUM-N64 eDP panel to prevent screen flickering and a red-light artifact caused by panel material limitations. The change is small, mechanical, and follows the established patterns in the `panel-edp.c` driver.

The patch is **mostly correct** but has minor issues with the commit message and the placement of the new delay struct definition.

---
Generated by Claude Code Patch Reviewer

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

* Claude review: drm/panel-edp: Change BOE NV140WUM-N64 timings
  2026-02-26  8:32 [PATCH] drm/panel-edp: Change BOE NV140WUM-N64 timings Haikun Zhou
  2026-02-26 16:25 ` Doug Anderson
  2026-02-27  2:30 ` Claude review: " Claude Code Review Bot
@ 2026-02-27  2:30 ` Claude Code Review Bot
  2 siblings, 0 replies; 4+ messages in thread
From: Claude Code Review Bot @ 2026-02-27  2:30 UTC (permalink / raw)
  To: dri-devel-reviews

Patch Review

**Commit message:**
The commit message says:

> This screen timing requires a backlight off time of more than 100ms
> from the end of the data stream to avoid screen flickering and red
> light caused by screen material limitations.

This is a bit vague. It would be helpful to clarify:
- Whether this is a `.disable` delay (T9 timing per the eDP spec), which it is based on the code. The commit message says "backlight off time" but the `.disable` field is documented in the struct as *"Time for panel to turn the display off (panel-off to backlight-off, T9-min in eDP timing diagrams)"*. The terminology should be more precise — this is a T9 minimum delay, not a backlight-off time per se.
- How the issue was observed (which platform/board), which would help maintainers evaluate the change.

**Code changes — new delay struct:**

```c
+static const struct panel_delay delay_200_500_e200_d100 = {
+	.hpd_absent = 200,
+	.unprepare = 500,
+	.enable = 200,
+	.disable = 100,
+};
```

This correctly follows the established naming convention (`delay_[hpd_absent]_[unprepare]_e[enable]_d[disable]`), and the field values are correct. There are already `_d10`, `_d50`, and `_d200` variants, so `_d100` fits in naturally.

**Minor issue — placement:** The new struct is inserted at line 1938 (after `delay_200_500_e200`), directly before `delay_200_500_e200_d200`. Looking at the existing code in the drm-next tree, the `_d` variants are ordered as `_d200` (line 1791), `_d10` (line 1798), `_d50` (line 1805). The patch places `_d100` between `delay_200_500_e200` and `delay_200_500_e200_d200`. Since the existing `_d` variants aren't numerically ordered either, this placement is acceptable, though ideally all the `_d` variants would be grouped together.

**Code change — panel entry update:**

```c
-	EDP_PANEL_ENTRY('B', 'O', 'E', 0x0cf6, &delay_200_500_e200, "NV140WUM-N64"),
+	EDP_PANEL_ENTRY('B', 'O', 'E', 0x0cf6, &delay_200_500_e200_d100, "NV140WUM-N64"),
```

This is straightforward and correct — swapping the delay struct pointer for the NV140WUM-N64 panel entry.

**Functional assessment:** The `.disable` field is used in `panel_edp_disable()` where it triggers an `msleep()` call. Previously this panel had `.disable` implicitly zero (no delay). Adding a 100ms delay is a conservative, low-risk change. The 100ms value seems reasonable for a T9-min requirement, and similar delays exist for other panels (10ms, 50ms, 200ms).

**Nits:**
- The patch is missing a `Cc: stable` tag if this is fixing a visible user-facing issue (flickering). If this has always been broken, it may warrant backporting.
- It would be good to have a `Tested-by:` tag from someone who verified the fix on actual hardware.

**Verdict:** The patch looks functionally correct and safe. The commit message could be improved with more precise eDP timing terminology and platform context, but the code change itself is clean and follows existing conventions.

---
Generated by Claude Code Patch Reviewer

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

end of thread, other threads:[~2026-02-27  2:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-26  8:32 [PATCH] drm/panel-edp: Change BOE NV140WUM-N64 timings Haikun Zhou
2026-02-26 16:25 ` Doug Anderson
2026-02-27  2:30 ` Claude review: " Claude Code Review Bot
2026-02-27  2:30 ` Claude Code Review Bot

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