intel-xe.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] locking/ww_mutex, dma-buf/dma-resv: Improve detection of unheld locks
@ 2025-11-20 11:03 Thomas Hellström
  2025-11-20 11:03 ` [RFC PATCH 1/2] kernel/locking/ww_mutex: Add per-lock lock-check helpers Thomas Hellström
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Thomas Hellström @ 2025-11-20 11:03 UTC (permalink / raw)
  To: intel-xe
  Cc: Thomas Hellström, Matthew Auld, Matthew Brost,
	Maarten Lankhorst, Peter Zijlstra, Ingo Molnar, Will Deacon,
	Boqun Feng, Waiman Long, Sumit Semwal, Christian König, LKML,
	dri-devel, linaro-mm-sig

WW mutexes and dma-resv objects, which embed them, typically have a
number of locks belocking to the same lock class. However
code using them typically want to verify the locking on
object granularity, not lock-class granularity.

This series add ww_mutex functions to facilitate that,
(patch 1) and utilizes these functions in the dma-resv lock
checks.

Thomas Hellström (2):
  kernel/locking/ww_mutex: Add per-lock lock-check helpers
  dma-buf/dma-resv: Improve the dma-resv lockdep checks

 include/linux/dma-resv.h |  7 +++++--
 include/linux/ww_mutex.h | 18 ++++++++++++++++++
 kernel/locking/mutex.c   | 10 ++++++++++
 3 files changed, 33 insertions(+), 2 deletions(-)

-- 
2.51.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-11-20 16:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-20 11:03 [RFC PATCH 0/2] locking/ww_mutex, dma-buf/dma-resv: Improve detection of unheld locks Thomas Hellström
2025-11-20 11:03 ` [RFC PATCH 1/2] kernel/locking/ww_mutex: Add per-lock lock-check helpers Thomas Hellström
2025-11-20 11:38   ` Peter Zijlstra
2025-11-20 11:03 ` [RFC PATCH 2/2] dma-buf/dma-resv: Improve the dma-resv lockdep checks Thomas Hellström
2025-11-20 13:22   ` Christian König
2025-11-20 12:59 ` ✗ CI.checkpatch: warning for locking/ww_mutex, dma-buf/dma-resv: Improve detection of unheld locks Patchwork
2025-11-20 13:01 ` ✓ CI.KUnit: success " Patchwork
2025-11-20 13:19 ` ✗ CI.checksparse: warning " Patchwork
2025-11-20 13:47 ` ✗ Xe.CI.BAT: failure " Patchwork
2025-11-20 16:23 ` ✗ Xe.CI.Full: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).