public inbox for drm-ai-reviews@public-inbox.freedesktop.org
 help / color / mirror / Atom feed
From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/atomic: Rework initial state allocation
Date: Sat, 16 May 2026 13:22:51 +1000	[thread overview]
Message-ID: <review-overall-20260512-drm-mode-config-init-v4-0-591dfdcc1bf9@kernel.org> (raw)
In-Reply-To: <20260512-drm-mode-config-init-v4-0-591dfdcc1bf9@kernel.org>

Overall Series Review

Subject: drm/atomic: Rework initial state allocation
Author: Maxime Ripard <mripard@kernel.org>
Patches: 21
Reviewed: 2026-05-16T13:22:51.675458

---

This is a well-structured 20-patch series from Maxime Ripard that introduces a new `atomic_create_state` callback pattern for DRM planes, CRTCs, and connectors (previously only available for `drm_private_obj`), and creates a new `drm_mode_config_create_initial_state()` helper to cleanly separate initial state creation from suspend/resume reset.

The motivation is sound: `reset()` is overloaded — used for initial state allocation, hardware reset, and suspend/resume — making it hard to reason about side effects and error handling. The new `atomic_create_state` is fallible, side-effect-free, and purely for state allocation/initialization.

The series is well-ordered: documentation and typo fixes first, then renames (`_reset` -> `_init`), then the new callbacks for each object type, then the central `drm_mode_config_create_initial_state()`, and finally driver conversions (tidss, bridge_connector).

**There is one real bug** in patch 16 — a connector list iterator leak on error. Most other patches are straightforward and correct. The series has good review coverage (Laurent Pinchart, Thomas Zimmermann, Dmitry Baryshkov, Tomi Valkeinen).

---
Generated by Claude Code Patch Reviewer

  parent reply	other threads:[~2026-05-16  3:22 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-12 13:05 [PATCH v4 00/20] drm/atomic: Rework initial state allocation Maxime Ripard
2026-05-12 13:05 ` [PATCH v4 01/20] drm/atomic: Document atomic commit lifetime Maxime Ripard
2026-05-16  3:22   ` Claude review: " Claude Code Review Bot
2026-05-12 13:06 ` [PATCH v4 02/20] drm/colorop: Fix typos in the doc Maxime Ripard
2026-05-16  3:22   ` Claude review: " Claude Code Review Bot
2026-05-12 13:06 ` [PATCH v4 03/20] drm/atomic: Drop drm_private_obj.state assignment from create_state Maxime Ripard
2026-05-16  3:22   ` Claude review: " Claude Code Review Bot
2026-05-12 13:06 ` [PATCH v4 04/20] drm/atomic: Expand atomic_create_state expectations for drm_private_obj Maxime Ripard
2026-05-16  3:22   ` Claude review: " Claude Code Review Bot
2026-05-12 13:06 ` [PATCH v4 05/20] drm/mode-config: Document drm_private_obj exclusion from drm_mode_config_reset() Maxime Ripard
2026-05-16  3:22   ` Claude review: " Claude Code Review Bot
2026-05-12 13:06 ` [PATCH v4 06/20] drm/colorop: Rename __drm_colorop_state_reset() Maxime Ripard
2026-05-16  3:22   ` Claude review: " Claude Code Review Bot
2026-05-12 13:06 ` [PATCH v4 07/20] drm/colorop: Create drm_atomic_helper_colorop_create_state() Maxime Ripard
2026-05-16  3:22   ` Claude review: " Claude Code Review Bot
2026-05-12 13:06 ` [PATCH v4 08/20] drm/atomic-state-helper: Fix __drm_atomic_helper_plane_reset() doc typo Maxime Ripard
2026-05-16  3:22   ` Claude review: " Claude Code Review Bot
2026-05-12 13:06 ` [PATCH v4 09/20] drm/atomic-state-helper: Rename __drm_atomic_helper_plane_state_reset() Maxime Ripard
2026-05-16  3:22   ` Claude review: " Claude Code Review Bot
2026-05-12 13:06 ` [PATCH v4 10/20] drm/plane: Add new atomic_create_state callback Maxime Ripard
2026-05-16  3:22   ` Claude review: " Claude Code Review Bot
2026-05-12 13:06 ` [PATCH v4 11/20] drm/atomic-state-helper: Rename __drm_atomic_helper_crtc_state_reset() Maxime Ripard
2026-05-16  3:22   ` Claude review: " Claude Code Review Bot
2026-05-12 13:06 ` [PATCH v4 12/20] drm/crtc: Add new atomic_create_state callback Maxime Ripard
2026-05-16  3:22   ` Claude review: " Claude Code Review Bot
2026-05-12 13:06 ` [PATCH v4 13/20] drm/atomic-state-helper: Rename __drm_atomic_helper_connector_state_reset() Maxime Ripard
2026-05-16  3:22   ` Claude review: " Claude Code Review Bot
2026-05-12 13:06 ` [PATCH v4 14/20] drm/hdmi: Rename __drm_atomic_helper_connector_hdmi_reset() Maxime Ripard
2026-05-16  3:22   ` Claude review: " Claude Code Review Bot
2026-05-12 13:06 ` [PATCH v4 15/20] drm/connector: Add new atomic_create_state callback Maxime Ripard
2026-05-16  3:22   ` Claude review: " Claude Code Review Bot
2026-05-12 13:06 ` [PATCH v4 16/20] drm/mode-config: Create drm_mode_config_create_initial_state() Maxime Ripard
2026-05-16  3:22   ` Claude review: " Claude Code Review Bot
2026-05-12 13:06 ` [PATCH v4 17/20] drm/drv: Switch skeleton to drm_mode_config_create_initial_state() Maxime Ripard
2026-05-16  3:22   ` Claude review: " Claude Code Review Bot
2026-05-12 13:06 ` [PATCH v4 18/20] drm/tidss: Switch " Maxime Ripard
2026-05-16  3:22   ` Claude review: " Claude Code Review Bot
2026-05-12 13:06 ` [PATCH v4 19/20] drm/tidss: Convert to atomic_create_state Maxime Ripard
2026-05-16  3:22   ` Claude review: " Claude Code Review Bot
2026-05-12 13:06 ` [PATCH v4 20/20] drm/bridge_connector: " Maxime Ripard
2026-05-16  3:22   ` Claude review: " Claude Code Review Bot
2026-05-16  3:22 ` Claude Code Review Bot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-03-20 16:27 [PATCH v2 00/20] drm/atomic: Rework initial state allocation Maxime Ripard
2026-03-21 17:32 ` Claude review: " Claude Code Review Bot
2026-03-10 16:06 [PATCH 00/14] " Maxime Ripard
2026-03-11  3:09 ` 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-overall-20260512-drm-mode-config-init-v4-0-591dfdcc1bf9@kernel.org \
    --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