diff options
| author | Erik Kurzinger <[email protected]> | 2024-02-21 18:44:28 +0000 |
|---|---|---|
| committer | Simon Ser <[email protected]> | 2024-02-22 12:52:52 +0000 |
| commit | 2aa6f5b0fd052e363bb9d4b547189f0bf6b3d6d3 (patch) | |
| tree | 1f9e2e1c2acdfc5b2756e18f6b2ef0d711204115 /drivers/usb/cdns3/cdns3-starfive.c | |
| parent | drm/syncobj: call drm_syncobj_fence_add_wait when WAIT_AVAILABLE flag is set (diff) | |
| download | kernel-2aa6f5b0fd052e363bb9d4b547189f0bf6b3d6d3.tar.gz kernel-2aa6f5b0fd052e363bb9d4b547189f0bf6b3d6d3.zip | |
drm/syncobj: handle NULL fence in syncobj_eventfd_entry_func
During syncobj_eventfd_entry_func, dma_fence_chain_find_seqno may set
the fence to NULL if the given seqno is signaled and a later seqno has
already been submitted. In that case, the eventfd should be signaled
immediately which currently does not happen.
This is a similar issue to the one addressed by commit b19926d4f3a6
("drm/syncobj: Deal with signalled fences in drm_syncobj_find_fence.").
As a fix, if the return value of dma_fence_chain_find_seqno indicates
success but it sets the fence to NULL, we will assign a stub fence to
ensure the following code still signals the eventfd.
v1 -> v2: assign a stub fence instead of signaling the eventfd
Signed-off-by: Erik Kurzinger <[email protected]>
Fixes: c7a472297169 ("drm/syncobj: add IOCTL to register an eventfd")
Signed-off-by: Simon Ser <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-starfive.c')
0 files changed, 0 insertions, 0 deletions
