diff options
| author | 2026-09-05 21:31:39 +0800 | |
|---|---|---|
| committer | 2026-09-07 22:43:57 -0700 | |
| commit | cc2a6cbd6823678fe70ba76f88623827a6e06a87 (patch) | |
| tree | 7e10fdac90ea9bc8cf4a03eb9d6818990c333c85 /scripts/Makefile.thinlto | |
| parent | drm/gpusvm: extract drm_gpusvm_dma_map_pages() helper (diff) | |
drm/gpusvm: let drm_gpusvm_get_pages() map an array of pages
With the N:1 drm_gpusvm_pages layout, one CPU range mirrored on several
drm_devices, the caller had to invoke get_pages() once per device and
repeat the HMM fault every time.
Make get_pages() take a contiguous array of drm_gpusvm_pages plus a
count: fault once, then DMA map each instance by
drm_gpusvm_dma_map_pages() under a single read_retry gate. xe range and
userptr callers are updated.
Document the N:1 array usage in the Overview, showing how get_pages()
and drm_gpusvm_range_set_unmapped() take the whole array and its count
while the unmap and free paths stay per-instance.
Suggested-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Honglei Huang <honghuan@amd.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260905133142.3628027-4-honghuan@amd.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
