Re: [PATCH v5 07/12] drm/ttm: Use the LRU walker for eviction

2024-06-24 Thread Thomas Hellström
On Wed, 2024-06-19 at 23:33 +, Matthew Brost wrote: > On Tue, Jun 18, 2024 at 09:18:15AM +0200, Thomas Hellström wrote: > > Use the LRU walker for eviction. This helps > > removing a lot of code with weird locking > > semantics. > > > > The functionality is slightly changed so that > > when

Re: [PATCH v5 07/12] drm/ttm: Use the LRU walker for eviction

2024-06-24 Thread Thomas Hellström
Hi, Matthew On Wed, 2024-06-19 at 22:52 +, Matthew Brost wrote: > On Tue, Jun 18, 2024 at 09:18:15AM +0200, Thomas Hellström wrote: > > Use the LRU walker for eviction. This helps > > removing a lot of code with weird locking > > semantics. > > > > The functionality is slightly changed so

Re: [PATCH v5 07/12] drm/ttm: Use the LRU walker for eviction

2024-06-19 Thread Matthew Brost
On Tue, Jun 18, 2024 at 09:18:15AM +0200, Thomas Hellström wrote: > Use the LRU walker for eviction. This helps > removing a lot of code with weird locking > semantics. > > The functionality is slightly changed so that > when trylocked buffer objects are exhausted, we > continue to interleave

Re: [PATCH v5 07/12] drm/ttm: Use the LRU walker for eviction

2024-06-19 Thread Matthew Brost
On Tue, Jun 18, 2024 at 09:18:15AM +0200, Thomas Hellström wrote: > Use the LRU walker for eviction. This helps > removing a lot of code with weird locking > semantics. > > The functionality is slightly changed so that > when trylocked buffer objects are exhausted, we > continue to interleave

[PATCH v5 07/12] drm/ttm: Use the LRU walker for eviction

2024-06-18 Thread Thomas Hellström
Use the LRU walker for eviction. This helps removing a lot of code with weird locking semantics. The functionality is slightly changed so that when trylocked buffer objects are exhausted, we continue to interleave walks with ticket-locks while there is still progress made. The list walks are not