gpu: nvgpu: unit: enable pbdma tests on target

Add missing pbdma, runlist and channel files to tmake
makefile and fix compilation issues.
Update exports to fix link issues.
Update required tests in JSON file.

Jira NVGPU-3490

Change-Id: Ib5f7dd15ebbd81c5f5f304f8c22ea8299c469a93
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2247248
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Thomas Fleury
2019-11-25 13:14:19 -05:00
committed by Alex Waterman
parent b5acb44f2f
commit 0ba37ecf4d
6 changed files with 200 additions and 4 deletions

View File

@@ -759,6 +759,81 @@
"test_level": 0,
"unit": "nvgpu_channel"
},
{
"test": "disable",
"test_level": 0,
"unit": "nvgpu_channel_gk20a"
},
{
"test": "enable",
"test_level": 0,
"unit": "nvgpu_channel_gk20a"
},
{
"test": "init_support",
"test_level": 0,
"unit": "nvgpu_channel_gk20a"
},
{
"test": "read_state",
"test_level": 0,
"unit": "nvgpu_channel_gk20a"
},
{
"test": "remove_support",
"test_level": 0,
"unit": "nvgpu_channel_gk20a"
},
{
"test": "bind",
"test_level": 0,
"unit": "nvgpu_channel_gm20b"
},
{
"test": "init_support",
"test_level": 0,
"unit": "nvgpu_channel_gm20b"
},
{
"test": "remove_support",
"test_level": 0,
"unit": "nvgpu_channel_gm20b"
},
{
"test": "count",
"test_level": 0,
"unit": "nvgpu_channel_gv11b"
},
{
"test": "debug_dump",
"test_level": 0,
"unit": "nvgpu_channel_gv11b"
},
{
"test": "init_support",
"test_level": 0,
"unit": "nvgpu_channel_gv11b"
},
{
"test": "read_state",
"test_level": 0,
"unit": "nvgpu_channel_gv11b"
},
{
"test": "remove_support",
"test_level": 0,
"unit": "nvgpu_channel_gv11b"
},
{
"test": "reset_faulted",
"test_level": 0,
"unit": "nvgpu_channel_gv11b"
},
{
"test": "unbind",
"test_level": 0,
"unit": "nvgpu_channel_gv11b"
},
{
"test": "mem_create_from_phys",
"test_level": 0,
@@ -794,6 +869,31 @@
"test_level": 0,
"unit": "nvgpu_mem"
},
{
"test": "init_support",
"test_level": 0,
"unit": "nvgpu_pbdma"
},
{
"test": "pbdma_find_for_runlist",
"test_level": 0,
"unit": "nvgpu_pbdma"
},
{
"test": "pbdma_status",
"test_level": 0,
"unit": "nvgpu_pbdma"
},
{
"test": "remove_support",
"test_level": 0,
"unit": "nvgpu_pbdma"
},
{
"test": "setup_sw",
"test_level": 0,
"unit": "nvgpu_pbdma"
},
{
"test": "flat",
"test_level": 0,
@@ -909,6 +1009,61 @@
"test_level": 0,
"unit": "nvgpu_runlist"
},
{
"test": "hw_submit",
"test_level": 0,
"unit": "nvgpu_runlist_gk20a"
},
{
"test": "init_support",
"test_level": 0,
"unit": "nvgpu_runlist_gk20a"
},
{
"test": "length_max",
"test_level": 0,
"unit": "nvgpu_runlist_gk20a"
},
{
"test": "remove_support",
"test_level": 0,
"unit": "nvgpu_runlist_gk20a"
},
{
"test": "wait_pending",
"test_level": 0,
"unit": "nvgpu_runlist_gk20a"
},
{
"test": "write_state",
"test_level": 0,
"unit": "nvgpu_runlist_gk20a"
},
{
"test": "entry_size",
"test_level": 0,
"unit": "nvgpu_runlist_gv11b"
},
{
"test": "get_ch_entry",
"test_level": 0,
"unit": "nvgpu_runlist_gv11b"
},
{
"test": "get_tsg_entry",
"test_level": 0,
"unit": "nvgpu_runlist_gv11b"
},
{
"test": "init_support",
"test_level": 0,
"unit": "nvgpu_runlist_gv11b"
},
{
"test": "remove_support",
"test_level": 0,
"unit": "nvgpu_runlist_gv11b"
},
{
"test": "sgt_alignment_non_iommu",
"test_level": 0,
@@ -989,6 +1144,26 @@
"test_level": 0,
"unit": "nvgpu_tsg"
},
{
"test": "gv11b_tsg_init_eng_method_buffers",
"test_level": 0,
"unit": "nvgpu_tsg_gv11b"
},
{
"test": "gv11b_tsg_unbind_channel_check_eng_faulted",
"test_level": 0,
"unit": "nvgpu_tsg_gv11b"
},
{
"test": "init_support",
"test_level": 0,
"unit": "nvgpu_tsg_gv11b"
},
{
"test": "remove_support",
"test_level": 0,
"unit": "nvgpu_tsg_gv11b"
},
{
"test": "gmmu_clean",
"test_level": 0,

View File

@@ -64,8 +64,6 @@ int test_gm20b_channel_bind(struct unit_module *m,
struct nvgpu_channel *ch;
int ret = UNIT_FAIL;
assert(g->ops.channel.bind == gm20b_channel_bind);
ch = nvgpu_channel_open_new(g, runlist_id,
privileged, getpid(), getpid());
assert(ch);

View File

@@ -24,4 +24,5 @@ test_fifo_init_support
test_fifo_remove_support
test_fifo_subtest_pruned
test_fifo_flags_str
test_fifo_setup_gv11b_reg_space

View File

@@ -102,13 +102,13 @@ int test_pbdma_setup_sw(struct unit_module *m,
u32 prune = fail;
int err;
kmem_fi = nvgpu_kmem_get_fault_injection();
err = test_fifo_setup_gv11b_reg_space(m, g);
assert(err == 0);
gv11b_init_hal(g);
kmem_fi = nvgpu_kmem_get_fault_injection();
for (branches = 0U; branches < F_PBDMA_SETUP_SW_LAST; branches++) {
if (pruned(branches, prune)) {