mesa/src/panfrost/lib/kmod
Boris Brezillon 4c74d14730 pan/kmod: Make default allocator thread-safe
Allocations targeting a pan_kmod_dev can happen concurrently, so we
need the pan_kmod_dev allocator to be thread-safe.

ralloc() is not thread-safe, and we don't really need a hierarchical
allocator in this context anyway, so let's just switch to calloc/free
instead.

Fixes: d95ec56f8c ("panfrost: Abstract kernel driver operations")
Reported-by: Eric Smith <eric.smith@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Tested-by: Eric Smith <eric.smith@collabora.com>
Reviewed-by: Eric Smith <eric.smith@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28926>
2024-05-07 11:11:28 +00:00
..
meson.build pan/kmod: Add a backend for panthor 2024-03-01 10:42:43 +00:00
pan_kmod.c pan/kmod: Make default allocator thread-safe 2024-05-07 11:11:28 +00:00
pan_kmod.h pan/kmod: Add a backend for panthor 2024-03-01 10:42:43 +00:00
pan_kmod_backend.h pan/kmod: Fix typo in pan_kmod_vm_op_check() helper 2024-03-01 10:42:43 +00:00
panfrost_kmod.c panfrost: Rework the way we compute thread info 2024-03-01 10:42:43 +00:00
panthor_kmod.c pan/kmod: Fix a syncobj leak in the panthor backend 2024-05-07 11:11:28 +00:00
panthor_kmod.h pan/kmod: Add a backend for panthor 2024-03-01 10:42:43 +00:00