mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
e728fbecba
commit
8e611fb654
@@ -18,6 +18,10 @@
|
||||
struct inode;
|
||||
struct file;
|
||||
|
||||
/* MAP_BUFFER_BATCH_LIMIT: the upper limit for num_unmaps and
|
||||
* num_maps */
|
||||
#define NVGPU_IOCTL_AS_MAP_BUFFER_BATCH_LIMIT 256
|
||||
|
||||
/* struct file_operations driver interface */
|
||||
int gk20a_as_dev_open(struct inode *inode, struct file *filp);
|
||||
int gk20a_as_dev_release(struct inode *inode, struct file *filp);
|
||||
|
||||
Reference in New Issue
Block a user