summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorHonglei Huang <honghuan@amd.com>2026-09-05 21:31:37 +0800
committerMatthew Brost <matthew.brost@intel.com>2026-09-07 22:43:55 -0700
commitca76137442edcafc089f19d189a55dc8d42ff7b8 (patch)
tree9febea6e42a394a60e081bf597fb29626fb27371 /tools/lib/python
parentfcc2431d2213dc4d04250c4f1ae87d9c3ae0d455 (diff)
drm/gpusvm: move dma_addr allocation before the notifier lock
The dma_addr allocation was in a lazy allocation flow, it needs unlock and goto map_pages. The allocation only needs npages, so just do it before taking the lock. Drop the map_pages label and the relock flow, so the sequence becomes fault, allocate, then lock, validate, map and unlock. No functional change intended. 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-2-honghuan@amd.com
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions