diff options
| author | Honglei Huang <honghuan@amd.com> | 2026-09-05 21:31:38 +0800 |
|---|---|---|
| committer | Matthew Brost <matthew.brost@intel.com> | 2026-09-07 22:43:56 -0700 |
| commit | 1ae616edb68c22bb5c2378c4d23b923fd401e0c7 (patch) | |
| tree | 83f7d7f1266b86b7737dfcdb51f5c78077df784c /tools/lib/python/kdoc/python_version.py | |
| parent | ca76137442edcafc089f19d189a55dc8d42ff7b8 (diff) | |
drm/gpusvm: extract drm_gpusvm_dma_map_pages() helper
Move the per-device DMA mapping loop of drm_gpusvm_get_pages() into a
helper drm_gpusvm_dma_map_pages(). The mapping logic is only moved, not
changed, so there is no functional change.
The helper maps the already-faulted pfns into one drm_gpusvm_pages
instance under the notifier lock and unwinds its own partial mapping on
error. The HMM fault and the notifier retry loop stay in get_pages()
common code rather than being pushed down to drivers, so no driver has
to reimplement the subtle fault and retry logic.
With the mapping isolated per instance, get_pages() can later fault once
and DMA map an array of drm_gpusvm_pages plus a count, one per owning
drm_device.
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-3-honghuan@amd.com
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
