summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux')
-rw-r--r--drivers/gpu/nvgpu/common/linux/dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/dma.c b/drivers/gpu/nvgpu/common/linux/dma.c
index 53e54bc6..f513dcd6 100644
--- a/drivers/gpu/nvgpu/common/linux/dma.c
+++ b/drivers/gpu/nvgpu/common/linux/dma.c
@@ -240,7 +240,7 @@ int nvgpu_dma_alloc_flags_sys(struct gk20a *g, unsigned long flags,
240 * Before the debug print so we see this in the total. But during 240 * Before the debug print so we see this in the total. But during
241 * cleanup in the fail path this has to be subtracted. 241 * cleanup in the fail path this has to be subtracted.
242 */ 242 */
243 g->dma_memory_used += mem->aligned_size; 243 g->dma_memory_used += PAGE_ALIGN(size);
244 244
245 dma_dbg_alloc(g, size, flags, "sysmem"); 245 dma_dbg_alloc(g, size, flags, "sysmem");
246 246