mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Update test types in common.bus 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: If8a6b9ec8b26c3f99bc657bce24751b0e75fabbf Signed-off-by: tkudav <tkudav@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2269046 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
@@ -117,7 +117,7 @@ static struct nvgpu_posix_io_callbacks test_reg_callbacks = {
|
||||
#define NV_PTIMER_START 0x00009000U
|
||||
#define NV_PTIMER_SIZE 0x00000FFFU
|
||||
|
||||
int test_setup(struct unit_module *m, struct gk20a *g, void *args)
|
||||
int test_bus_setup(struct unit_module *m, struct gk20a *g, void *args)
|
||||
{
|
||||
/* Init HAL */
|
||||
g->ops.bus.init_hw = gk20a_bus_init_hw;
|
||||
@@ -160,7 +160,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_bus_free_reg_space(struct unit_module *m, struct gk20a *g, void *args)
|
||||
{
|
||||
/* Free register space */
|
||||
nvgpu_posix_io_delete_reg_space(g, NV_PBUS_START);
|
||||
@@ -312,11 +312,11 @@ int test_isr(struct unit_module *m, struct gk20a *g, void *args)
|
||||
}
|
||||
|
||||
struct unit_module_test bus_tests[] = {
|
||||
UNIT_TEST(bus_setup, test_setup, NULL, 0),
|
||||
UNIT_TEST(bus_init_hw, test_init_hw, NULL, 0),
|
||||
UNIT_TEST(bus_bar_bind, test_bar_bind, NULL, 0),
|
||||
UNIT_TEST(bus_isr, test_isr, NULL, 0),
|
||||
UNIT_TEST(bus_free_reg_space, test_free_reg_space, NULL, 0),
|
||||
UNIT_TEST(bus_setup, test_bus_setup, NULL, 0),
|
||||
UNIT_TEST(bus_init_hw, test_init_hw, NULL, 0),
|
||||
UNIT_TEST(bus_bar_bind, test_bar_bind, NULL, 0),
|
||||
UNIT_TEST(bus_isr, test_isr, NULL, 0),
|
||||
UNIT_TEST(bus_free_reg_space, test_bus_free_reg_space, NULL, 0),
|
||||
};
|
||||
|
||||
UNIT_MODULE(bus, bus_tests, UNIT_PRIO_NVGPU_TEST);
|
||||
|
||||
@@ -33,7 +33,7 @@ struct unit_module;
|
||||
*/
|
||||
|
||||
/**
|
||||
* Test specification for: test_setup
|
||||
* Test specification for: test_bus_setup
|
||||
*
|
||||
* Description: Setup prerequisites for tests.
|
||||
*
|
||||
@@ -50,16 +50,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_bus_setup(struct unit_module *m, struct gk20a *g, void *args);
|
||||
|
||||
/**
|
||||
* Test specification for: test_free_reg_space
|
||||
* Test specification for: test_bus_free_reg_space
|
||||
*
|
||||
* Description: Free resources from test_setup()
|
||||
* Description: Free resources from test_bus_setup()
|
||||
*
|
||||
* Test Type: Other (setup)
|
||||
* Test Type: Other (cleanup)
|
||||
*
|
||||
* Input: test_setup() has been executed.
|
||||
* Input: test_bus_setup() has been executed.
|
||||
*
|
||||
* Steps:
|
||||
* - Free up NV_PBUS, NV_PMC and NV_PTIMER 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_bus_free_reg_space(struct unit_module *m, struct gk20a *g, void *args);
|
||||
|
||||
/**
|
||||
* Test specification for: test_init_hw
|
||||
*
|
||||
* Description: Verify the bus.init_hw and bus.configure_debug_bus HAL.
|
||||
*
|
||||
* Test Type: Feature Based
|
||||
* Test Type: Feature
|
||||
*
|
||||
* Targets: gk20a_bus_init_hw, gv11b_bus_configure_debug_bus.
|
||||
*
|
||||
* Input: test_setup() has been executed.
|
||||
* Input: test_bus_setup() has been executed.
|
||||
*
|
||||
* Steps:
|
||||
* - Initialize the Debug bus related registers to non-zero value.
|
||||
@@ -99,11 +99,11 @@ int test_init_hw(struct unit_module *m, struct gk20a *g, void *args);
|
||||
*
|
||||
* Description: Verify the bus.bar1_bind and bus.bar2_bind HAL.
|
||||
*
|
||||
* Test Type: Feature Based
|
||||
* Test Type: Feature, Error injection
|
||||
*
|
||||
* Targets: gm20b_bus_bar1_bind, gp10b_bus_bar2_bind.
|
||||
*
|
||||
* Input: test_setup() has been executed.
|
||||
* Input: test_bus_setup() has been executed.
|
||||
*
|
||||
* Steps:
|
||||
* - Initialize cpu_va to a known value (say 0xCE418000U).
|
||||
@@ -134,11 +134,11 @@ int test_bar_bind(struct unit_module *m, struct gk20a *g, void *args);
|
||||
*
|
||||
* Description: Verify the bus.isr HAL.
|
||||
*
|
||||
* Test Type: Feature Based
|
||||
* Test Type: Feature, Error injection
|
||||
*
|
||||
* Targets: gk20a_bus_isr
|
||||
*
|
||||
* Input: test_setup() has been executed.
|
||||
* Input: test_bus_setup() has been executed.
|
||||
*
|
||||
* Steps:
|
||||
* - Initialize interrupt register bus_intr_0_r() to 0x2(pri_squash)
|
||||
|
||||
Reference in New Issue
Block a user