mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
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 <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1805467 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
577c69322e
commit
8e66c5816d
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user