gpu: nvgpu: unit: init: cleanup quiesce

The init unit test starts the quiesce feature during testing. This
includes starting the quiesce thread. The thread should be stopped when
the init unit tests complete, so call nvgpu_sw_quiesce_remove_support()
when complete.

Bug 2732985

Change-Id: I701e1dd1ce753781fa81327e3cdc7e2881a33d00
Signed-off-by: Philip Elcan <pelcan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2224307
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Philip Elcan
2019-10-23 11:25:00 -04:00
committed by Alex Waterman
parent c0a7556cb3
commit c6affb85ba
2 changed files with 4 additions and 0 deletions

View File

@@ -384,6 +384,7 @@ nvgpu_spinlock_acquire
nvgpu_spinlock_init nvgpu_spinlock_init
nvgpu_spinlock_release nvgpu_spinlock_release
nvgpu_sw_quiesce nvgpu_sw_quiesce
nvgpu_sw_quiesce_remove_support
nvgpu_thread_create nvgpu_thread_create
nvgpu_thread_create_priority nvgpu_thread_create_priority
nvgpu_thread_is_running nvgpu_thread_is_running

View File

@@ -159,6 +159,9 @@ int test_free_env(struct unit_module *m,
nvgpu_posix_io_delete_reg_space(g, mc_boot_0_r()); nvgpu_posix_io_delete_reg_space(g, mc_boot_0_r());
nvgpu_posix_io_delete_reg_space(g, GP10B_FUSE_REG_BASE); nvgpu_posix_io_delete_reg_space(g, GP10B_FUSE_REG_BASE);
/* Clean up quiesce thread */
nvgpu_sw_quiesce_remove_support(g);
return UNIT_SUCCESS; return UNIT_SUCCESS;
} }