summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
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/gk20a/gk20a.h
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/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index d444447d..d219b815 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -890,6 +890,10 @@ struct gk20a {
890 int dbg_powergating_disabled_refcount; /*refcount for pg disable */ 890 int dbg_powergating_disabled_refcount; /*refcount for pg disable */
891 int dbg_timeout_disabled_refcount; /*refcount for timeout disable */ 891 int dbg_timeout_disabled_refcount; /*refcount for timeout disable */
892 892
893 /* must have dbg_sessions_lock before use */
894 struct nvgpu_dbg_gpu_reg_op *dbg_regops_tmp_buf;
895 u32 dbg_regops_tmp_buf_ops;
896
893 /* 897 /*
894 * When set subsequent VMAs will separate fixed and non-fixed 898 * When set subsequent VMAs will separate fixed and non-fixed
895 * allocations. This avoids conflicts with fixed and non-fixed allocs 899 * allocations. This avoids conflicts with fixed and non-fixed allocs