public inbox for drm-ai-reviews@public-inbox.freedesktop.org
 help / color / mirror / Atom feed
From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm: detect panel type from DisplayID 2.x
Date: Sat, 16 May 2026 11:17:30 +1000	[thread overview]
Message-ID: <review-overall-20260514065606.1151834-1-chen-yu.chen@amd.com> (raw)
In-Reply-To: <20260514065606.1151834-1-chen-yu.chen@amd.com>

Overall Series Review

Subject: drm: detect panel type from DisplayID 2.x
Author: Chenyu Chen <chen-yu.chen@amd.com>
Patches: 5
Reviewed: 2026-05-16T11:17:30.013253

---

This 2-patch series adds DisplayID v2.x Display Parameters Data Block parsing to detect LCD vs OLED panels, and wires it into amdgpu_dm as a fallback panel type detection path. The general approach is sound: it fills a longstanding TODO in the amdgpu_dm code.

**However, there is a significant gap across the series:** `DRM_MODE_PANEL_TYPE_LCD` is added to the UAPI header (`drm_mode.h`) but:
1. The `drm_panel_type_enum_list` in `drm_connector.c` is not updated to include LCD, so the `panel_type` property enum doesn't recognize value 2.
2. The property-setting code at the end of `dm_set_panel_type()` is not updated to expose LCD — it only maps `PANEL_TYPE_OLED` → `DRM_MODE_PANEL_TYPE_OLED` and everything else → `DRM_MODE_PANEL_TYPE_UNKNOWN`.

This means a DID2-detected LCD panel will correctly set `link->panel_type = PANEL_TYPE_LCD` internally, but userspace will see `DRM_MODE_PANEL_TYPE_UNKNOWN` from the property, and the enum property likely cannot even accept value 2. The new UAPI constant is effectively dead code.

---

---
Generated by Claude Code Patch Reviewer

      parent reply	other threads:[~2026-05-16  1:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-14  6:54 [PATCH 0/2] drm: detect panel type from DisplayID 2.x Chenyu Chen
2026-05-14  6:54 ` [PATCH 1/2] drm/edid: parse panel type from DisplayID 2.x Display Parameters block Chenyu Chen
2026-05-15  8:23   ` Jani Nikula
2026-05-15 23:47     ` Leo Li
2026-05-16  1:17   ` Claude review: " Claude Code Review Bot
2026-05-14  6:54 ` [PATCH 2/2] drm/amd/display: use DisplayID panel type in dm_set_panel_type Chenyu Chen
2026-05-16  1:17   ` Claude review: " Claude Code Review Bot
2026-05-16  1:17 ` 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-20260514065606.1151834-1-chen-yu.chen@amd.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