summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorHonglei Huang <honghuan@amd.com>2026-09-05 21:31:39 +0800
committerMatthew Brost <matthew.brost@intel.com>2026-09-07 22:43:57 -0700
commitcc2a6cbd6823678fe70ba76f88623827a6e06a87 (patch)
tree7e10fdac90ea9bc8cf4a03eb9d6818990c333c85 /tools/perf/scripts/python/stackcollapse.py
parent1ae616edb68c22bb5c2378c4d23b923fd401e0c7 (diff)
downloadlinux-cc2a6cbd6823678fe70ba76f88623827a6e06a87.tar.gz
linux-cc2a6cbd6823678fe70ba76f88623827a6e06a87.zip
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 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions