diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 45f6fd64..fa84337b 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -1378,6 +1378,11 @@ u64 gk20a_vm_map(struct vm_gk20a *vm, | |||
1378 | 1378 | ||
1379 | gk20a_get_comptags(d, dmabuf, &comptags); | 1379 | gk20a_get_comptags(d, dmabuf, &comptags); |
1380 | 1380 | ||
1381 | /* ensure alignment to compression page size if compression enabled */ | ||
1382 | if (bfr.ctag_offset) | ||
1383 | mapping_size = ALIGN(mapping_size, | ||
1384 | g->ops.fb.compression_page_size(g)); | ||
1385 | |||
1381 | if (bfr.ctag_lines && !comptags.lines) { | 1386 | if (bfr.ctag_lines && !comptags.lines) { |
1382 | /* allocate compression resources if needed */ | 1387 | /* allocate compression resources if needed */ |
1383 | err = gk20a_alloc_comptags(d, dmabuf, ctag_allocator, | 1388 | err = gk20a_alloc_comptags(d, dmabuf, ctag_allocator, |