summaryrefslogtreecommitdiff
path: root/rust/helpers/xarray.c
diff options
context:
space:
mode:
authorFrancois Dugast <francois.dugast@intel.com>2025-08-05 15:59:04 +0200
committerFrancois Dugast <francois.dugast@intel.com>2025-08-06 13:34:50 +0200
commitd755ff6063852cbd43c666726b69333d33d0d379 (patch)
tree8e9810bd4fbd08bedb96f1bf67175a71394c4491 /rust/helpers/xarray.c
parentf35a6cdf8a6d69f2fb35ece202a09f13fe7c87b2 (diff)
drm/pagemap: DMA map folios when possible
If the page is part of a folio, DMA map the whole folio at once instead of mapping individual pages one after the other. For example if 2MB folios are used instead of 4KB pages, this reduces the number of DMA mappings by 512. The folio order (and consequently, the size) is persisted in the struct drm_pagemap_device_addr to be available at the time of unmapping. v2: - Initialize order variable (Matthew Brost) - Set proto and dir for completeness (Matthew Brost) - Do not populate drm_pagemap_addr, document it (Matthew Brost) - Add and use macro NR_PAGES(order) (Matthew Brost) Cc: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Acked-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Link: https://lore.kernel.org/r/20250805140028.599361-4-francois.dugast@intel.com Signed-off-by: Francois Dugast <francois.dugast@intel.com>
Diffstat (limited to 'rust/helpers/xarray.c')
0 files changed, 0 insertions, 0 deletions