mesa/src/panfrost/lib/kmod
Christian Gmeiner dcd2450a0b pan/kmod: Simplify pan_kmod_bo_mmap() to always map the whole BO
DRM GEM mmap offsets go through drm_vma_offset_exact_lookup_locked()
which requires an exact match on the GEM offset. Passing a non-zero
bo_offset causes EINVAL because the kernel can't find the BO at the
shifted offset. Every caller already passes bo_offset=0 and maps the
full BO size, so drop those parameters and use bo->size directly.

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40315>
2026-03-17 11:03:07 +00:00
..
meson.build pan: Lift pan_get_model into its own lib 2025-09-16 15:54:48 +00:00
pan_kmod.c pan/kmod: clean up unused flags from bo import paths 2026-02-09 17:01:23 +00:00
pan_kmod.h pan/kmod: Simplify pan_kmod_bo_mmap() to always map the whole BO 2026-03-17 11:03:07 +00:00
pan_kmod_backend.h panfrost: SPDX everything 2026-01-20 20:49:33 +00:00
panfrost_kmod.c pan/kmod: Allow mmap() on foreign buffers 2026-03-04 12:14:38 +01:00
panthor_kmod.c pan/kmod: Allow mmap() on foreign buffers 2026-03-04 12:14:38 +01:00
panthor_kmod.h panfrost: SPDX everything 2026-01-20 20:49:33 +00:00