linux/drivers/accel
Lizhi Hou df4d535206 accel/amdxdna: Fix unsafe use of handle_mm_fault()
handle_mm_fault() must not be called from the mmap callback because
the VMA has not yet been linked. The handle_mm_fault() API contract
assumes that the VMA is already linked.

Remove the handle_mm_fault() call from the mmap callback. For imported
BOs, mark the mapping as invalid and rely on the first command submission
to fault in the pages.

For shmem BOs, set the VM_MIXEDMAP flag and use vm_insert_pages().
Implement amdxdna_gem_mixed_vm_ops to handle the page faults.

Fixes: e486147c91 ("accel/amdxdna: Add BO import and export")
Reviewed-by: Max Zhen <max.zhen@amd.com>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260910211338.1102315-1-lizhi.hou@amd.com
2026-09-11 08:19:14 -07:00
..
amdxdna accel/amdxdna: Fix unsafe use of handle_mm_fault() 2026-09-11 08:19:14 -07:00
ethosu Merge drm/drm-next into drm-misc-next 2026-09-07 13:44:24 +02:00
habanalabs Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
ivpu accel/ivpu: Add support for getting and setting command queue priority 2026-09-11 07:27:52 +02:00
qaic Merge drm/drm-next into drm-misc-next 2026-09-07 13:44:24 +02:00
rocket treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
drm_accel.c drm: move drm based debugfs funcs to drm_debugfs.c 2025-07-04 15:58:22 +02:00
Kconfig accel: Add Arm Ethos-U NPU driver 2025-10-24 15:07:39 -05:00
Makefile accel: Add Arm Ethos-U NPU driver 2025-10-24 15:07:39 -05:00