From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/msm/dpu: enable virtual planes by default
Date: Fri, 27 Feb 2026 12:05:40 +1000 [thread overview]
Message-ID: <review-patch1-20260226-dpu-enable-virt-planes-v2-1-87971236fe86@oss.qualcomm.com> (raw)
In-Reply-To: <20260226-dpu-enable-virt-planes-v2-1-87971236fe86@oss.qualcomm.com>
Patch Review
**Code change:**
```c
-bool dpu_use_virtual_planes;
+bool dpu_use_virtual_planes = true;
```
**Observations:**
1. **Correct and minimal change.** The diff does exactly what the commit message describes. The explicit `= true` initializer is the right approach (rather than, say, inverting the logic and the parameter name).
2. **Boot parameter documentation.** The commit message correctly documents the fallback: `msm.dpu_use_virtual_planes=false`. This matches the `module_param(dpu_use_virtual_planes, bool, 0)` declaration at `dpu_kms.c:56`.
3. **Minor nit — no MODULE_PARM_DESC.** The parameter has no `MODULE_PARM_DESC()`, so `modinfo` won't show any description for it. This pre-dates this patch, but given that the parameter is now the escape hatch for a default-on feature, it might be worth adding one in a follow-up:
```c
MODULE_PARM_DESC(dpu_use_virtual_planes,
"Use virtual planes for improved pipeline utilization (default: true)");
```
4. **Parameter permissions are 0.** The `module_param(..., 0)` means the parameter is not exposed in sysfs at all — it's boot-time only. This is fine for this kind of fundamental mode switch, since changing it at runtime would likely be unsafe without a full modeset teardown/rebuild.
5. **Usage sites are clean.** The variable is checked in two places:
- `dpu_kms.c:852` — choosing between `dpu_plane_init_virtual()` and `dpu_plane_init()` during hardware init.
- `dpu_crtc.c:1537` — conditionally calling `dpu_crtc_reassign_planes()` during atomic check.
Both are one-shot init or atomic-check paths, so the default flip doesn't introduce any new races or lifecycle concerns.
**Verdict:** The patch is correct and ready. No blocking issues. The only suggestion is the optional `MODULE_PARM_DESC` addition for better self-documentation, but that can be a separate cleanup.
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-02-27 2:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-26 13:49 [PATCH RFT v2] drm/msm/dpu: enable virtual planes by default Dmitry Baryshkov
2026-02-27 2:05 ` Claude Code Review Bot [this message]
2026-02-27 2:05 ` 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-20260226-dpu-enable-virt-planes-v2-1-87971236fe86@oss.qualcomm.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