From 8803c33f2768183a3ec4ef53f7aeeb705e896ad4 Mon Sep 17 00:00:00 2001 From: srajum Date: Tue, 20 Oct 2020 12:30:08 +0530 Subject: [PATCH] gpu: nvgpu: compiling acr unit tests only for QNX - Running following tests only for QNX since these are failing with new gpu firmware files on L4T nvgpu-acr.test_acr_prepare_ucode_blob(acr_prepare_ucode_blob) nvgpu-acr.test_acr_is_lsf_lazy_bootstrap(acr_is_lsf_lazy_bootstrap) nvgpu-acr.test_acr_construct_execute(acr_construct_execute) nvgpu-acr.test_acr_bootstrap_hs_acr(acr_bootstrap_hs_acr) Bug 3093555 Change-Id: I9eef07ee4454e387e0fcbd8ef6dba7898e54a180 Signed-off-by: srajum Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2430381 (cherry picked from commit 2701988bb86e906a13d0999644d96d1fb4a5e73c) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2433727 Reviewed-by: automaticguardword Reviewed-by: Deepak Nibade Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions --- userspace/unit.sh | 2 +- userspace/units/acr/nvgpu-acr.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/userspace/unit.sh b/userspace/unit.sh index 813c56974..dfb197bfa 100755 --- a/userspace/unit.sh +++ b/userspace/unit.sh @@ -87,7 +87,7 @@ else LD_LIBRARY_PATH="build:build/units" # On host, must run single-threaded to avoid high VAs - NVGPU_UNIT="./build/nvgpu_unit --num-threads 1 -r required_tests.ini" + NVGPU_UNIT="./build/nvgpu_unit --num-threads 1" fi export LD_LIBRARY_PATH diff --git a/userspace/units/acr/nvgpu-acr.c b/userspace/units/acr/nvgpu-acr.c index a94afef80..7045ae02a 100644 --- a/userspace/units/acr/nvgpu-acr.c +++ b/userspace/units/acr/nvgpu-acr.c @@ -992,6 +992,7 @@ static int free_falcon_test_env(struct unit_module *m, struct gk20a *g, struct unit_module_test nvgpu_acr_tests[] = { UNIT_TEST(acr_init, test_acr_init, NULL, 0), +#if defined(__QNX__) UNIT_TEST(acr_prepare_ucode_blob, test_acr_prepare_ucode_blob, NULL, 0), UNIT_TEST(acr_is_lsf_lazy_bootstrap, test_acr_is_lsf_lazy_bootstrap, NULL, 0), @@ -1000,6 +1001,7 @@ struct unit_module_test nvgpu_acr_tests[] = { UNIT_TEST(acr_bootstrap_hs_acr, test_acr_bootstrap_hs_acr, NULL, 0), +#endif UNIT_TEST(acr_free_falcon_test_env, free_falcon_test_env, NULL, 0), };