mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: Update test types in common.fbp SWUTS
Use the updated test types. Other (setup) --> Other (cleanup) Feature based --> Feature Also, change test names to unique identifier to avoid below errors in SWVS: Warning doxygenfunction: Unable to resolve multiple matches for function 'test_xxx' with arguments () in doxygen xml output for project 'nvgpu_doxygen'... JIRA NVGPU-4679 Change-Id: I2bddf608f22d8c9f9dd5fbde9ca39f4417839077 Signed-off-by: tkudav <tkudav@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2267587 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
@@ -726,7 +726,7 @@
|
||||
"test_level": 0
|
||||
},
|
||||
{
|
||||
"test": "test_free_reg_space",
|
||||
"test": "test_fbp_free_reg_space",
|
||||
"case": "fbp_free_reg_space",
|
||||
"unit": "fbp",
|
||||
"test_level": 0
|
||||
@@ -744,7 +744,7 @@
|
||||
"test_level": 0
|
||||
},
|
||||
{
|
||||
"test": "test_setup",
|
||||
"test": "test_fbp_setup",
|
||||
"case": "fbp_setup",
|
||||
"unit": "fbp",
|
||||
"test_level": 0
|
||||
|
||||
@@ -66,7 +66,7 @@ static struct nvgpu_posix_io_callbacks test_reg_callbacks = {
|
||||
.bar1_readl = readl_access_reg_fn,
|
||||
};
|
||||
|
||||
int test_setup(struct unit_module *m, struct gk20a *g, void *args)
|
||||
int test_fbp_setup(struct unit_module *m, struct gk20a *g, void *args)
|
||||
{
|
||||
/* Init HAL */
|
||||
g->ops.top.get_max_fbps_count = gm20b_top_get_max_fbps_count;
|
||||
@@ -93,7 +93,7 @@ int test_setup(struct unit_module *m, struct gk20a *g, void *args)
|
||||
return UNIT_SUCCESS;
|
||||
}
|
||||
|
||||
int test_free_reg_space(struct unit_module *m, struct gk20a *g, void *args)
|
||||
int test_fbp_free_reg_space(struct unit_module *m, struct gk20a *g, void *args)
|
||||
{
|
||||
/* Free register space */
|
||||
nvgpu_posix_io_delete_reg_space(g, fuse_status_opt_fbp_r());
|
||||
@@ -209,10 +209,10 @@ int test_fbp_remove_support(struct unit_module *m, struct gk20a *g, void *args)
|
||||
return ret;
|
||||
}
|
||||
struct unit_module_test fbp_tests[] = {
|
||||
UNIT_TEST(fbp_setup, test_setup, NULL, 0),
|
||||
UNIT_TEST(fbp_setup, test_fbp_setup, NULL, 0),
|
||||
UNIT_TEST(fbp_init_and_query, test_fbp_init_and_query, NULL, 0),
|
||||
UNIT_TEST(fbp_remove_support, test_fbp_remove_support, NULL, 0),
|
||||
UNIT_TEST(fbp_free_reg_space, test_free_reg_space, NULL, 0),
|
||||
UNIT_TEST(fbp_free_reg_space, test_fbp_free_reg_space, NULL, 0),
|
||||
};
|
||||
|
||||
UNIT_MODULE(fbp, fbp_tests, UNIT_PRIO_NVGPU_TEST);
|
||||
|
||||
@@ -33,7 +33,7 @@ struct unit_module;
|
||||
*/
|
||||
|
||||
/**
|
||||
* Test specification for: test_setup
|
||||
* Test specification for: test_fbp_setup
|
||||
*
|
||||
* Description: Setup prerequisites for tests.
|
||||
*
|
||||
@@ -50,16 +50,16 @@ struct unit_module;
|
||||
* - UNIT_FAIL if encounters an error creating register space;
|
||||
* - UNIT_SUCCESS otherwise
|
||||
*/
|
||||
int test_setup(struct unit_module *m, struct gk20a *g, void *args);
|
||||
int test_fbp_setup(struct unit_module *m, struct gk20a *g, void *args);
|
||||
|
||||
/**
|
||||
* Test specification for: test_free_reg_space
|
||||
* Test specification for: test_fbp_free_reg_space
|
||||
*
|
||||
* Description: Free resources from test_setup()
|
||||
*
|
||||
* Test Type: Other (setup)
|
||||
* Test Type: Other (cleanup)
|
||||
*
|
||||
* Input: test_setup() has been executed.
|
||||
* Input: test_fbp_setup() has been executed.
|
||||
*
|
||||
* Steps:
|
||||
* - Free up NV_TOP and NV_FUSE register space.
|
||||
@@ -67,18 +67,18 @@ int test_setup(struct unit_module *m, struct gk20a *g, void *args);
|
||||
* Output:
|
||||
* - UNIT_SUCCESS
|
||||
*/
|
||||
int test_free_reg_space(struct unit_module *m, struct gk20a *g, void *args);
|
||||
int test_fbp_free_reg_space(struct unit_module *m, struct gk20a *g, void *args);
|
||||
|
||||
/**
|
||||
* Test specification for: test_fbp_init_and_query
|
||||
*
|
||||
* Description: Verify the FBP init and config query APIs exposed by common.fbp.
|
||||
*
|
||||
* Test Type: Feature Based
|
||||
* Test Type: Feature
|
||||
*
|
||||
* Targets: nvgpu_fbp_init_support, nvgpu_fbp_get_max_fbps_count, nvgpu_fbp_get_fbp_en_mask
|
||||
*
|
||||
* Input: test_setup() has been executed.
|
||||
* Input: test_fbp_setup() has been executed.
|
||||
*
|
||||
* Steps:
|
||||
* - Initialize the FBP floorsweeping status in fuse to 0xE1 by writing to fuse
|
||||
@@ -107,7 +107,7 @@ int test_fbp_init_and_query(struct unit_module *m, struct gk20a *g, void *args);
|
||||
*
|
||||
* Description: Verify the nvgpu_fbp_remove_support exposed by common.fbp.
|
||||
*
|
||||
* Test Type: Feature Based
|
||||
* Test Type: Feature
|
||||
*
|
||||
* Targets: nvgpu_fbp_remove_support
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user