From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/probe-helper: Honour connector->force in drm_helper_probe_detect()
Date: Wed, 27 May 2026 13:57:30 +1000 [thread overview]
Message-ID: <review-patch1-20260526223203.42982-2-pmenzel@molgen.mpg.de> (raw)
In-Reply-To: <20260526223203.42982-2-pmenzel@molgen.mpg.de>
Patch Review
**Correctness: Good**
The early return at line 404-408 is placed before both code paths (`!ctx` and the locked path), so it covers all callers uniformly. The return value `connector_status_disconnected` is consistent with what `drm_helper_probe_single_connector_modes()` sets at line 600 for `DRM_FORCE_OFF`.
**Epoch counter behavior: Acceptable**
The early return bypasses the `epoch_counter` increment at line 419-420. This is fine because:
- For the initial boot probe, `connector->status` starts as `connector_status_unknown`, so the first call returning `connector_status_disconnected` would trigger an epoch bump in the `!ctx` path (via `drm_helper_probe_detect_ctx` at line 377-378). However, with this patch the early return skips that bump. In practice, this is a non-issue: the polling path at line 795 already skips forced connectors entirely (`if (connector->force) continue`), and `drm_helper_probe_single_connector_modes()` at line 595 handles forced connectors before calling `drm_helper_probe_detect()`.
- The i915 caller at `intel_hotplug.c:322` checks `old_epoch_counter != connector->base.epoch_counter` at line 326, but since the connector is forced off, no epoch change is expected and `INTEL_HOTPLUG_UNCHANGED` will be returned, which is the correct result.
**One minor observation on callers:**
The `drm_helper_hpd_irq_event()` caller at line 994 does `connector->status = drm_helper_probe_detect(...)` unconditionally (no `!connector->force` guard like i915 has at line 323). With this patch, a forced-off connector receiving an HPD IRQ would now get `connector_status_disconnected` assigned directly, which is the correct status for a forced-off connector. Previously it would have run the full detect and potentially set `connector_status_connected`, which would then be overridden later by `drm_helper_probe_single_connector_modes()`. So this is actually a slight improvement for that path too.
**Style: Clean**
The debug message format `[CONNECTOR:%d:%s] forced off, skipping detect` follows the existing DRM debug conventions in the file.
**Commit message: Well-written**
Clear problem description, explicit rationale for why `DRM_FORCE_ON`/`DRM_FORCE_ON_DIGITAL` are not short-circuited, and includes test evidence. The version history is helpful.
**Minor nit (non-blocking):** The commit message has a missing closing backtick on the test command line:
```
With `video=DP-2:d drm.debug=0x04, Linux logs:
```
should be:
```
With `video=DP-2:d drm.debug=0x04`, Linux logs:
```
**Verdict: Reviewed-by worthy.** The patch is correct, minimal, and well-explained.
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-05-27 3:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-26 22:32 [PATCH v3] drm/probe-helper: Honour connector->force in drm_helper_probe_detect() Paul Menzel
2026-05-27 3:57 ` Claude review: " Claude Code Review Bot
2026-05-27 3:57 ` Claude Code Review Bot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-05-26 19:18 [PATCH v2] drm/probe-helper: honour " Paul Menzel
2026-05-27 4:18 ` Claude review: " Claude Code Review Bot
2026-05-27 4:18 ` Claude Code Review Bot
2026-05-26 15:20 [PATCH] " Paul Menzel
2026-05-27 4:37 ` Claude review: " Claude Code Review Bot
2026-05-27 4:37 ` 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-patch1-20260526223203.42982-2-pmenzel@molgen.mpg.de \
--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