summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index 04f9446b..d39dcff0 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -25,10 +25,13 @@
25#include <asm/cacheflush.h> 25#include <asm/cacheflush.h>
26#include "gk20a_allocator.h" 26#include "gk20a_allocator.h"
27 27
28/* For now keep the size relatively small-ish compared to the full 28/*
29 * 40b va. 32GB for now. It consists of two 16GB spaces. */ 29 * Amount of the GVA space we actually use is smaller than the available space.
30#define NV_GMMU_VA_RANGE 35ULL 30 * The bottom 16GB of the space are used for small pages, the remaining high
31#define NV_GMMU_VA_IS_UPPER(x) ((x) >= ((u64)0x1 << (NV_GMMU_VA_RANGE-1))) 31 * memory is for large pages.
32 */
33#define NV_GMMU_VA_RANGE 37ULL
34#define NV_GMMU_VA_IS_UPPER(x) ((x) >= ((u64)SZ_1G * 16))
32 35
33#ifdef CONFIG_ARM64 36#ifdef CONFIG_ARM64
34#define outer_flush_range(a, b) 37#define outer_flush_range(a, b)