]> Gentwo Git Trees - linux/.git/commit
drm/gpusvm: use more selective dma dir in get_pages()
authorMatthew Auld <matthew.auld@intel.com>
Thu, 28 Aug 2025 14:24:33 +0000 (15:24 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Fri, 5 Sep 2025 10:45:46 +0000 (11:45 +0100)
commitad70e289ed4b1f87d4f158fd1ad5a3225256929d
tree7a638061f50b127b52107c0b4863d0a57fbd467f
parentc50729c68aaf93611c855752b00e49ce1fdd1558
drm/gpusvm: use more selective dma dir in get_pages()

If we are only reading the memory then from the device pov the direction
can be DMA_TO_DEVICE. This aligns with the xe-userptr code. Using the
most restrictive data direction to represent the access is normally a
good idea.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250828142430.615826-12-matthew.auld@intel.com
drivers/gpu/drm/drm_gpusvm.c