]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/pagemap: Use dma-map IOVA alloc, link, and sync API for DRM pagemap
authorMatthew Brost <matthew.brost@intel.com>
Fri, 10 Apr 2026 20:59:28 +0000 (13:59 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Mon, 13 Apr 2026 03:51:14 +0000 (20:51 -0700)
commit2e0cd372b89758545ddfaa0085cf030d473afb7e
treee66dce06475963f1d6865c2047b1fcbb53cbc569
parent07f123f33dec59cfada43d19888d319a43b299cb
drm/pagemap: Use dma-map IOVA alloc, link, and sync API for DRM pagemap

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 DRM pagemap, which create DMA
mappings between the CPU and GPU for copying data.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Francois Dugast <francois.dugast@intel.com>
Link: https://patch.msgid.link/20260410205929.3914474-5-matthew.brost@intel.com
drivers/gpu/drm/drm_pagemap.c