gpu: nvgpu: Update test types in common.top 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: Ic2701bec2eafa0e64891d5c6d404847f14c41e55
Signed-off-by: tkudav <tkudav@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2268937
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
tkudav
2019-12-26 12:36:14 +05:30
committed by Alex Waterman
parent a1259a6795
commit d5b2deee29
3 changed files with 41 additions and 41 deletions

View File

@@ -68,7 +68,7 @@ static struct nvgpu_posix_io_callbacks test_reg_callbacks = {
#define NV_TOP_START 0x00022400U
#define NV_TOP_SIZE 0x000003FFU
int test_setup(struct unit_module *m, struct gk20a *g, void *args)
int test_top_setup(struct unit_module *m, struct gk20a *g, void *args)
{
u32 i;
u32 entry_count = 0U;
@@ -119,7 +119,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_top_free_reg_space(struct unit_module *m, struct gk20a *g, void *args)
{
/* Free register space */
nvgpu_posix_io_delete_reg_space(g, NV_TOP_START);
@@ -593,7 +593,7 @@ int test_get_num_lce(struct unit_module *m, struct gk20a *g, void *args)
}
struct unit_module_test top_tests[] = {
UNIT_TEST(top_setup, test_setup, NULL, 0),
UNIT_TEST(top_setup, test_top_setup, NULL, 0),
UNIT_TEST(top_device_info_parse_enum,
test_device_info_parse_enum, NULL, 0),
UNIT_TEST(top_is_engine_gr, test_is_engine_gr, NULL, 0),
@@ -613,7 +613,7 @@ struct unit_module_test top_tests[] = {
UNIT_TEST(top_get_device_info, test_get_device_info, NULL, 0),
UNIT_TEST(top_is_engine_ce, test_is_engine_ce, NULL, 0),
UNIT_TEST(top_get_num_lce, test_get_num_lce, NULL, 0),
UNIT_TEST(top_free_reg_space, test_free_reg_space, NULL, 0),
UNIT_TEST(top_free_reg_space, test_top_free_reg_space, NULL, 0),
};
UNIT_MODULE(top, top_tests, UNIT_PRIO_NVGPU_TEST);

View File

@@ -33,7 +33,7 @@ struct unit_module;
*/
/**
* Test specification for: test_setup
* Test specification for: test_top_setup
*
* Description: Setup prerequisites for tests.
*
@@ -51,16 +51,16 @@ struct unit_module;
* - UNIT_FAIL if encounters an error creating reg space
* - UNIT_SUCCESS otherwise
*/
int test_setup(struct unit_module *m, struct gk20a *g, void *args);
int test_top_setup(struct unit_module *m, struct gk20a *g, void *args);
/**
* Test specification for: test_free_reg_space
* Test specification for: test_top_free_reg_space
*
* Description: Free resources from test_setup()
* Description: Free resources from test_top_setup()
*
* Test Type: Other (setup)
* Test Type: Other (cleanup)
*
* Input: test_setup() has been executed.
* Input: test_top_setup() has been executed.
*
* Steps:
* - Free up NV_TOP register space.
@@ -68,16 +68,16 @@ 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_top_free_reg_space(struct unit_module *m, struct gk20a *g, void *args);
/**
* Test specification for: test_device_info_parse_enum
*
* Description: Verify the top.device_info_parse_enum HAL.
*
* Test Type: Feature Based
* Test Type: Feature, Error injection
*
* Input: None
* Input: test_top_setup() has been executed.
*
* Steps:
* - Case 1: table entry to be parsed does not hit any error case
@@ -115,9 +115,9 @@ int test_device_info_parse_enum(struct unit_module *m, struct gk20a *g,
*
* Description: Verify the top.get_max_gpc_count HAL.
*
* Test Type: Feature Based
* Test Type: Feature
*
* Input: None
* Input: test_top_setup() has been executed.
*
* Steps:
* - Initialize bits corresponding to max_gpc_count (Bits 4:0) in
@@ -139,9 +139,9 @@ int test_get_max_gpc_count(struct unit_module *m, struct gk20a *g,
*
* Description: Verify the top.is_engine_gr HAL.
*
* Test Type: Feature Based
* Test Type: Feature
*
* Input: None
* Input: test_top_setup() has been executed.
*
* Steps:
* - Call HAL with input equal to graphics enum = 0.
@@ -161,9 +161,9 @@ int test_is_engine_gr(struct unit_module *m, struct gk20a *g, void *args);
*
* Description: Verify the top.get_max_tpc_per_gpc_count HAL.
*
* Test Type: Feature Based
* Test Type: Feature
*
* Input: None
* Input: test_top_setup() has been executed.
*
* Steps:
* - Initialize bits corresponding to max_tpc_per_gpc_count (Bits 4:0) in
@@ -185,9 +185,9 @@ int test_get_max_tpc_per_gpc_count(struct unit_module *m, struct gk20a *g,
*
* Description: Verify the top.get_max_fbps_count HAL.
*
* Test Type: Feature Based
* Test Type: Feature
*
* Input: None
* Input: test_top_setup() has been executed.
*
* Steps:
* - Initialize bits corresponding to max_fbps_count (Bits 4:0) in
@@ -209,9 +209,9 @@ int test_get_max_fbps_count(struct unit_module *m, struct gk20a *g,
*
* Description: Verify the top.get_max_ltc_per_fbp HAL.
*
* Test Type: Feature Based
* Test Type: Feature
*
* Input: None
* Input: test_top_setup() has been executed.
*
* Steps:
* - Initialize bits corresponding to max_ltc_per_fbp (Bits 4:0) in
@@ -233,9 +233,9 @@ int test_get_max_ltc_per_fbp(struct unit_module *m, struct gk20a *g,
*
* Description: Verify the top.get_max_lts_per_ltc HAL.
*
* Test Type: Feature Based
* Test Type: Feature
*
* Input: None
* Input: test_top_setup() has been executed.
*
* Steps:
* - Initialize bits corresponding to max_lts_per_ltc (Bits 4:0) in
@@ -257,9 +257,9 @@ int test_get_max_lts_per_ltc(struct unit_module *m, struct gk20a *g,
*
* Description: Verify the top.get_num_ltcs HAL.
*
* Test Type: Feature Based
* Test Type: Feature
*
* Input: None
* Input: test_top_setup() has been executed.
*
* Steps:
* - Initialize bits corresponding to num_ltcs (Bits 4:0) in
@@ -280,9 +280,9 @@ int test_get_num_ltcs(struct unit_module *m, struct gk20a *g, void *args);
*
* Description: Verify the top.device_info_parse_data HAL.
*
* Test Type: Feature Based
* Test Type: Feature, Error injection
*
* Input: None
* Input: test_top_setup() has been executed.
*
* Steps:
* - Case 1: table entry to be parsed does not hit any error case
@@ -323,12 +323,12 @@ int test_device_info_parse_data(struct unit_module *m, struct gk20a *g,
*
* Description: Verify top.get_num_engine_type_entries HAL.
*
* Test Type: Feature Based
* Test Type: Feature
*
* Input: test_setup() has been executed.
* Input: test_top_setup() has been executed.
*
* Steps:
* - The device_info table is setup during test_setup().
* - The device_info table is setup during test_top_setup().
* - The device_info table is initialized to have 2 copy engine entries.
* - Call get_num_engine_type_entries HAL to parse number of copy engine
* related entries in the device_info table.
@@ -346,12 +346,12 @@ int test_get_num_engine_type_entries(struct unit_module *m, struct gk20a *g,
*
* Description: Verify top.get_device_info HAL.
*
* Test Type: Feature Based
* Test Type: Feature
*
* Input: test_setup() has been executed.
* Input: test_top_setup() has been executed.
*
* Steps:
* - The device_info table is setup during test_setup().
* - The device_info table is setup during test_top_setup().
* - The device_info table is initialized to have one copy engine entry.
* - Call get_device_info HAL to parse copy engine related data.
* - Here, we just make sure the call returns success; we do not check the
@@ -373,9 +373,9 @@ int test_get_device_info(struct unit_module *m, struct gk20a *g, void *args);
*
* Description: Verify the top.is_engine_ce HAL.
*
* Test Type: Feature Based
* Test Type: Feature
*
* Input: None
* Input: test_top_setup() has been executed.
*
* Steps:
* - Call HAL with input equal to copy engine enum = 0.
@@ -395,9 +395,9 @@ int test_is_engine_ce(struct unit_module *m, struct gk20a *g, void *args);
*
* Description: Verify the top.get_num_lce HAL.
*
* Test Type: Feature Based
* Test Type: Feature
*
* Input: None
* Input: test_top_setup() has been executed.
*
* Steps:
* - Initialize bits corresponding to num_lce (Bits 4:0) in