Re: [PATCH 2/8] drm/ttm: Use LRU hitches

2024-04-08 Thread Thomas Hellström
On Fri, 2024-04-05 at 14:41 +0200, Christian König wrote: > Am 29.03.24 um 15:57 schrieb Thomas Hellström: > > 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

Re: [PATCH 2/8] drm/ttm: Use LRU hitches

2024-04-05 Thread Christian König
Am 29.03.24 um 15:57 schrieb Thomas Hellström: 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. Du

[PATCH 2/8] drm/ttm: Use LRU hitches

2024-03-29 Thread Thomas Hellström
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 adde