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/vblank: timer: Return success status from get_vblank_timeout
Date: Thu, 04 Jun 2026 14:03:58 +1000	[thread overview]
Message-ID: <review-patch1-20260601141922.91498-2-tzimmermann@suse.de> (raw)
In-Reply-To: <20260601141922.91498-2-tzimmermann@suse.de>

Patch Review

**Concept:** Good. Propagating failure instead of silently returning `ktime_get()` is the right thing.

**Issue: vmwgfx caller not updated.** `vmw_vkms_get_vblank_timestamp()` at `drivers/gpu/drm/vmwgfx/vmwgfx_vkms.c:245` still calls `drm_crtc_vblank_get_vblank_timeout(crtc, vblank_time)` and ignores the return value, unconditionally returning `true`:

```c
drm_crtc_vblank_get_vblank_timeout(crtc, vblank_time);
return true;
```

After this patch, when the function returns `false`, `vblank_time` is uninitialized/stale, yet vmwgfx will report success to the vblank core. This needs the same treatment as `drm_crtc_vblank_helper_get_vblank_timestamp_from_timer`:

```c
return drm_crtc_vblank_get_vblank_timeout(crtc, vblank_time);
```

**Minor:** The existing `drm_WARN_ON(crtc->dev, !ktime_compare(...))` path in the original code returned `void`, so it was a silent "give up." Now it returns `false`, which is correct behavior, but the `drm_WARN_ON` will print a kernel warning for a condition that may not truly be an error (the timer could have legitimately just expired). Consider whether a `drm_dbg_vbl` is more appropriate here.

---

---
Generated by Claude Code Patch Reviewer

  reply	other threads:[~2026-06-04  4:03 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-01 14:08 [PATCH 0/7] drm/vblank: timer: Fix timestamps and improve reliabilty Thomas Zimmermann
2026-06-01 14:08 ` [PATCH 1/7] drm/vblank: timer: Return success status from get_vblank_timeout Thomas Zimmermann
2026-06-04  4:03   ` Claude Code Review Bot [this message]
2026-06-01 14:08 ` [PATCH 2/7] drm/vblank: timer: Fix timestamp calculation Thomas Zimmermann
2026-06-01 16:24   ` Michel Dänzer
2026-06-01 17:30     ` Thomas Zimmermann
2026-06-02 14:14       ` Michel Dänzer
2026-06-04  4:03   ` Claude review: " Claude Code Review Bot
2026-06-01 14:08 ` [PATCH 3/7] drm/vblank: timer: Use absolute timer since boot Thomas Zimmermann
2026-06-04  4:03   ` Claude review: " Claude Code Review Bot
2026-06-01 14:08 ` [PATCH 4/7] drm/vblank: timer: Reorganize get_vblank_timeout Thomas Zimmermann
2026-06-04  4:03   ` Claude review: " Claude Code Review Bot
2026-06-01 14:08 ` [PATCH 5/7] drm/vblank: timer: Estimate vblank timeout if timer is disabled Thomas Zimmermann
2026-06-04  4:03   ` Claude review: " Claude Code Review Bot
2026-06-01 14:08 ` [PATCH 6/7] drm/vblank: timer: Verify that expiry time is in the future Thomas Zimmermann
2026-06-04  4:03   ` Claude review: " Claude Code Review Bot
2026-06-01 14:08 ` [PATCH 7/7] drm/vblank: timer: Avoid reading the vblank time unnecessarily Thomas Zimmermann
2026-06-04  4:04   ` Claude review: " Claude Code Review Bot
2026-06-04  4:03 ` Claude review: drm/vblank: timer: Fix timestamps and improve reliabilty 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-20260601141922.91498-2-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