nvgpu: unit: rc

This patch adds unit tests coverage for rc unit for safety-build.
This patch achieves 100% branch coverage.

Following tests are added

test_rc_init
test_rc_fifo_recover
test_rc_ctxsw_timeout
test_rc_runlist_update
test_rc_preempt_timeout
test_rc_gr_fault
test_rc_sched_error_bad_tsg
test_rc_tsg_and_related_engines
test_rc_mmu_fault
test_rc_pbdma_fault
test_rc_deinit

Jira NVGPU-4385

Change-Id: I9d3e42272247eec9aa55bd520b32ef0b268e6e5d

Change-Id: I9d3e42272247eec9aa55bd520b32ef0b268e6e5d
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2279730
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Debarshi Dutta
2020-01-16 10:25:30 +05:30
committed by Alex Waterman
parent cffefda3e4
commit 0c47ea2b50
9 changed files with 881 additions and 0 deletions

View File

@@ -79,6 +79,7 @@
* - @ref SWUTS-intr
* - @ref SWUTS-interface-atomic
* - @ref SWUTS-ltc
* - @ref SWUTS-nvgpu-rc
* - @ref SWUTS-mc
* - @ref SWUTS-mm-allocators-bitmap-allocator
* - @ref SWUTS-mm-allocators-buddy-allocator