]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/gpusvm: Use dma-map IOVA alloc, link, and sync API in GPU SVM
authorMatthew Brost <matthew.brost@intel.com>
Fri, 10 Apr 2026 20:59:25 +0000 (13:59 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Mon, 13 Apr 2026 03:51:10 +0000 (20:51 -0700)
commit37ad039fb3674a36dbf082fa5c864af1b791eccd
tree879f90fee29a48bf3f2e45e2c83211d796f61492
parentefcd474ed273ae7da614b30e798651c6d57d3109
drm/gpusvm: Use dma-map IOVA alloc, link, and sync API in GPU SVM

The dma-map IOVA alloc, link, and sync APIs perform significantly better
than dma-map / dma-unmap, as they avoid costly IOMMU synchronizations.
This difference is especially noticeable when mapping a 2MB region in
4KB pages.

Use the IOVA alloc, link, and sync APIs for GPU SVM, which create DMA
mappings between the CPU and GPU.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patch.msgid.link/20260410205929.3914474-2-matthew.brost@intel.com
drivers/gpu/drm/drm_gpusvm.c
include/drm/drm_gpusvm.h