[PATCH] drm/ttm: switch back to static allocation limits for now

2021-03-25 Thread Christian König
The shrinker based approach still has some flaws. Especially that we need temporary pages to free up the pages allocated to the driver is problematic in a shrinker. Signed-off-by: Christian König Acked-by: Daniel Vetter --- drivers/gpu/drm/ttm/ttm_device.c | 14 ++-- drivers/gpu/drm/ttm/ttm_tt

[PATCH] drm/ttm: switch back to static allocation limits for now

2021-03-25 Thread Christian König
The shrinker based approach still has some flaws. Especially that we need temporary pages to free up the pages allocated to the driver is problematic in a shrinker. Signed-off-by: Christian König Acked-by: Daniel Vetter --- drivers/gpu/drm/ttm/ttm_device.c | 14 ++-- drivers/gpu/drm/ttm/ttm_tt

Re: [PATCH] drm/ttm: switch back to static allocation limits for now

2021-03-25 Thread Daniel Vetter
On Thu, Mar 25, 2021 at 10:27 AM Christian König wrote: > > Am 25.03.21 um 09:31 schrieb Daniel Vetter: > > On Thu, Mar 25, 2021 at 9:07 AM Christian König > > wrote: > >> Am 24.03.21 um 20:29 schrieb Daniel Vetter: > >>> On Wed, Mar 24, 2021 at 02:48:45PM +0100, Christian König wrote: > The

Re: [PATCH] drm/ttm: switch back to static allocation limits for now

2021-03-25 Thread Christian König
Am 25.03.21 um 09:31 schrieb Daniel Vetter: On Thu, Mar 25, 2021 at 9:07 AM Christian König wrote: Am 24.03.21 um 20:29 schrieb Daniel Vetter: On Wed, Mar 24, 2021 at 02:48:45PM +0100, Christian König wrote: The shrinker based approach still has some flaws. Especially that we need temporary p

Re: [PATCH] drm/ttm: switch back to static allocation limits for now

2021-03-25 Thread Daniel Vetter
On Thu, Mar 25, 2021 at 9:07 AM Christian König wrote: > > Am 24.03.21 um 20:29 schrieb Daniel Vetter: > > On Wed, Mar 24, 2021 at 02:48:45PM +0100, Christian König wrote: > >> The shrinker based approach still has some flaws. Especially that we need > >> temporary pages to free up the pages alloc

Re: [PATCH] drm/ttm: switch back to static allocation limits for now

2021-03-25 Thread Christian König
Am 24.03.21 um 20:29 schrieb Daniel Vetter: On Wed, Mar 24, 2021 at 02:48:45PM +0100, Christian König wrote: The shrinker based approach still has some flaws. Especially that we need temporary pages to free up the pages allocated to the driver is problematic in a shrinker. Signed-off-by: Christ

Re: [PATCH] drm/ttm: switch back to static allocation limits for now

2021-03-24 Thread Daniel Vetter
On Wed, Mar 24, 2021 at 02:48:45PM +0100, Christian König wrote: > The shrinker based approach still has some flaws. Especially that we need > temporary pages to free up the pages allocated to the driver is problematic > in a shrinker. > > Signed-off-by: Christian König > --- > drivers/gpu/drm/t

[PATCH] drm/ttm: switch back to static allocation limits for now

2021-03-24 Thread Christian König
The shrinker based approach still has some flaws. Especially that we need temporary pages to free up the pages allocated to the driver is problematic in a shrinker. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_device.c | 14 ++-- drivers/gpu/drm/ttm/ttm_tt.c | 112