summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-11-07 14:01:26 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-11-13 13:56:54 -0500
commit8e611fb654e3f13258cd481cfd33d35d8d0fb8bb (patch)
treede5ed1ab307e98e4dd917a34b9e9bd75dddab96e /drivers/gpu/nvgpu/include
parente728fbecba0389c084bd52f6f6500d66982427fb (diff)
gpu: nvgpu: Hard code map_buffer_batch_limit
Add a hard coded #define for map_buffer_batch_limit and use that insted of querying from GPU characteristics. Also add an nvgpu_is_enabled() flag for disabling batch mapping, and set map_buffer_batch_limit to zero if batch mapping is disabled. JIRA NVGPU-388 Change-Id: Ic91feea638d0f47c5c22321886cfc75e97259dc3 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1593690 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/enabled.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/enabled.h b/drivers/gpu/nvgpu/include/nvgpu/enabled.h
index f2b5dbf7..ad5b3db3 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/enabled.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/enabled.h
@@ -66,6 +66,8 @@ struct gk20a;
66#define NVGPU_SUPPORT_SPARSE_ALLOCS 23 66#define NVGPU_SUPPORT_SPARSE_ALLOCS 23
67/* Direct PTE kind control is supported (map_buffer_ex) */ 67/* Direct PTE kind control is supported (map_buffer_ex) */
68#define NVGPU_SUPPORT_MAP_DIRECT_KIND_CTRL 24 68#define NVGPU_SUPPORT_MAP_DIRECT_KIND_CTRL 24
69/* Support batch mapping */
70#define NVGPU_SUPPORT_MAP_BUFFER_BATCH 25
69 71
70/* 72/*
71 * Host flags 73 * Host flags