summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/ioctl_as.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_as.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/ioctl_as.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_as.c b/drivers/gpu/nvgpu/common/linux/ioctl_as.c
index f23dc53c..848fee04 100644
--- a/drivers/gpu/nvgpu/common/linux/ioctl_as.c
+++ b/drivers/gpu/nvgpu/common/linux/ioctl_as.c
@@ -112,7 +112,6 @@ static int gk20a_as_ioctl_map_buffer_batch(
112 struct gk20a_as_share *as_share, 112 struct gk20a_as_share *as_share,
113 struct nvgpu_as_map_buffer_batch_args *args) 113 struct nvgpu_as_map_buffer_batch_args *args)
114{ 114{
115 struct gk20a *g = as_share->vm->mm->g;
116 u32 i; 115 u32 i;
117 int err = 0; 116 int err = 0;
118 117
@@ -127,8 +126,8 @@ static int gk20a_as_ioctl_map_buffer_batch(
127 126
128 gk20a_dbg_fn(""); 127 gk20a_dbg_fn("");
129 128
130 if (args->num_unmaps > g->gpu_characteristics.map_buffer_batch_limit || 129 if (args->num_unmaps > NVGPU_IOCTL_AS_MAP_BUFFER_BATCH_LIMIT ||
131 args->num_maps > g->gpu_characteristics.map_buffer_batch_limit) 130 args->num_maps > NVGPU_IOCTL_AS_MAP_BUFFER_BATCH_LIMIT)
132 return -EINVAL; 131 return -EINVAL;
133 132
134 nvgpu_vm_mapping_batch_start(&batch); 133 nvgpu_vm_mapping_batch_start(&batch);