diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 6 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 13dc4241..8ac6d1d1 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -914,13 +914,13 @@ static int gk20a_init_vidmem(struct mm_gk20a *mm) | |||
914 | int err; | 914 | int err; |
915 | 915 | ||
916 | static struct gk20a_alloc_carveout wpr_co = | 916 | static struct gk20a_alloc_carveout wpr_co = |
917 | GK20A_CARVEOUT("wpr-region", | 917 | GK20A_CARVEOUT("wpr-region", 0, SZ_16M); |
918 | NVGPU_VIDMEM_BOOTSTRAP_ALLOCATOR_BASE, SZ_16M); | ||
919 | 918 | ||
920 | if (!size) | 919 | if (!size) |
921 | return 0; | 920 | return 0; |
922 | 921 | ||
923 | bootstrap_base = NVGPU_VIDMEM_BOOTSTRAP_ALLOCATOR_BASE; | 922 | wpr_co.base = size - SZ_256M; |
923 | bootstrap_base = wpr_co.base; | ||
924 | bootstrap_size = SZ_16M; | 924 | bootstrap_size = SZ_16M; |
925 | base = default_page_size; | 925 | base = default_page_size; |
926 | 926 | ||
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index 36ba6248..e1ee8c2e 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |||
@@ -51,8 +51,6 @@ enum gk20a_aperture { | |||
51 | APERTURE_VIDMEM | 51 | APERTURE_VIDMEM |
52 | }; | 52 | }; |
53 | 53 | ||
54 | #define NVGPU_VIDMEM_BOOTSTRAP_ALLOCATOR_BASE 0x18000000 | ||
55 | |||
56 | static inline const char *gk20a_aperture_str(enum gk20a_aperture aperture) | 54 | static inline const char *gk20a_aperture_str(enum gk20a_aperture aperture) |
57 | { | 55 | { |
58 | switch (aperture) { | 56 | switch (aperture) { |