From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: Revert "drm/imagination: Warn or error on unsupported hardware"
Date: Sat, 16 May 2026 15:12:53 +1000 [thread overview]
Message-ID: <review-patch1-caf5e011a5b3fbdbab8c50d064bc8342212d5cc1.1778505897.git.geert+renesas@glider.be> (raw)
In-Reply-To: <caf5e011a5b3fbdbab8c50d064bc8342212d5cc1.1778505897.git.geert+renesas@glider.be>
Patch Review
**Correctness:** The revert is clean. It removes:
1. The `pvr_exp_hw_support` module parameter and its `module_param_named`/`MODULE_PARM_DESC` declarations
2. The `enum pvr_gpu_support_level` type and its three values
3. The `pvr_gpu_support_level()` function with the BVNC-to-support-level mapping
4. The `pvr_check_gpu_supported()` function with the support-level gating logic
5. Replaces `return pvr_check_gpu_supported(pvr_dev, gpu_id);` with `return 0;`
All removed code is dead after the change — no other callers or references remain.
**Observations:**
1. **No `Fixes:` tag:** The patch doesn't include a `Fixes:` tag pointing to the original commit `1c21f240fbc1e47b`. While this is a revert (not strictly a "fix"), if the intent is for the revert to be backported to stable kernels (since the original commit broke Renesas SoC support), a `Fixes:` tag would be appropriate to signal that. Without it, stable maintainers won't pick it up automatically.
2. **Well-documented rationale:** The below-`---` section is thorough, with 9 references justifying the revert. This is excellent for reviewer context but won't appear in the final git log (which is the right place for it, since it's background justification rather than core commit message content).
3. **Alternative approach not discussed in commit message body:** The commit message body (above the `---`) is very terse — just "Revert commit X, as it stopped the driver from working on various Renesas R-Car SoCs." It doesn't explain why a revert was chosen over adding the BVNC values. A brief note on that design choice would strengthen the commit message for future readers.
4. **Module parameter removal is an ABI change:** Removing the `exp_hw_support` module parameter is technically a user-visible ABI change. Any existing users who set this parameter in their module configuration (e.g., in `/etc/modprobe.d/`) would see a warning about an unknown parameter on the next boot after this patch lands. This is minor but worth noting.
5. **Diff context matches tree:** The removed code at lines 511–580 of the current tree matches the patch's diff context exactly, confirming this is a clean revert against the expected base.
**Verdict:** The patch is technically sound. The main question is whether the drm/imagination maintainers prefer a full revert or would rather have the Renesas BVNCs added to the allowlist. Both approaches are valid; the full revert is simpler and avoids future churn as new SoCs are enabled, but loses the safety net for truly unknown hardware.
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-05-16 5:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-11 13:28 [PATCH] Revert "drm/imagination: Warn or error on unsupported hardware" Geert Uytterhoeven
2026-05-11 14:05 ` Matt Coster
2026-05-11 14:43 ` Geert Uytterhoeven
2026-05-12 10:00 ` Matt Coster
2026-05-16 5:12 ` Claude Code Review Bot [this message]
2026-05-16 5:12 ` Claude review: " 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-caf5e011a5b3fbdbab8c50d064bc8342212d5cc1.1778505897.git.geert+renesas@glider.be \
--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