gpu: nvgpu: unit: init: add quiesce testing

Add testing of quiesce functionality to init unit test.

JIRA NVGPU-3981

Change-Id: Idc64179bc8d532bea385e705d96fb4b376d15cd9
Signed-off-by: Philip Elcan <pelcan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2247154
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Philip Elcan
2019-11-11 14:32:12 -05:00
committed by Alex Waterman
parent 234a82fc9a
commit b8c25a5a55
6 changed files with 149 additions and 0 deletions

View File

@@ -298,4 +298,25 @@ int test_poweron_branches(struct unit_module *m, struct gk20a *g, void *args);
*/
int test_poweroff(struct unit_module *m, struct gk20a *g, void *args);
/**
* Test specification for: test_quiesce
*
* Description: Test putting device in quiesce
*
* Test Type: Feature based
*
* Targets: nvgpu_sw_quiesce_init_support, nvgpu_sw_quiesce_remove_support,
* nvgpu_sw_quiesce_thread, nvgpu_sw_quiesce
*
* Input:
* - test_setup_env() must be called before.
*
* Steps:
*
* Output:
* - UNIT_FAIL if nvgpu_finalize_poweron() ever returns the unexpected value.
* - UNIT_SUCCESS otherwise
*/
int test_quiesce(struct unit_module *m, struct gk20a *g, void *args);
#endif /* UNIT_NVGPU_INIT_H */