From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/atomic: determine the hotspots attribute first
Date: Sat, 16 May 2026 15:55:01 +1000 [thread overview]
Message-ID: <review-overall-20260511021926.67673-1-yaolu@kylinos.cn> (raw)
In-Reply-To: <20260511021926.67673-1-yaolu@kylinos.cn>
Overall Series Review
Subject: drm/atomic: determine the hotspots attribute first
Author: yaolu@kylinos.cn
Patches: 1
Reviewed: 2026-05-16T15:55:01.344626
---
This is a single-patch series that reorders the `if-else` chain in `drm_atomic_plane_set_property()` and `drm_atomic_plane_get_property()` so that the hotspot property checks happen *before* the driver `atomic_set/get_property` callback fallback.
**The fix is logically correct.** The driver callback is a catch-all fallback for driver-specific properties and should always come last, just before the "unknown property" error case. Having it in the middle of core property checks was a latent bug — if any driver with `DRIVER_CURSOR_HOTSPOT` also implemented `plane->funcs->atomic_set_property`, the hotspot properties would be swallowed by the driver callback and never reach the core handling code.
**Practical impact is currently low.** I checked the four drivers that set `DRIVER_CURSOR_HOTSPOT` (vmwgfx, virtio-gpu, vboxvideo, qxl) and none of them implement plane-level `atomic_set/get_property`. vmwgfx has connector-level callbacks only. So this is a defensive fix against a currently-theoretical bug, but still worth doing — the ordering was clearly wrong and fragile.
**The commit message and metadata need significant improvement** before this should be merged.
---
Generated by Claude Code Patch Reviewer
prev parent reply other threads:[~2026-05-16 5:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-11 2:19 [PATCH] drm/atomic: determine the hotspots attribute first yaolu
2026-05-16 5:55 ` Claude review: " Claude Code Review Bot
2026-05-16 5:55 ` 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-20260511021926.67673-1-yaolu@kylinos.cn \
--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