diff options
| author | Christian König <christian.koenig@amd.com> | 2025-10-29 15:36:32 +0100 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2025-11-14 11:27:46 -0500 |
| commit | 20459c098d688971237e56e30263ddce467c8c9b (patch) | |
| tree | 1245f4d9412bfa1199e7680a676648b9626324c3 /scripts/generate_rust_analyzer.py | |
| parent | f8bdb559c01e8291f1862ee9ab4a7eb13d6d62ac (diff) | |
drm/amdgpu: avoid memory allocation in the critical code path v3
When we run out of VMIDs we need to wait for some to become available.
Previously we were using a dma_fence_array for that, but this means that
we have to allocate memory.
Instead just wait for the first not signaled fence from the least recently
used VMID to signal. That is not as efficient since we end up in this
function multiple times again, but allocating memory can easily fail or
deadlock if we have to wait for memory to become available.
v2: remove now unused VM manager fields
v3: fix dma_fence reference
Signed-off-by: Christian König <christian.koenig@amd.com>
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4258
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions
