From ff66847a00ac27d8d94b3664ec156a195dbf3676 Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Wed, 25 May 2022 22:01:24 -0400 Subject: gpu-paging: Split swap in/out to prepare for async support. --- include/uapi/linux/nvgpu.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include/uapi/linux') diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index 0138b720..b8ea59a1 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h @@ -2206,9 +2206,17 @@ struct nvgpu_as_swap_buffer_args { _IOW(NVGPU_AS_IOCTL_MAGIC, 13, struct nvgpu_as_swap_buffer_args) #define NVGPU_AS_IOCTL_READ_SWAP_BUFFER \ _IOW(NVGPU_AS_IOCTL_MAGIC, 14, struct nvgpu_as_swap_buffer_args) +#define NVGPU_AS_IOCTL_WRITE_SWAP_BUFFER_ASYNC \ + _IOW(NVGPU_AS_IOCTL_MAGIC, 15, struct nvgpu_as_swap_buffer_args) +#define NVGPU_AS_IOCTL_READ_SWAP_BUFFER_ASYNC \ + _IOW(NVGPU_AS_IOCTL_MAGIC, 16, struct nvgpu_as_swap_buffer_args) +#define NVGPU_AS_IOCTL_WRITE_SWAP_BUFFER_ASYNC_FINISH \ + _IOW(NVGPU_AS_IOCTL_MAGIC, 17, struct nvgpu_as_swap_buffer_args) +#define NVGPU_AS_IOCTL_READ_SWAP_BUFFER_ASYNC_FINISH \ + _IOW(NVGPU_AS_IOCTL_MAGIC, 18, struct nvgpu_as_swap_buffer_args) #define NVGPU_AS_IOCTL_LAST \ - _IOC_NR(NVGPU_AS_IOCTL_READ_SWAP_BUFFER) + _IOC_NR(NVGPU_AS_IOCTL_READ_SWAP_BUFFER_ASYNC_FINISH) #define NVGPU_AS_IOCTL_MAX_ARG_SIZE \ sizeof(struct nvgpu_as_map_buffer_ex_args) -- cgit v1.2.2