summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/cde.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/cde.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/cde.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/cde.c b/drivers/gpu/nvgpu/common/linux/cde.c
index 5b0fb910..0c52271a 100644
--- a/drivers/gpu/nvgpu/common/linux/cde.c
+++ b/drivers/gpu/nvgpu/common/linux/cde.c
@@ -975,7 +975,7 @@ __releases(&l->cde_app->mutex)
975 u64 big_page_mask = 0; 975 u64 big_page_mask = 0;
976 u32 flags; 976 u32 flags;
977 int err, i; 977 int err, i;
978 const s32 compbits_kind = 0; 978 const s16 compbits_kind = 0;
979 979
980 gk20a_dbg(gpu_dbg_cde, "compbits_byte_offset=%llu scatterbuffer_byte_offset=%llu", 980 gk20a_dbg(gpu_dbg_cde, "compbits_byte_offset=%llu scatterbuffer_byte_offset=%llu",
981 compbits_byte_offset, scatterbuffer_byte_offset); 981 compbits_byte_offset, scatterbuffer_byte_offset);
@@ -1038,8 +1038,11 @@ __releases(&l->cde_app->mutex)
1038 /* map the destination buffer */ 1038 /* map the destination buffer */
1039 get_dma_buf(compbits_scatter_buf); /* a ref for nvgpu_vm_map */ 1039 get_dma_buf(compbits_scatter_buf); /* a ref for nvgpu_vm_map */
1040 map_vaddr = nvgpu_vm_map(cde_ctx->vm, compbits_scatter_buf, 0, 1040 map_vaddr = nvgpu_vm_map(cde_ctx->vm, compbits_scatter_buf, 0,
1041 NVGPU_MAP_BUFFER_FLAGS_CACHEABLE_TRUE, 1041 NVGPU_AS_MAP_BUFFER_FLAGS_CACHEABLE |
1042 compbits_kind, true, 1042 NVGPU_AS_MAP_BUFFER_FLAGS_DIRECT_KIND_CTRL,
1043 NV_KIND_INVALID,
1044 compbits_kind, /* incompressible kind */
1045 true,
1043 gk20a_mem_flag_none, 1046 gk20a_mem_flag_none,
1044 map_offset, map_size, 1047 map_offset, map_size,
1045 NULL); 1048 NULL);