From 8e66c5816dfea8e321c4745e6a4385770b62c9d0 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Thu, 23 Aug 2018 16:58:17 +0530 Subject: gpu: nvgpu: make bootstrap allocations contiguous We use bootstrap vidmem allocator for all the vidmem allocations that happen boot time And we need to program physical address for all the potential vidmem buffers that we program into h/w and are needed during boot So force the allocator to allocate contigous memory We otherwise see a warning dump when we program physical address of memory which is allocated in multiple pages Bug 2180284 Jira NVGPUT-12 Change-Id: Ib9c2d42ea463bc424c2cb4da8ffd8ebae436e0f6 Signed-off-by: Deepak Nibade Reviewed-on: https://git-master.nvidia.com/r/1805467 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/mm/vidmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/common') diff --git a/drivers/gpu/nvgpu/common/mm/vidmem.c b/drivers/gpu/nvgpu/common/mm/vidmem.c index 290d6f99..1ace2333 100644 --- a/drivers/gpu/nvgpu/common/mm/vidmem.c +++ b/drivers/gpu/nvgpu/common/mm/vidmem.c @@ -314,7 +314,7 @@ int nvgpu_vidmem_init(struct mm_gk20a *mm) err = nvgpu_page_allocator_init(g, &g->mm.vidmem.bootstrap_allocator, "vidmem-bootstrap", bootstrap_base, bootstrap_size, - SZ_4K, 0); + SZ_4K, GPU_ALLOC_FORCE_CONTIG); err = nvgpu_page_allocator_init(g, &g->mm.vidmem.allocator, "vidmem", -- cgit v1.2.2