summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorPeter Daifuku <pdaifuku@nvidia.com>2017-10-13 20:06:30 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-10-25 23:24:10 -0400
commit6bf40e523740279761f3fdc3d84000acc2f62aba (patch)
treebf56295c292b5ee9bee232141bc0ebd262f02225 /include/uapi
parent0dcf0ede812aa55aa106a5e6c2f86216fcbfd5e0 (diff)
gpu: nvgpu: add max_css_buffer_size characteristic
Add max_css_buffer_size to gpu characteristics. In the virtual case, the size of the cycle stats snapshot buffer is constrained by the size of the mempool shared between the guest OS and the RM server, so tools need to find out what is the maximum size allowed. In the native case, we return 0xffffffff to indicate that the buffer size is unbounded (subject to memory availability), in the virtual case we return the size of the mempool. Also collapse native init_cyclestats functions to a single version, as each chip had identical versions of the code. JIRA ESRM-54 Bug 200296210 Change-Id: I71764d32c6e71a0d101bd40f274eaa4bea3e5b11 Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1578930 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/nvgpu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h
index 9c883a93..29541031 100644
--- a/include/uapi/linux/nvgpu.h
+++ b/include/uapi/linux/nvgpu.h
@@ -245,7 +245,9 @@ struct nvgpu_gpu_characteristics {
245 __u32 reserved1; 245 __u32 reserved1;
246 246
247 __s16 event_ioctl_nr_last; 247 __s16 event_ioctl_nr_last;
248 __u16 pad[3]; 248 __u16 pad;
249
250 __u32 max_css_buffer_size;
249 251
250 /* Notes: 252 /* Notes:
251 - This struct can be safely appended with new fields. However, always 253 - This struct can be safely appended with new fields. However, always