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/gk20a/gk20a.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/gk20a/gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index a9ee65d0..2d7266ce 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -488,8 +488,6 @@ int gk20a_init_gpu_characteristics(struct gk20a *g) | |||
488 | gpu->pci_class = g->pci_class; | 488 | gpu->pci_class = g->pci_class; |
489 | gpu->pci_revision = g->pci_revision; | 489 | gpu->pci_revision = g->pci_revision; |
490 | 490 | ||
491 | gpu->reg_ops_limit = 1024; | ||
492 | |||
493 | return 0; | 491 | return 0; |
494 | } | 492 | } |
495 | 493 | ||