summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/mm/gmmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/gmmu.c')
-rw-r--r--drivers/gpu/nvgpu/common/mm/gmmu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/gmmu.c b/drivers/gpu/nvgpu/common/mm/gmmu.c
index 8d78212b..62c84e96 100644
--- a/drivers/gpu/nvgpu/common/mm/gmmu.c
+++ b/drivers/gpu/nvgpu/common/mm/gmmu.c
@@ -691,6 +691,14 @@ u64 gk20a_locked_gmmu_map(struct vm_gk20a *vm,
691 .aperture = aperture 691 .aperture = aperture
692 }; 692 };
693 693
694 /*
695 * We need to add the buffer_offset within compression_page_size so that
696 * the programmed ctagline gets increased at compression_page_size
697 * boundaries.
698 */
699 if (attrs.ctag)
700 attrs.ctag += buffer_offset & (ctag_granularity - 1U);
701
694#ifdef CONFIG_TEGRA_19x_GPU 702#ifdef CONFIG_TEGRA_19x_GPU
695 nvgpu_gmmu_add_t19x_attrs(&attrs, flags); 703 nvgpu_gmmu_add_t19x_attrs(&attrs, flags);
696#endif 704#endif