Re: [PATCH 3/4] drm/xe/vm: Perform accounting of userptr pinned pages

2023-08-22 Thread Thomas Hellström
On 8/20/23 05:43, Matthew Brost wrote: On Fri, Aug 18, 2023 at 05:08:44PM +0200, Thomas Hellström wrote: Account these pages against RLIMIT_MEMLOCK following how RDMA does this with CAP_IPC_LOCK bypassing the limit. Signed-off-by: Thomas Hellström Patch LGTM but nits on naming + possible

Re: [PATCH 3/4] drm/xe/vm: Perform accounting of userptr pinned pages

2023-08-19 Thread Matthew Brost
On Fri, Aug 18, 2023 at 05:08:44PM +0200, Thomas Hellström wrote: > Account these pages against RLIMIT_MEMLOCK following how RDMA does this > with CAP_IPC_LOCK bypassing the limit. > > Signed-off-by: Thomas Hellström Patch LGTM but nits on naming + possible assert. > --- >

[PATCH 3/4] drm/xe/vm: Perform accounting of userptr pinned pages

2023-08-18 Thread Thomas Hellström
Account these pages against RLIMIT_MEMLOCK following how RDMA does this with CAP_IPC_LOCK bypassing the limit. Signed-off-by: Thomas Hellström --- drivers/gpu/drm/xe/xe_vm.c | 43 -- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git