gpu: nvgpu: unit: add tests for common.gr.setup

Add tests to cover common.gr.setup subunit. This includes
g->ops.gr.setup.alloc_obj_ctx
g->ops.gr.setup.set_preemption_mode
g->ops.gr.setup.free_gr_ctx and
g->ops.gr.setup.free_subctx.

Update register space to include the registers used by
context creation.
Update SWUT files for doxygen.

Jira NVGPU-3968

Change-Id: I3ab539d18584231142a1945d621d015b7ca772de
Signed-off-by: vinodg <vinodg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2244825
GVS: Gerrit_Virtual_Submit
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
vinodg
2019-11-21 15:57:01 -08:00
committed by Alex Waterman
parent d6a20e31b3
commit df68da0e66
13 changed files with 528 additions and 6 deletions

View File

@@ -1773,6 +1773,31 @@
"test_level": 0,
"unit": "nvgpu_gr_intr"
},
{
"test": "gr_setup_setup",
"test_level": 0,
"unit": "nvgpu_gr_setup"
},
{
"test": "gr_setup_alloc_obj_ctx",
"test_level": 0,
"unit": "nvgpu_gr_setup"
},
{
"test": "gr_setup_set_preemption_mode",
"test_level": 0,
"unit": "nvgpu_gr_setup"
},
{
"test": "gr_setup_free_obj_ctx",
"test_level": 0,
"unit": "nvgpu_gr_setup"
},
{
"test": "gr_setup_cleanup",
"test_level": 0,
"unit": "nvgpu_gr_setup"
},
{
"test": "ltc_init_support",
"test_level": 0,