Re: [PATCH] drm/ttm: optimize the pool shrinker a bit v3

2021-08-18 Thread Daniel Vetter
On Wed, Aug 18, 2021 at 03:09:41PM +0200, Christian König wrote: > Am 18.08.21 um 14:32 schrieb Daniel Vetter: > > On Wed, Aug 18, 2021 at 01:27:13PM +0200, Christian König wrote: > > > Just a gentle ping? > > > > > > Does anybody have any objections? It's just switching back to using a > > > spin

Re: [PATCH] drm/ttm: optimize the pool shrinker a bit v3

2021-08-18 Thread Christian König
Am 18.08.21 um 14:32 schrieb Daniel Vetter: On Wed, Aug 18, 2021 at 01:27:13PM +0200, Christian König wrote: Just a gentle ping? Does anybody have any objections? It's just switching back to using a spinlock in the hot path instead of a mutex. Thanks, Christian. Am 22.07.21 um 13:34 schrieb C

Re: [PATCH] drm/ttm: optimize the pool shrinker a bit v3

2021-08-18 Thread Daniel Vetter
On Wed, Aug 18, 2021 at 01:27:13PM +0200, Christian König wrote: > Just a gentle ping? > > Does anybody have any objections? It's just switching back to using a > spinlock in the hot path instead of a mutex. > > Thanks, > Christian. > > Am 22.07.21 um 13:34 schrieb Christian König: > > Switch ba

Re: [PATCH] drm/ttm: optimize the pool shrinker a bit v3

2021-08-18 Thread Christian König
Just a gentle ping? Does anybody have any objections? It's just switching back to using a spinlock in the hot path instead of a mutex. Thanks, Christian. Am 22.07.21 um 13:34 schrieb Christian König: Switch back to using a spinlock again by moving the IOMMU unmap outside of the locked region

[PATCH] drm/ttm: optimize the pool shrinker a bit v3

2021-07-22 Thread Christian König
Switch back to using a spinlock again by moving the IOMMU unmap outside of the locked region. v2: Add a comment explaining why we need sync_shrinkers(). v3: Drop sync_shrinkers() and use an SRCU instead. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_pool.c | 45