mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: compile out sim changes from safety build
As sim is non-safe unit compile it out. Also removed FMODEL related nvgpu changes and unit tests from the safety build. JIRA NVGPU-3527 Change-Id: I22c83e195a09f9150fb6f5a3afff91df2ea075b9 Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2139455 Reviewed-by: Deepak Nibade <dnibade@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Raghuram Kothakota <rkothakota@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
ad92d2d8cf
commit
5d37a9e489
@@ -302,6 +302,7 @@ int test_fuse_gm20b_basic_fuses(struct unit_module *m,
|
||||
return ret;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NVGPU_SIM
|
||||
/* Verify when FMODEL is enabled, fuse module reports non-secure */
|
||||
int test_fuse_gm20b_check_fmodel(struct unit_module *m,
|
||||
struct gk20a *g, void *__args)
|
||||
@@ -331,3 +332,4 @@ int test_fuse_gm20b_check_fmodel(struct unit_module *m,
|
||||
nvgpu_set_enabled(g, NVGPU_IS_FMODEL, false);
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -39,7 +39,8 @@ int test_fuse_gm20b_check_non_sec(struct unit_module *m,
|
||||
struct gk20a *g, void *__args);
|
||||
int test_fuse_gm20b_basic_fuses(struct unit_module *m,
|
||||
struct gk20a *g, void *__args);
|
||||
#ifdef CONFIG_NVGPU_SIM
|
||||
int test_fuse_gm20b_check_fmodel(struct unit_module *m,
|
||||
struct gk20a *g, void *__args);
|
||||
|
||||
#endif
|
||||
#endif /* __UNIT_NVGPU_FUSE_GM20B_H__ */
|
||||
|
||||
@@ -235,6 +235,7 @@ int test_fuse_gp10b_feature_override_disable(struct unit_module *m,
|
||||
return ret;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NVGPU_SIM
|
||||
/* Verify when FMODEL is enabled, fuse module reports non-secure */
|
||||
int test_fuse_gp10b_check_fmodel(struct unit_module *m,
|
||||
struct gk20a *g, void *__args)
|
||||
@@ -264,3 +265,4 @@ int test_fuse_gp10b_check_fmodel(struct unit_module *m,
|
||||
nvgpu_set_enabled(g, NVGPU_IS_FMODEL, false);
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -37,7 +37,8 @@ int test_fuse_gp10b_ecc(struct unit_module *m,
|
||||
struct gk20a *g, void *__args);
|
||||
int test_fuse_gp10b_feature_override_disable(struct unit_module *m,
|
||||
struct gk20a *g, void *__args);
|
||||
#ifdef CONFIG_NVGPU_SIM
|
||||
int test_fuse_gp10b_check_fmodel(struct unit_module *m,
|
||||
struct gk20a *g, void *__args);
|
||||
|
||||
#endif
|
||||
#endif /* __UNIT_NVGPU_FUSE_GP10B_H__ */
|
||||
|
||||
@@ -158,7 +158,9 @@ struct unit_module_test fuse_tests[] = {
|
||||
UNIT_TEST(fuse_gp10b_ecc, test_fuse_gp10b_ecc, NULL, 0),
|
||||
UNIT_TEST(fuse_gp10b_feature_override_disable,
|
||||
test_fuse_gp10b_feature_override_disable, NULL, 0),
|
||||
#ifdef CONFIG_NVGPU_SIM
|
||||
UNIT_TEST(fuse_gp10b_check_fmodel, test_fuse_gp10b_check_fmodel, NULL, 0),
|
||||
#endif
|
||||
UNIT_TEST(fuse_gp10b_cleanup, test_fuse_device_common_cleanup,
|
||||
&gp10b_init_args, 0),
|
||||
|
||||
@@ -178,7 +180,9 @@ struct unit_module_test fuse_tests[] = {
|
||||
NULL,
|
||||
0),
|
||||
UNIT_TEST(fuse_gm20b_basic_fuses, test_fuse_gm20b_basic_fuses, NULL, 0),
|
||||
#ifdef CONFIG_NVGPU_SIM
|
||||
UNIT_TEST(fuse_gm20b_check_fmodel, test_fuse_gm20b_check_fmodel, NULL, 0),
|
||||
#endif
|
||||
UNIT_TEST(fuse_gm20b_cleanup, test_fuse_device_common_cleanup,
|
||||
&gm20b_init_args, 0),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user