Searched hist:"48 aea7f2a2efae6a1bd201061c71a81b3f3b7e55" (Results 1 – 7 of 7) sorted by relevance
/linux/drivers/accel/ivpu/ |
H A D | ivpu_mmu_context.h | diff 48aea7f2a2efae6a1bd201061c71a81b3f3b7e55 Tue Oct 31 08:31:54 CET 2023 Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> 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
|
H A D | ivpu_gem.h | diff 48aea7f2a2efae6a1bd201061c71a81b3f3b7e55 Tue Oct 31 08:31:54 CET 2023 Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> 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
|
H A D | ivpu_gem.c | diff 48aea7f2a2efae6a1bd201061c71a81b3f3b7e55 Tue Oct 31 08:31:54 CET 2023 Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> 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
|
H A D | ivpu_mmu_context.c | diff 48aea7f2a2efae6a1bd201061c71a81b3f3b7e55 Tue Oct 31 08:31:54 CET 2023 Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> 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
|
H A D | ivpu_mmu.c | diff 48aea7f2a2efae6a1bd201061c71a81b3f3b7e55 Tue Oct 31 08:31:54 CET 2023 Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> 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
|
H A D | ivpu_drv.h | diff 48aea7f2a2efae6a1bd201061c71a81b3f3b7e55 Tue Oct 31 08:31:54 CET 2023 Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> 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
|
H A D | ivpu_drv.c | diff 48aea7f2a2efae6a1bd201061c71a81b3f3b7e55 Tue Oct 31 08:31:54 CET 2023 Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> 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
|