mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: unit: mark boundary value tests for common.gr
Add "Boundary value" to test type for below tests: test_gr_setup_alloc_obj_ctx_error_injections test_gr_setup_preemption_mode_errors Also add a test to verify passing graphics class to alloc_obj_ctx HAL fails. Jira NVGPU-4843 Change-Id: I0c256c2fcff98e81bfdcf80c6e0edb66d3831c31 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2279973 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Alex Waterman
parent
11b7e12b7d
commit
e4c9ab22f5
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -399,6 +399,13 @@ static int gr_setup_fail_alloc(struct unit_module *m, struct gk20a *g)
|
||||
goto obj_ctx_fail_end;
|
||||
}
|
||||
|
||||
/* SUBTEST-4 for graphics class num */
|
||||
err = g->ops.gr.setup.alloc_obj_ctx(gr_setup_ch, 0xC397U, 0);
|
||||
if (err == 0) {
|
||||
unit_err(m, "setup alloc SUBTEST-4 failed\n");
|
||||
goto obj_ctx_fail_end;
|
||||
}
|
||||
|
||||
obj_ctx_fail_end:
|
||||
return (err != 0) ? UNIT_SUCCESS: UNIT_FAIL;
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ int test_gr_setup_free_obj_ctx(struct unit_module *m,
|
||||
* Description: Helps to verify error paths in
|
||||
* g->ops.gr.setup.set_preemption_mode call.
|
||||
*
|
||||
* Test Type: Error injection
|
||||
* Test Type: Error injection, Boundary values
|
||||
*
|
||||
* Targets: #nvgpu_gr_setup_set_preemption_mode,
|
||||
* #nvgpu_gr_obj_ctx_set_ctxsw_preemption_mode.
|
||||
@@ -147,7 +147,7 @@ int test_gr_setup_preemption_mode_errors(struct unit_module *m,
|
||||
* Description: Helps to verify error paths in
|
||||
* g->ops.gr.setup.alloc_obj_ctx call.
|
||||
*
|
||||
* Test Type: Error injection
|
||||
* Test Type: Error injection, Boundary values
|
||||
*
|
||||
* Targets: #nvgpu_gr_setup_alloc_obj_ctx,
|
||||
* #nvgpu_gr_subctx_alloc, #nvgpu_gr_obj_ctx_alloc,
|
||||
|
||||
Reference in New Issue
Block a user