diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-11-07 11:43:23 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-08 17:06:20 -0500 |
commit | e7c45478895a359bd122b359c1f29b7e64116caf (patch) | |
tree | 87f89255e6a2d7f3cb87d9c765e71c6c7bea1da9 /drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | |
parent | e620bbccdd9ec520ed74282ed7905c7b3ef03d4a (diff) |
gpu: nvgpu: Hard code regops max batch size
We set the regops limit in common code to a hard coded value and access
it in Linux code. Change the responsibility so that regops limit is
set in Linux code in the GPU characteristics query to a hard coded value
and just use the same hard coded value in the IOCTL limit check.
JIRA NVGPU-259
Change-Id: I2f78a7ea8f1cb68a08633a2dc74b71b3b001e5c9
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1593682
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c index 02dedc9f..83282b87 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <nvgpu/linux/vidmem.h> | 33 | #include <nvgpu/linux/vidmem.h> |
34 | 34 | ||
35 | #include "ioctl_ctrl.h" | 35 | #include "ioctl_ctrl.h" |
36 | #include "ioctl_dbg.h" | ||
36 | #ifdef CONFIG_TEGRA_19x_GPU | 37 | #ifdef CONFIG_TEGRA_19x_GPU |
37 | #include "common/linux/ioctl_ctrl_t19x.h" | 38 | #include "common/linux/ioctl_ctrl_t19x.h" |
38 | #endif | 39 | #endif |
@@ -207,6 +208,7 @@ gk20a_ctrl_ioctl_gpu_characteristics( | |||
207 | pgpu->arch = g->params.gpu_arch; | 208 | pgpu->arch = g->params.gpu_arch; |
208 | pgpu->impl = g->params.gpu_impl; | 209 | pgpu->impl = g->params.gpu_impl; |
209 | pgpu->rev = g->params.gpu_rev; | 210 | pgpu->rev = g->params.gpu_rev; |
211 | pgpu->reg_ops_limit = NVGPU_IOCTL_DBG_REG_OPS_LIMIT; | ||
210 | 212 | ||
211 | pgpu->vbios_version = g->bios.vbios_version; | 213 | pgpu->vbios_version = g->bios.vbios_version; |
212 | pgpu->vbios_oem_version = g->bios.vbios_oem_version; | 214 | pgpu->vbios_oem_version = g->bios.vbios_oem_version; |