diff options
| author | Bob Zhou <bobzhou2@amd.com> | 2026-07-16 10:44:36 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-07-28 19:59:08 -0400 |
| commit | e3a721753f60c1d4643a729eaf5a8976d285fa0f (patch) | |
| tree | 040cb4b6961a4265f25936327b86b62493a2b1f3 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 17da8410554906a95bb9ef30acbdf0c5abc1a4ef (diff) | |
drm/amdgpu: skip clearing empty freed VM list on GEM close
amdgpu_vm_clear_freed() allocates an amdgpu_sync object and walks the VM
reservation fences via amdgpu_sync_resv() before checking whether vm->freed
has anything to clear. Return early when the list is empty to skip this
overhead on a hot path (every GEM close and command submission).
Signed-off-by: Bob Zhou <bobzhou2@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 8ba869e852d4f1b1c0e5ae9225c77f7ceccbe056)
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
