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: Limit DRM_IOCTL_WAIT_VBLANK to vblank interrupts
Date: Sat, 16 May 2026 09:20:27 +1000	[thread overview]
Message-ID: <review-overall-20260515120916.333614-1-tzimmermann@suse.de> (raw)
In-Reply-To: <20260515120916.333614-1-tzimmermann@suse.de>

Overall Series Review

Subject: drm: Limit DRM_IOCTL_WAIT_VBLANK to vblank interrupts
Author: Thomas Zimmermann <tzimmermann@suse.de>
Patches: 12
Reviewed: 2026-05-16T09:20:27.183260

---

This is a well-structured, straightforward series from Thomas Zimmermann that adds the ability to distinguish between hardware vblank interrupts and simulated (software timer) vblank, and uses that distinction to disable the `DRM_IOCTL_WAIT_VBLANK` ioctl for drivers with simulated vblank. The rationale is sound: the WAIT_VBLANK ioctl is meant for synchronizing with actual display refresh, which is meaningless for software timers. The cover letter confirms that major compositors (Mutter, Weston, KWin) don't rely on this ioctl for rate-limiting.

The series is cleanly organized: infrastructure first (patches 1-2), then mechanical driver conversions (patches 3-9). The backward-compatible inline wrapper for `drm_vblank_init()` is a good approach for an incremental migration.

One notable concern: **`DRM_VBLANK_FLAG_SIMULATED` is defined as `BIT(1)`, skipping `BIT(0)`** with no explanation. This is unconventional and should either be `BIT(0)` or have a comment explaining the reservation.

Overall the series looks good and ready for merge with minor nits.

---
Generated by Claude Code Patch Reviewer

      parent reply	other threads:[~2026-05-15 23:20 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-15 11:55 [PATCH 0/9] drm: Limit DRM_IOCTL_WAIT_VBLANK to vblank interrupts Thomas Zimmermann
2026-05-15 11:55 ` [PATCH 1/9] drm/vblank: Add drmm_vblank_init() to indicate managed cleanup Thomas Zimmermann
2026-05-15 23:20   ` Claude review: " Claude Code Review Bot
2026-05-15 11:55 ` [PATCH 2/9] drm/vblank: Add DRM_VBLANK_FLAG_SIMULATED Thomas Zimmermann
2026-05-15 23:20   ` Claude review: " Claude Code Review Bot
2026-05-15 11:55 ` [PATCH 3/9] drm/amdgpu: vkms: Set DRM_VBLANK_FLAG_SIMULATED Thomas Zimmermann
2026-05-15 23:20   ` Claude review: " Claude Code Review Bot
2026-05-15 11:55 ` [PATCH 4/9] drm/bochs: " Thomas Zimmermann
2026-05-15 23:20   ` Claude review: " Claude Code Review Bot
2026-05-15 11:55 ` [PATCH 5/9] drm/cirrus: " Thomas Zimmermann
2026-05-15 23:20   ` Claude review: " Claude Code Review Bot
2026-05-15 11:55 ` [PATCH 6/9] drm/hypervdrm: " Thomas Zimmermann
2026-05-15 23:20   ` Claude review: " Claude Code Review Bot
2026-05-15 11:55 ` [PATCH 7/9] drm/qxl: " Thomas Zimmermann
2026-05-15 23:20   ` Claude review: " Claude Code Review Bot
2026-05-15 11:55 ` [PATCH 8/9] drm/virtgpu: " Thomas Zimmermann
2026-05-15 23:20   ` Claude review: " Claude Code Review Bot
2026-05-15 11:55 ` [PATCH 9/9] drm/vkms: " Thomas Zimmermann
2026-05-15 23:20   ` Claude review: " Claude Code Review Bot
2026-05-15 15:12 ` [PATCH 0/9] drm: Limit DRM_IOCTL_WAIT_VBLANK to vblank interrupts Michel Dänzer
2026-05-15 16:56   ` Michel Dänzer
2026-05-15 23:20 ` 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-20260515120916.333614-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