summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/nvgpu_common.c
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 /drivers/gpu/nvgpu/nvgpu_common.c
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 'drivers/gpu/nvgpu/nvgpu_common.c')
-rw-r--r--drivers/gpu/nvgpu/nvgpu_common.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/nvgpu_common.c b/drivers/gpu/nvgpu/nvgpu_common.c
index 179464d8..a1f4832b 100644
--- a/drivers/gpu/nvgpu/nvgpu_common.c
+++ b/drivers/gpu/nvgpu/nvgpu_common.c
@@ -155,6 +155,14 @@ int nvgpu_probe(struct gk20a *g,
155 gk20a_create_sysfs(g->dev); 155 gk20a_create_sysfs(g->dev);
156 gk20a_debug_init(g->dev, debugfs_symlink); 156 gk20a_debug_init(g->dev, debugfs_symlink);
157 157
158 g->dbg_regops_tmp_buf = kzalloc(SZ_4K, GFP_KERNEL);
159 if (!g->dbg_regops_tmp_buf) {
160 dev_err(g->dev, "couldn't allocate regops tmp buf");
161 return -ENOMEM;
162 }
163 g->dbg_regops_tmp_buf_ops =
164 SZ_4K / sizeof(g->dbg_regops_tmp_buf[0]);
165
158 g->remove_support = gk20a_remove_support; 166 g->remove_support = gk20a_remove_support;
159 167
160 return 0; 168 return 0;