Re: [PATCH 4/4] drm/xe/uapi: Support pinning of userptr vmas

2023-08-22 Thread Thomas Hellström
On 8/20/23 05:54, Matthew Brost wrote: On Fri, Aug 18, 2023 at 05:08:45PM +0200, Thomas Hellström wrote: Support pinning of vmas using XE_VM_BIND_FLAG_PIN, initially for userptr only. Pinned memory becomes accounted against RLIMIT_MEMLOCK and processes with CAP_IPC_LOCK will not apply the limi

Re: [PATCH 4/4] drm/xe/uapi: Support pinning of userptr vmas

2023-08-19 Thread Matthew Brost
On Fri, Aug 18, 2023 at 05:08:45PM +0200, Thomas Hellström wrote: > Support pinning of vmas using XE_VM_BIND_FLAG_PIN, initially for userptr > only. Pinned memory becomes accounted against RLIMIT_MEMLOCK and processes > with CAP_IPC_LOCK will not apply the limit. This is pretty similar to > mlock()

[PATCH 4/4] drm/xe/uapi: Support pinning of userptr vmas

2023-08-18 Thread Thomas Hellström
Support pinning of vmas using XE_VM_BIND_FLAG_PIN, initially for userptr only. Pinned memory becomes accounted against RLIMIT_MEMLOCK and processes with CAP_IPC_LOCK will not apply the limit. This is pretty similar to mlock()'ing userptr memory with the added benefit that the driver is aware and ca