Re: [PATCH 1/3] drm/ttm: rework ttm_tt page limit v3

2021-02-03 Thread Christian König
Am 03.02.21 um 12:26 schrieb Daniel Vetter: On Thu, Jan 28, 2021 at 02:16:02PM +0100, Christian König wrote: TTM implements a rather extensive accounting of allocated memory. There are two reasons for this: 1. It tries to block userspace allocating a huge number of very small BOs without

Re: [PATCH 1/3] drm/ttm: rework ttm_tt page limit v3

2021-02-03 Thread Daniel Vetter
On Thu, Jan 28, 2021 at 02:16:02PM +0100, Christian König wrote: > TTM implements a rather extensive accounting of allocated memory. > > There are two reasons for this: > 1. It tries to block userspace allocating a huge number of very small >BOs without accounting for the kmalloced memory. >

[PATCH 1/3] drm/ttm: rework ttm_tt page limit v3

2021-01-28 Thread Christian König
TTM implements a rather extensive accounting of allocated memory. There are two reasons for this: 1. It tries to block userspace allocating a huge number of very small BOs without accounting for the kmalloced memory. 2. Make sure we don't over allocate and run into an OOM situation during

[PATCH 1/3] drm/ttm: rework ttm_tt page limit v3

2021-01-26 Thread Christian König
TTM implements a rather extensive accounting of allocated memory. There are two reasons for this: 1. It tries to block userspace allocating a huge number of very small BOs without accounting for the kmalloced memory. 2. Make sure we don't over allocate and run into an OOM situation during

Re: [PATCH 1/3] drm/ttm: rework ttm_tt page limit v3

2021-01-26 Thread Christian König
Hi Daniel, just in case you read that when you come back from vacation. I've tested this quite extensively and apart from the typo in the KFD in patch #3 it looks pretty solid now. E.g. no lockdep or KASAN splat when I use the debugfs stuff. Is this sufficient? Thanks, Christian. Am

[PATCH 1/3] drm/ttm: rework ttm_tt page limit v3

2021-01-25 Thread Christian König
TTM implements a rather extensive accounting of allocated memory. There are two reasons for this: 1. It tries to block userspace allocating a huge number of very small BOs without accounting for the kmalloced memory. 2. Make sure we don't over allocate and run into an OOM situation during