summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSami Kiminki <skiminki@nvidia.com>2016-11-15 14:03:14 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2016-12-26 03:03:59 -0500
commit425f99335bfa13fa2af4e0865f61a4eb29fad6be (patch)
treead5141bb2300c419a66290c92b3781d11b3016aa /include
parent98e349ab7eb01ac27e1e18477674294ca80d2093 (diff)
gpu: nvgpu: gk20a: Allow regops lists longer than 128
Process long regops lists in 4-kB fragments, overcoming the overly low limit of 128 reg ops per IOCTL call. Bump the list limit to 1024 and report the limit in GPU characteristics. Bug 200248726 Change-Id: I3ad49139409f32aea8b1226d6562e88edccc8053 Signed-off-by: Sami Kiminki <skiminki@nvidia.com> Reviewed-on: http://git-master/r/1253716 (cherry picked from commit 22314619b28f52610cb8769cd4c3f9eb01904eab) Reviewed-on: http://git-master/r/1266652 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/nvgpu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h
index 052bebc8..e844a205 100644
--- a/include/uapi/linux/nvgpu.h
+++ b/include/uapi/linux/nvgpu.h
@@ -220,6 +220,11 @@ struct nvgpu_gpu_characteristics {
220 __u8 vbios_oem_version; 220 __u8 vbios_oem_version;
221 __u32 vbios_version; 221 __u32 vbios_version;
222 222
223 /* NVGPU_DBG_GPU_IOCTL_REG_OPS: the upper limit for the number
224 * of regops */
225 __u32 reg_ops_limit;
226 __u32 reserved1;
227
223 /* Notes: 228 /* Notes:
224 - This struct can be safely appended with new fields. However, always 229 - This struct can be safely appended with new fields. However, always
225 keep the structure size multiple of 8 and make sure that the binary 230 keep the structure size multiple of 8 and make sure that the binary