Re: [PATCH v3 1/4] drm/vmwgfx: Fix a deadlock in dma buf fence polling

2024-07-02 Thread Martin Krastev
On Tue, Jul 2, 2024 at 5:12 AM Zack Rusin wrote: > > Introduce a version of the fence ops that on release doesn't remove > the fence from the pending list, and thus doesn't require a lock to > fix poll->fence wait->fence unref deadlocks. > > vmwgfx overwrites the wait callback to iterate over the

[PATCH v3 1/4] drm/vmwgfx: Fix a deadlock in dma buf fence polling

2024-07-01 Thread Zack Rusin
Introduce a version of the fence ops that on release doesn't remove the fence from the pending list, and thus doesn't require a lock to fix poll->fence wait->fence unref deadlocks. vmwgfx overwrites the wait callback to iterate over the list of all fences and update their status, to do that it hol