From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/i915/selftests: Fix build after dma-fence locking rework
Date: Tue, 24 Feb 2026 09:54:10 +1000 [thread overview]
Message-ID: <review-patch1-20260223172553.1663749-1-matthew.brost@intel.com> (raw)
In-Reply-To: <20260223172553.1663749-1-matthew.brost@intel.com>
Patch Review
The patch replaces direct `fence->lock` access with the new `dma_fence_spinlock()` accessor in two places:
> - spin_lock_irq(fence->lock);
> + spin_lock_irq(dma_fence_spinlock(fence));
> __list_del_entry(&active->cb.node);
> - spin_unlock_irq(fence->lock); /* serialise with fence->cb_list */
> + spin_unlock_irq(dma_fence_spinlock(fence)); /* serialise with fence->cb_list */
This is a straightforward mechanical change. Both the lock and unlock use the same accessor on the same `fence` pointer, so the lock/unlock is properly balanced. The `fence` pointer is non-NULL at this point (guarded by the `if (!fence) return;` above).
The commit message accurately describes both the problem and the fix, and correctly identifies the commit that caused the build breakage via the Fixes tag.
Christian's question in the review thread about `spin_lock_irq()` vs `spin_lock_irqsave()` is worth noting. Looking at the existing tree, `active_flush()` is called from `i915_active_unlock_wait()` under `rcu_read_lock()`, which does not alter IRQ state. The selftest calling context is process context with interrupts enabled, so `spin_lock_irq()` is technically fine here. But that's a pre-existing design choice, not something this patch introduces or changes.
No issues found in this patch.
---
Generated by Claude Code Patch Reviewer
prev parent reply other threads:[~2026-02-23 23:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-23 17:25 [PATCH] drm/i915/selftests: Fix build after dma-fence locking rework Matthew Brost
2026-02-23 19:01 ` Cavitt, Jonathan
2026-02-23 19:13 ` Christian König
2026-02-23 19:20 ` Matthew Brost
2026-02-23 19:33 ` Christian König
2026-02-23 19:36 ` Matthew Brost
2026-02-23 20:03 ` Christian König
2026-02-23 23:54 ` Claude review: " Claude Code Review Bot
2026-02-23 23:54 ` 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-patch1-20260223172553.1663749-1-matthew.brost@intel.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