diff options
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/nvgpu.h | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index 3a7c7831..ab84b699 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h | |||
@@ -111,7 +111,6 @@ struct nvgpu_gpu_characteristics { | |||
111 | __u32 arch; | 111 | __u32 arch; |
112 | __u32 impl; | 112 | __u32 impl; |
113 | __u32 rev; | 113 | __u32 rev; |
114 | |||
115 | __u32 num_gpc; | 114 | __u32 num_gpc; |
116 | 115 | ||
117 | __u64 L2_cache_size; /* bytes */ | 116 | __u64 L2_cache_size; /* bytes */ |
@@ -153,9 +152,22 @@ struct nvgpu_gpu_characteristics { | |||
153 | __s16 as_ioctl_nr_last; | 152 | __s16 as_ioctl_nr_last; |
154 | 153 | ||
155 | __u8 gpu_va_bit_count; | 154 | __u8 gpu_va_bit_count; |
156 | |||
157 | __u8 reserved; | 155 | __u8 reserved; |
158 | 156 | ||
157 | __u32 max_fbps_count; | ||
158 | __u32 fbp_en_mask; | ||
159 | __u32 max_ltc_per_fbp; | ||
160 | __u32 max_lts_per_ltc; | ||
161 | __u32 max_tex_per_tpc; | ||
162 | __u32 max_gpc_count; | ||
163 | /* mask of Rop_L2 for each FBP */ | ||
164 | __u32 rop_l2_en_mask[2]; | ||
165 | |||
166 | |||
167 | __u8 chipname[8]; | ||
168 | |||
169 | |||
170 | |||
159 | /* Notes: | 171 | /* Notes: |
160 | - This struct can be safely appended with new fields. However, always | 172 | - This struct can be safely appended with new fields. However, always |
161 | keep the structure size multiple of 8 and make sure that the binary | 173 | keep the structure size multiple of 8 and make sure that the binary |
@@ -282,6 +294,15 @@ struct nvgpu_gpu_tpc_exception_en_status_args { | |||
282 | __u64 tpc_exception_en_sm_mask; | 294 | __u64 tpc_exception_en_sm_mask; |
283 | }; | 295 | }; |
284 | 296 | ||
297 | struct nvgpu_gpu_num_vsms { | ||
298 | __u32 num_vsms; | ||
299 | __u32 reserved; | ||
300 | }; | ||
301 | |||
302 | struct nvgpu_gpu_vsms_mapping { | ||
303 | __u64 vsms_map_buf_addr; | ||
304 | }; | ||
305 | |||
285 | #define NVGPU_GPU_IOCTL_ZCULL_GET_CTX_SIZE \ | 306 | #define NVGPU_GPU_IOCTL_ZCULL_GET_CTX_SIZE \ |
286 | _IOR(NVGPU_GPU_IOCTL_MAGIC, 1, struct nvgpu_gpu_zcull_get_ctx_size_args) | 307 | _IOR(NVGPU_GPU_IOCTL_MAGIC, 1, struct nvgpu_gpu_zcull_get_ctx_size_args) |
287 | #define NVGPU_GPU_IOCTL_ZCULL_GET_INFO \ | 308 | #define NVGPU_GPU_IOCTL_ZCULL_GET_INFO \ |
@@ -316,9 +337,13 @@ struct nvgpu_gpu_tpc_exception_en_status_args { | |||
316 | _IOWR(NVGPU_GPU_IOCTL_MAGIC, 16, struct nvgpu_gpu_wait_pause_args) | 337 | _IOWR(NVGPU_GPU_IOCTL_MAGIC, 16, struct nvgpu_gpu_wait_pause_args) |
317 | #define NVGPU_GPU_IOCTL_GET_TPC_EXCEPTION_EN_STATUS \ | 338 | #define NVGPU_GPU_IOCTL_GET_TPC_EXCEPTION_EN_STATUS \ |
318 | _IOWR(NVGPU_GPU_IOCTL_MAGIC, 17, struct nvgpu_gpu_tpc_exception_en_status_args) | 339 | _IOWR(NVGPU_GPU_IOCTL_MAGIC, 17, struct nvgpu_gpu_tpc_exception_en_status_args) |
340 | #define NVGPU_GPU_IOCTL_NUM_VSMS \ | ||
341 | _IOWR(NVGPU_GPU_IOCTL_MAGIC, 18, struct nvgpu_gpu_num_vsms) | ||
342 | #define NVGPU_GPU_IOCTL_VSMS_MAPPING \ | ||
343 | _IOWR(NVGPU_GPU_IOCTL_MAGIC, 19, struct nvgpu_gpu_vsms_mapping) | ||
319 | 344 | ||
320 | #define NVGPU_GPU_IOCTL_LAST \ | 345 | #define NVGPU_GPU_IOCTL_LAST \ |
321 | _IOC_NR(NVGPU_GPU_IOCTL_GET_TPC_EXCEPTION_EN_STATUS) | 346 | _IOC_NR(NVGPU_GPU_IOCTL_VSMS_MAPPING) |
322 | #define NVGPU_GPU_IOCTL_MAX_ARG_SIZE \ | 347 | #define NVGPU_GPU_IOCTL_MAX_ARG_SIZE \ |
323 | sizeof(struct nvgpu_gpu_prepare_compressible_read_args) | 348 | sizeof(struct nvgpu_gpu_prepare_compressible_read_args) |
324 | 349 | ||
@@ -913,7 +938,7 @@ struct nvgpu_as_get_va_regions_args { | |||
913 | #define NVGPU_AS_IOCTL_GET_VA_REGIONS \ | 938 | #define NVGPU_AS_IOCTL_GET_VA_REGIONS \ |
914 | _IOWR(NVGPU_AS_IOCTL_MAGIC, 8, struct nvgpu_as_get_va_regions_args) | 939 | _IOWR(NVGPU_AS_IOCTL_MAGIC, 8, struct nvgpu_as_get_va_regions_args) |
915 | 940 | ||
916 | #define NVGPU_AS_IOCTL_LAST \ | 941 | #define NVGPU_AS_IOCTL_LAST \ |
917 | _IOC_NR(NVGPU_AS_IOCTL_GET_VA_REGIONS) | 942 | _IOC_NR(NVGPU_AS_IOCTL_GET_VA_REGIONS) |
918 | #define NVGPU_AS_IOCTL_MAX_ARG_SIZE \ | 943 | #define NVGPU_AS_IOCTL_MAX_ARG_SIZE \ |
919 | sizeof(struct nvgpu_as_map_buffer_ex_args) | 944 | sizeof(struct nvgpu_as_map_buffer_ex_args) |