Re: [PATCH] drm/ttm: optimize pool allocations a bit

2022-11-07 Thread Felix Kuehling
Am 2022-11-07 um 14:58 schrieb Christian König: If we got a page pool use it as much as possible. If we can't get more pages from the pool allocate as much as possible. Only if that still doesn't work reduce the order and try again. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/t

Re: [PATCH] drm/ttm: optimize pool allocations a bit

2022-11-07 Thread Luben Tuikov
On 2022-11-07 14:58, Christian König wrote: > If we got a page pool use it as much as possible. > > If we can't get more pages from the pool allocate as much as possible. > > Only if that still doesn't work reduce the order and try again. > > Signed-off-by: Christian König > --- > drivers/gpu/

[PATCH] drm/ttm: optimize pool allocations a bit

2022-11-07 Thread Christian König
If we got a page pool use it as much as possible. If we can't get more pages from the pool allocate as much as possible. Only if that still doesn't work reduce the order and try again. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_pool.c | 81 -- 1