diff options
| author | Jacek Lawrynowicz <[email protected]> | 2025-05-28 15:43:25 +0000 |
|---|---|---|
| committer | Jacek Lawrynowicz <[email protected]> | 2025-06-05 12:36:37 +0000 |
| commit | 98d3f772ca7d6822bdfc8c960f5f909574db97c9 (patch) | |
| tree | b9496fccb1d6eb758a26b89acab156e7030a57e4 /drivers/fpga/tests/fpga-mgr-test.c | |
| parent | drm/panel-simple: fix the warnings for the Evervision VGG644804 (diff) | |
| download | kernel-98d3f772ca7d6822bdfc8c960f5f909574db97c9.tar.gz kernel-98d3f772ca7d6822bdfc8c960f5f909574db97c9.zip | |
accel/ivpu: Use dma_resv_lock() instead of a custom mutex
This fixes a potential race conditions in:
- ivpu_bo_unbind_locked() where we modified the shmem->sgt without
holding the dma_resv_lock().
- ivpu_bo_print_info() where we read the shmem->pages without
holding the dma_resv_lock().
Using dma_resv_lock() also protects against future syncronisation
issues that may arise when accessing drm_gem_shmem_object or
drm_gem_object members.
Fixes: 42328003ecb6 ("accel/ivpu: Refactor BO creation functions")
Cc: [email protected] # v6.9+
Reviewed-by: Lizhi Hou <[email protected]>
Signed-off-by: Jacek Lawrynowicz <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions
