summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorsujeet baranwal <sbaranwal@nvidia.com>2015-03-06 14:55:36 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-04-04 21:58:05 -0400
commit2155dfeaba1714bb00cb86af090aa056aec3acfd (patch)
tree545b791cbf1271750f8728e1e5ec30d107a4ef7b /include
parent895675e1d5790e2361b22edb50d702f7dd9a8edd (diff)
gpu: nvgpu: Gpu characterstics enhancement
New members are added in nvgpu_gpu_characterstics to export more information required specially from CUDA tools. Change-Id: I907f3bcbd272405a13f47ef6236bc2cff01c6c80 Signed-off-by: Sujeet Baranwal <sbaranwal@nvidia.com> Reviewed-on: http://git-master/r/679202 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/nvgpu.h33
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
297struct nvgpu_gpu_num_vsms {
298 __u32 num_vsms;
299 __u32 reserved;
300};
301
302struct 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)