diff options
| author | Thomas Hellström <[email protected]> | 2024-07-05 15:32:01 +0000 |
|---|---|---|
| committer | Christian König <[email protected]> | 2024-07-09 10:38:23 +0000 |
| commit | 8e9bf0fb10a79aaed37474600948cd33d14aa606 (patch) | |
| tree | e5a2c5b3daa2f381c311b7d88051a7f6566df244 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
| parent | drm/ttm: Slightly clean up LRU list iteration (diff) | |
| download | kernel-8e9bf0fb10a79aaed37474600948cd33d14aa606.tar.gz kernel-8e9bf0fb10a79aaed37474600948cd33d14aa606.zip | |
drm/ttm: Use LRU hitches
Have iterators insert themselves into the list they are iterating
over using hitch list nodes. Since only the iterator owner
can remove these list nodes from the list, it's safe to unlock
the list and when continuing, use them as a starting point. Due to
the way LRU bumping works in TTM, newly added items will not be
missed, and bumped items will be iterated over a second time before
reaching the end of the list.
The exception is list with bulk move sublists. When bumping a
sublist, a hitch that is part of that sublist will also be moved
and we might miss items if restarting from it. This will be
addressed in a later patch.
Changes in previous series:
- Updated ttm_resource_cursor_fini() documentation.
v2:
- Don't reorder ttm_resource_manager_first() and _next().
(Christian König).
- Use list_add instead of list_move
(Christian König)
v3:
- Split into two patches, one cleanup, one new functionality
(Christian König)
- use ttm_resource_cursor_fini_locked() instead of open-coding
(Matthew Brost)
Cc: Christian König <[email protected]>
Cc: Somalapuram Amaranath <[email protected]>
Cc: Matthew Brost <[email protected]>
Cc: <[email protected]>
Signed-off-by: Thomas Hellström <[email protected]>
Reviewed-by: Matthew Brost <[email protected]>
Reviewed-by: Christian König <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions
