diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-10-25 13:06:07 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-12-09 18:05:12 -0500 |
commit | a4731b328268e1d75429942f769252e3e0d41328 (patch) | |
tree | 5ee3587a0edd609ee6da15a084a0132536f86281 /drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |
parent | 54810444d24bd8ca820f88eadbfd227b5fe8c492 (diff) |
gpu: nvgpu: Use end of vidmem as bootstrap region
Instead of hard coding bootstrap region, it should always be set to
the last 256MB of vidmem.
Bug 200244445
Change-Id: I91779d1bf861f4f23a0b646f70b1febbbc4581b5
Signed-off-by: David Nieto <dmartineznie@nvidia.com>
Reviewed-on: http://git-master/r/1242409
Reviewed-by: David Martinez Nieto <dmartineznie@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-on: http://git-master/r/1267124
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 6 |
1 files changed, 3 insertions, 3 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 | ||