linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Let lockdep complain when locks are taken while waiting for userspace.
@ 2021-01-18 18:03 Christian König
  2021-01-18 18:03 ` [PATCH] drm/syncobj: make lockdep complain on WAIT_FOR_SUBMIT v2 Christian König
  0 siblings, 1 reply; 7+ messages in thread
From: Christian König @ 2021-01-18 18:03 UTC (permalink / raw)
  To: daniel, peterz, mingo, will, dri-devel, linux-kernel

Hi guys,

because of the Vulkan graphics API we have a specialized synchronization object to handle both inter process as well as process to hardware synchronization.

The problem is now that when drivers call this interface with some lock help it is trivial to create a deadlock when those locks are also needed in a page fault for example.

The idea of this patch is now to let lockdep complain when any locks are called when the interface is used.

Please review and/or comment.

Thanks,
Christian.



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

end of thread, other threads:[~2021-01-19 10:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-18 18:03 Let lockdep complain when locks are taken while waiting for userspace Christian König
2021-01-18 18:03 ` [PATCH] drm/syncobj: make lockdep complain on WAIT_FOR_SUBMIT v2 Christian König
2021-01-18 19:42   ` Randy Dunlap
2021-01-19  9:35   ` Peter Zijlstra
2021-01-19  9:46     ` Christian König
2021-01-19 10:05       ` Peter Zijlstra
2021-01-19 10:08         ` Christian König

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).