-
- Downloads
accel/ivpu: Fix locking in ivpu_bo_remove_all_bos_from_context()
ivpu_bo_remove_all_bos_from_context() could race with ivpu_bo_free() when prime buffer was closed after vpu device was closed. Move the bo_list from context to vdev and use a dedicated lock to sync it. This list is not modified when BO is added/removed from a context. Also rename ivpu_bo_free_vpu_addr() to ivpu_bo_unbind() because this function does more then just free vpu_addr. Signed-off-by:Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> Reviewed-by:
Jeffrey Hugo <quic_jhugo@quicinc.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231031073156.1301669-3-stanislaw.gruszka@linux.intel.com
Showing
- drivers/accel/ivpu/ivpu_drv.c 6 additions, 1 deletiondrivers/accel/ivpu/ivpu_drv.c
- drivers/accel/ivpu/ivpu_drv.h 3 additions, 0 deletionsdrivers/accel/ivpu/ivpu_drv.h
- drivers/accel/ivpu/ivpu_gem.c 68 additions, 63 deletionsdrivers/accel/ivpu/ivpu_gem.c
- drivers/accel/ivpu/ivpu_gem.h 3 additions, 3 deletionsdrivers/accel/ivpu/ivpu_gem.h
- drivers/accel/ivpu/ivpu_mmu.c 4 additions, 1 deletiondrivers/accel/ivpu/ivpu_mmu.c
- drivers/accel/ivpu/ivpu_mmu_context.c 21 additions, 15 deletionsdrivers/accel/ivpu/ivpu_mmu_context.c
- drivers/accel/ivpu/ivpu_mmu_context.h 4 additions, 7 deletionsdrivers/accel/ivpu/ivpu_mmu_context.h
Loading
Please register or sign in to comment