From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: Re:Re: [PATCH 6.18.y] drm/vkms: Fix ABBA deadlock in vblank disable and timer callback
Date: Tue, 26 May 2026 07:07:31 +1000 [thread overview]
Message-ID: <review-patch3-581657f0.ba8.19e2eaaf003.Coremail.w15303746062@163.com> (raw)
In-Reply-To: <581657f0.ba8.19e2eaaf003.Coremail.w15303746062@163.com>
Patch Review
*(cherry-pick of 02e2681ffe1addde1fc8c35d05657b16bfa79613)*
This is the payoff patch — removes all of vkms' custom vblank timer code and replaces it with the framework. Key changes:
- Removes `vkms_vblank_simulate()`, `vkms_enable_vblank()`, `vkms_disable_vblank()`, `vkms_get_vblank_timestamp()`, `vkms_crtc_atomic_enable()`, `vkms_crtc_atomic_disable()`
- Adds `vkms_crtc_handle_vblank_timeout()` (the custom part vkms still needs for CRC/writeback)
- Uses `DRM_CRTC_VBLANK_TIMER_FUNCS` in `vkms_crtc_funcs`
- Uses `drm_crtc_vblank_atomic_enable/disable` in helper funcs
- Removes `vblank_hrtimer` and `period_ns` from `struct vkms_output`
The conversion is correct. The custom `handle_vblank_timeout` preserves vkms' compositor-triggering logic (the `drm_crtc_handle_vblank()` call plus workqueue scheduling for CRC generation), while delegating all timer management to the framework.
**Note:** The patch correctly keeps `vkms_crtc_atomic_flush` (not replaced by the helper) because vkms has custom flush logic for CRC source handling. Only `atomic_enable`/`atomic_disable` use the generic helpers.
No issues. Clean cherry-pick.
---
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-05-25 21:07 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-15 13:18 [PATCH 6.18.y] drm/vkms: Fix ABBA deadlock in vblank disable and timer callback w15303746062
2026-05-15 15:09 ` Greg KH
2026-05-16 2:43 ` w15303746062
2026-05-16 9:51 ` Greg KH
2026-05-18 2:22 ` w15303746062
2026-05-25 8:55 ` Maarten Lankhorst
2026-05-25 13:16 ` [PATCH 6.18.y 0/5] drm/vkms: Backport generic vblank timer to fix ABBA deadlock w15303746062
2026-05-25 13:16 ` [PATCH 6.18.y 1/5] drm/vblank: Add vblank timer w15303746062
2026-05-25 13:16 ` [PATCH 6.18.y 2/5] drm/vblank: Add CRTC helpers for simple use cases w15303746062
2026-05-25 13:16 ` [PATCH 6.18.y 3/5] drm/vkms: Convert to DRM's vblank timer w15303746062
2026-05-25 13:16 ` [PATCH 6.18.y 4/5] drm/atomic: Increase timeout in drm_atomic_helper_wait_for_vblanks() w15303746062
2026-05-25 13:16 ` [PATCH 6.18.y 5/5] drm/vblank: Fix kernel docs for vblank timer w15303746062
2026-05-25 21:07 ` Claude review: drm/vkms: Backport generic vblank timer to fix ABBA deadlock Claude Code Review Bot
2026-05-25 21:07 ` Claude review: Re:Re: Re: [PATCH 6.18.y] drm/vkms: Fix ABBA deadlock in vblank disable and timer callback Claude Code Review Bot
2026-05-25 21:07 ` Claude review: " Claude Code Review Bot
2026-05-25 21:07 ` Claude Code Review Bot [this message]
2026-05-25 21:07 ` Claude review: " Claude Code Review Bot
2026-05-15 23:05 ` Claude review: " Claude Code Review Bot
2026-05-15 23:05 ` 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-patch3-581657f0.ba8.19e2eaaf003.Coremail.w15303746062@163.com \
--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