diff options
| author | Danilo Krummrich <[email protected]> | 2023-11-25 00:36:36 +0100 |
|---|---|---|
| committer | Maxime Ripard <[email protected]> | 2023-11-28 13:57:29 +0100 |
| commit | 4aa89e8644d3b8879191911edea0b6a63ea9d6e2 (patch) | |
| tree | b8fd4ed0e9086033b801ba0b626efaf67179257b /tools/perf/scripts/python/bin | |
| parent | 3519d77293fb74786a45811fa6b600db26c1b0be (diff) | |
drm/imagination: vm: prevent duplicate drm_gpuvm_bo instances
Use drm_gpuvm_bo_obtain() instead of drm_gpuvm_bo_create(). The latter
should only be used in conjunction with drm_gpuvm_bo_obtain_prealloc().
drm_gpuvm_bo_obtain() re-uses existing instances of a given VM and BO
combination, whereas drm_gpuvm_bo_create() would always create a new
instance of struct drm_gpuvm_bo and hence leave us with duplicates.
Fixes: ff5f643de0bf ("drm/imagination: Add GEM and VM related code")
Signed-off-by: Danilo Krummrich <[email protected]>
Reviewed-by: Donald Robson <[email protected]>
Tested-by: Frank Binns <[email protected]>
Signed-off-by: Maxime Ripard <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions