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/msm/dp: add EDID re-read retry in msm_dp_panel_get_modes()
Date: Thu, 04 Jun 2026 14:42:15 +1000	[thread overview]
Message-ID: <review-overall-20260531-drm_plug_flaky_edid-v1-1-2708c16dce97@oldschoolsolutions.biz> (raw)
In-Reply-To: <20260531-drm_plug_flaky_edid-v1-1-2708c16dce97@oldschoolsolutions.biz>

Overall Series Review

Subject: drm/msm/dp: add EDID re-read retry in msm_dp_panel_get_modes()
Author: Jens Glathe via B4 Relay
 <devnull+jens.glathe.oldschoolsolutions.biz@kernel.org>
Patches: 5
Reviewed: 2026-06-04T14:42:15.755995

---

This is a single patch that adds EDID re-read retry logic to `msm_dp_panel_get_modes()` to handle the case where the initial EDID read (done in `msm_dp_panel_read_sink_caps()` during HPD) returns a structurally valid but content-deficient EDID that yields zero modes.

The problem being addressed is real — flaky USB-C/DP adapters can produce garbage EDIDs, and retrying the read is a reasonable workaround. However, the implementation has several significant issues with correctness, placement, and missing checks.

**Verdict: Needs rework.** The retry logic belongs in `msm_dp_panel_read_sink_caps()` where the EDID is originally read, not in `get_modes()`. The current patch also has bugs around the zero-modes-from-re-read path and introduces sleeping in a callback context that may not be appropriate.

---

---
Generated by Claude Code Patch Reviewer

      parent reply	other threads:[~2026-06-04  4:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-31 21:16 [PATCH] drm/msm/dp: add EDID re-read retry in msm_dp_panel_get_modes() Jens Glathe via B4 Relay
2026-06-01 10:54 ` Jani Nikula
2026-06-01 10:57 ` Jani Nikula
2026-06-02 18:26   ` Jens Glathe
2026-06-01 11:20 ` Dmitry Baryshkov
2026-06-04  4:42 ` Claude review: " Claude Code Review Bot
2026-06-04  4:42 ` 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-20260531-drm_plug_flaky_edid-v1-1-2708c16dce97@oldschoolsolutions.biz \
    --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