mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: unit: stage vm.init_error_paths subcase
One subcases in the init_error_paths test case is causing intermittent failures (free of non malloc'ed memory) due to the nature of error injection. This patch removes the subcase until a better way to test the condition is devised. JIRA NVGPU-4328 Change-Id: Ic463bb1466b93016b9166e6297745d21d4fb0942 Signed-off-by: Nicolas Benech <nbenech@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2245485 Reviewed-by: Philip Elcan <pelcan@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vinod Gopalakrishnakurup <vinodg@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
Alex Waterman
parent
1b9e66a284
commit
eb4349548d
@@ -989,19 +989,6 @@ int test_init_error_paths(struct unit_module *m, struct gk20a *g, void *__args)
|
||||
goto exit;
|
||||
}
|
||||
|
||||
/* Cause nvgpu_allocator_init(BUDDY) to fail for user VMA */
|
||||
nvgpu_posix_enable_fault_injection(kmem_fi, true, 12);
|
||||
ret = nvgpu_vm_do_init(&g->mm, vm,
|
||||
g->ops.mm.gmmu.get_default_big_page_size(),
|
||||
low_hole, kernel_reserved, aperture_size,
|
||||
big_pages, false, false, __func__);
|
||||
nvgpu_posix_enable_fault_injection(kmem_fi, false, 0);
|
||||
if (ret != -ENOMEM) {
|
||||
unit_err(m, "nvgpu_vm_do_init did not fail as expected (A).\n");
|
||||
ret = UNIT_FAIL;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
/* Success with big pages and not unified VA */
|
||||
ret = nvgpu_vm_do_init(&g->mm, vm,
|
||||
g->ops.mm.gmmu.get_default_big_page_size(),
|
||||
|
||||
Reference in New Issue
Block a user