diff options
| author | Honglei Huang <honghuan@amd.com> | 2026-09-05 21:31:40 +0800 |
|---|---|---|
| committer | Matthew Brost <matthew.brost@intel.com> | 2026-09-07 22:43:59 -0700 |
| commit | 22a81666c2dc098e1ee9e294a13ccdeed5fc248d (patch) | |
| tree | df403e82c8e8a54a46d0a1c5e5a078202d2edc5b /tools/perf/scripts/python/stackcollapse.py | |
| parent | cc2a6cbd6823678fe70ba76f88623827a6e06a87 (diff) | |
| download | linux-22a81666c2dc098e1ee9e294a13ccdeed5fc248d.tar.gz linux-22a81666c2dc098e1ee9e294a13ccdeed5fc248d.zip | |
drm/gpusvm: make the DMA mapping step in get_pages() optional
Some drivers (e.g. AMDXDNA) only need the CPU pages faulted in and tracked
by the notifier, no need DMA mapping.
Add a drm_gpusvm_ctx::no_dma_map flag. When set, get_pages() does the
shared HMM fault and records notifier_seq, but skips svm_pages->drm
validation, the dma_addr allocation and drm_gpusvm_dma_map_pages().
With no mapping state to check, the fault is redone on every call. The
default (no_dma_map == 0) is unchanged.
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-5-honghuan@amd.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
