mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: Implement 64k large page support
Implement support for 64kB large page size. Add an API to create an address space via IOCTL so that we can accept flags, and assign one flag for enabling 64kB large page size. Also adds APIs to set per-context large page size. This is possible only on Maxwell, so return error if caller tries to set large page size on Kepler. Default large page size is still 128kB. Change-Id: I20b51c8f6d4a984acae8411ace3de9000c78e82f Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
Dan Willemsen
parent
ecc6f27fd1
commit
2eb6dcb469
@@ -175,6 +175,12 @@ struct nvgpu_gpu_mark_compressible_write_args {
|
||||
__u32 reserved[3]; /* must be zero */
|
||||
};
|
||||
|
||||
struct nvgpu_alloc_as_args {
|
||||
__u32 big_page_size;
|
||||
__s32 as_fd;
|
||||
__u64 reserved; /* must be zero */
|
||||
};
|
||||
|
||||
#define NVGPU_GPU_IOCTL_ZCULL_GET_CTX_SIZE \
|
||||
_IOR(NVGPU_GPU_IOCTL_MAGIC, 1, struct nvgpu_gpu_zcull_get_ctx_size_args)
|
||||
#define NVGPU_GPU_IOCTL_ZCULL_GET_INFO \
|
||||
@@ -189,9 +195,11 @@ struct nvgpu_gpu_mark_compressible_write_args {
|
||||
_IOWR(NVGPU_GPU_IOCTL_MAGIC, 6, struct nvgpu_gpu_prepare_compressible_read_args)
|
||||
#define NVGPU_GPU_IOCTL_MARK_COMPRESSIBLE_WRITE \
|
||||
_IOWR(NVGPU_GPU_IOCTL_MAGIC, 7, struct nvgpu_gpu_mark_compressible_write_args)
|
||||
#define NVGPU_GPU_IOCTL_ALLOC_AS \
|
||||
_IOWR(NVGPU_GPU_IOCTL_MAGIC, 8, struct nvgpu_alloc_as_args)
|
||||
|
||||
#define NVGPU_GPU_IOCTL_LAST \
|
||||
_IOC_NR(NVGPU_GPU_IOCTL_MARK_COMPRESSIBLE_WRITE)
|
||||
_IOC_NR(NVGPU_GPU_IOCTL_ALLOC_AS)
|
||||
#define NVGPU_GPU_IOCTL_MAX_ARG_SIZE \
|
||||
sizeof(struct nvgpu_gpu_prepare_compressible_read_args)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user