diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 36ae1d7d..a0e88c3e 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -895,6 +895,10 @@ static int gk20a_init_vidmem(struct mm_gk20a *mm) | |||
895 | u64 default_page_size = SZ_64K; | 895 | u64 default_page_size = SZ_64K; |
896 | int err; | 896 | int err; |
897 | 897 | ||
898 | static struct gk20a_alloc_carveout wpr_co = | ||
899 | GK20A_CARVEOUT("wpr-region", | ||
900 | NVGPU_VIDMEM_BOOTSTRAP_ALLOCATOR_BASE, SZ_16M); | ||
901 | |||
898 | if (!size) | 902 | if (!size) |
899 | return 0; | 903 | return 0; |
900 | 904 | ||
@@ -921,8 +925,7 @@ static int gk20a_init_vidmem(struct mm_gk20a *mm) | |||
921 | } | 925 | } |
922 | 926 | ||
923 | /* Reserve bootstrap region in vidmem allocator */ | 927 | /* Reserve bootstrap region in vidmem allocator */ |
924 | gk20a_alloc_fixed(&g->mm.vidmem.allocator, | 928 | gk20a_alloc_reserve_carveout(&g->mm.vidmem.allocator, &wpr_co); |
925 | bootstrap_base, bootstrap_size); | ||
926 | 929 | ||
927 | mm->vidmem.base = base; | 930 | mm->vidmem.base = base; |
928 | mm->vidmem.size = size - base; | 931 | mm->vidmem.size = size - base; |