mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: add more test coverage to gr.ecc unit
Add test coverage to free gr.ecc allocation. Jira NVGPU-4460 Change-Id: I2fcd08adb23e444331020af8590eb698a3fc6d7c Signed-off-by: vinodg <vinodg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2254560 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: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
@@ -132,6 +132,8 @@ int test_gr_init_support(struct unit_module *m, struct gk20a *g, void *args)
|
||||
unit_return_fail(m, "nvgpu_gr_init_support returned fail\n");
|
||||
}
|
||||
|
||||
g->ops.ecc.ecc_finalize_support(g);
|
||||
|
||||
return UNIT_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -173,6 +175,10 @@ int test_gr_init_setup_ready(struct unit_module *m,
|
||||
|
||||
int test_gr_remove_support(struct unit_module *m, struct gk20a *g, void *args)
|
||||
{
|
||||
if (g->ops.ecc.ecc_remove_support != NULL) {
|
||||
g->ops.ecc.ecc_remove_support(g);
|
||||
}
|
||||
|
||||
nvgpu_gr_remove_support(g);
|
||||
|
||||
return UNIT_SUCCESS;
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
struct gk20a;
|
||||
struct unit_module;
|
||||
|
||||
/** @addtogroup SWUTS-common-gr
|
||||
/** @addtogroup SWUTS-gr
|
||||
* @{
|
||||
*
|
||||
* Software Unit Test Specification for common.gr
|
||||
@@ -101,11 +101,12 @@ int test_gr_init_prepare(struct unit_module *m, struct gk20a *g, void *args);
|
||||
*
|
||||
* Steps:
|
||||
* - Call nvgpu_gr_init.
|
||||
* - Call g->ops.gr.ecc.ecc_init_support.
|
||||
* - Call g->ops.ltc.init_ltc_support & g->ops.mm.init_mm_support.
|
||||
* - Override g->ops.gr.falcon.load_ctxsw_ucode function.
|
||||
* - Call g->ops.chip_init_gpu_characteristics.
|
||||
* - Call nvgpu_gr_init_support.
|
||||
* - Call g->ops.gr.ecc.ecc_init_support.
|
||||
* - Call g->ops.gr.ecc.ecc_finalize_support.
|
||||
*
|
||||
* Output: Returns PASS if the steps above were executed successfully. FAIL
|
||||
* otherwise.
|
||||
@@ -140,6 +141,7 @@ int test_gr_suspend(struct unit_module *m, struct gk20a *g, void *args);
|
||||
* must have been executed successfully.
|
||||
*
|
||||
* Steps:
|
||||
* - Call g->ops.gr.ecc.ecc_remove_support.
|
||||
* - Call nvgpu_gr_remove_support.
|
||||
*
|
||||
* Output: Returns PASS.
|
||||
|
||||
Reference in New Issue
Block a user