From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm: Improve logic behind damage handling
Date: Sat, 16 May 2026 15:34:43 +1000 [thread overview]
Message-ID: <review-overall-20260511122421.114014-1-tzimmermann@suse.de> (raw)
In-Reply-To: <20260511122421.114014-1-tzimmermann@suse.de>
Overall Series Review
Subject: drm: Improve logic behind damage handling
Author: Thomas Zimmermann <tzimmermann@suse.de>
Patches: 11
Reviewed: 2026-05-16T15:34:43.959666
---
This is a well-structured cleanup series from Thomas Zimmermann that consolidates and simplifies the DRM damage clipping logic. The core problem is real: damage evaluation was happening at the wrong point in the atomic check pipeline (before driver atomic_check could trigger modesets), leading to inconsistent state visible to different pipeline stages and drivers working around the framework.
The approach is sound:
1. Stop mutating `fb_damage_clips`; use the `ignore_damage_clips` flag instead (patch 1)
2. Move damage evaluation to after all atomic_check helpers (patches 2, 4, 8)
3. Clean up drivers that no longer need old_state (patches 3, 5, 6, 7, 10)
4. Cosmetic rename (patch 9)
The series is generally clean and correct. There are a few observations below, one being a potential resource leak bug in the appletbdrm patch. The removal of unit tests in patch 4 is justified since the src-moved tests now exercise a different code path (the check happens at check time, not iter_init time).
**Recommendation**: Mostly looks good. One bug to fix in patch 5 (appletbdrm error path leak), and a minor nit on patch ordering. Otherwise, ready for merge after addressing those.
---
Generated by Claude Code Patch Reviewer
prev parent reply other threads:[~2026-05-16 5:34 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-11 12:22 [PATCH v2 00/10] drm: Improve logic behind damage handling Thomas Zimmermann
2026-05-11 12:22 ` [PATCH v2 01/10] drm/damage-helper: Do not alter damage clips on modeset, but ignore them Thomas Zimmermann
2026-05-16 5:34 ` Claude review: " Claude Code Review Bot
2026-05-11 12:22 ` [PATCH v2 02/10] drm/atomic-helpers: Evaluate plane damage after atomic_check Thomas Zimmermann
2026-05-16 5:34 ` Claude review: " Claude Code Review Bot
2026-05-11 12:22 ` [PATCH v2 03/10] drm/ingenic: Remove calls to drm_atomic_helper_check_plane_damage() Thomas Zimmermann
2026-05-16 5:34 ` Claude review: " Claude Code Review Bot
2026-05-11 12:22 ` [PATCH v2 04/10] drm/damage-helper: Test src coord in drm_atomic_helper_check_plane_damage() Thomas Zimmermann
2026-05-16 5:34 ` Claude review: " Claude Code Review Bot
2026-05-11 12:22 ` [PATCH v2 05/10] drm/appletbdrm: Allocate request/response buffers in begin_fb_access Thomas Zimmermann
2026-05-16 5:34 ` Claude review: " Claude Code Review Bot
2026-05-11 12:22 ` [PATCH v2 06/10] drm/damage-helper: Remove old state from drm_atomic_helper_damage_iter_init() Thomas Zimmermann
2026-05-16 5:34 ` Claude review: " Claude Code Review Bot
2026-05-11 12:22 ` [PATCH v2 07/10] drm/damage-helper: Remove old state from drm_atomic_helper_damage_merged() Thomas Zimmermann
2026-05-16 5:34 ` Claude review: " Claude Code Review Bot
2026-05-11 12:22 ` [PATCH v2 08/10] drm/atomic_helper: Do not evaluate plane damage before atomic_check Thomas Zimmermann
2026-05-16 5:34 ` Claude review: " Claude Code Review Bot
2026-05-11 12:22 ` [PATCH v2 09/10] drm/damage-helper: Rename state parameters in damage helpers Thomas Zimmermann
2026-05-16 5:34 ` Claude review: " Claude Code Review Bot
2026-05-11 12:22 ` [PATCH v2 10/10] drm/vmwgfx: Remove unused field struct vmwgfx_du_update_plane.old_state Thomas Zimmermann
2026-05-16 5:34 ` Claude review: " Claude Code Review Bot
2026-05-16 5:34 ` 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-20260511122421.114014-1-tzimmermann@suse.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