mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: Fix address space initialization in page_table unit test
Unit tests in page_table were initializing the VM with a kernel_reserved section that was slightly smaller than expected. Then, when the fixed alloc to support semaphores was done, the fixed address used was actually below the start of the kernel address space. As a result this caused an overflow in the base shift in the buddy allocator responsible for managing the fixed alloc. Change-Id: I4e688d418262ac8d9d4b66b46bd32ca5456d95e8 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2130433 Reviewed-by: Philip Elcan <pelcan@nvidia.com> Tested-by: Philip Elcan <pelcan@nvidia.com> GVS: Gerrit_Virtual_Submit 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
0352bebc07
commit
c74b89194d
@@ -974,7 +974,7 @@ static struct vm_gk20a *init_test_req_vm(struct gk20a *g)
|
|||||||
kernel_reserved = 4 * SZ_1G;
|
kernel_reserved = 4 * SZ_1G;
|
||||||
|
|
||||||
return nvgpu_vm_init(g, g->ops.mm.gmmu.get_default_big_page_size(),
|
return nvgpu_vm_init(g, g->ops.mm.gmmu.get_default_big_page_size(),
|
||||||
low_hole, kernel_reserved - low_hole,
|
low_hole, kernel_reserved,
|
||||||
aperture_size, big_pages, true, true, "testmem");
|
aperture_size, big_pages, true, true, "testmem");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user