gpu: nvgpu: unit: enable engine tests on target

Add the following tests to target makefile:
- engine
- engine/gm20b
- engine/gp10b
- engine/gv100
- engine/gv11b

Fix build issues for unit tests on QNX safety.
Update export files to fix link issues.
Update list of required tests in JSON file.

Jira NVGPU-3695

Change-Id: I373c6c8575ed4cbf6c5597502f2ca6ec2f078ca4
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2253506
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Thomas Fleury
2019-12-02 09:06:15 -05:00
committed by Alex Waterman
parent e211535142
commit 2846c26c1e
4 changed files with 134 additions and 3 deletions

View File

@@ -95,8 +95,8 @@ int test_engine_setup_sw(struct unit_module *m,
{
struct gpu_ops gops = g->ops;
struct nvgpu_fifo *f = &g->fifo;
struct nvgpu_posix_fault_inj *kmem_fi;
u32 branches;
struct nvgpu_posix_fault_inj *kmem_fi = NULL;
u32 branches = 0;
int ret = UNIT_FAIL;
int err;
u32 fail = F_ENGINE_SETUP_SW_ENGINE_INFO_ENOMEM |
@@ -312,7 +312,7 @@ int test_engine_get_active_eng_info(struct unit_module *m,
int ret = UNIT_FAIL;
u32 engine_id;
struct nvgpu_engine_info *info;
u32 eng_mask;
u32 eng_mask = 0;
struct nvgpu_fifo *f = &g->fifo;
for (engine_id = 0; engine_id < f->max_engines; engine_id++) {