mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: add support flag for gsp stress test
Add support flag for GSP stress test. JIRA NVGPU-9347 Change-Id: I6b93e085b4e25798f1227297fd1baba8c1380604 Signed-off-by: Rajesh Devaraj <rdevaraj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2833485 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Ramesh Mylavarapu <rmylavarapu@nvidia.com> Reviewed-by: Seema Khowala <seemaj@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
594c8da356
commit
2d3745810b
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* GK20A Graphics
|
||||
*
|
||||
* Copyright (c) 2011-2022, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2011-2023, 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"),
|
||||
@@ -1020,7 +1020,7 @@ int nvgpu_finalize_poweron(struct gk20a *g)
|
||||
#ifndef CONFIG_NVGPU_DGPU
|
||||
#ifdef CONFIG_NVGPU_GSP_STRESS_TEST
|
||||
NVGPU_INIT_TABLE_ENTRY(&nvgpu_gsp_stress_test_sw_init,
|
||||
NO_FLAG),
|
||||
NVGPU_SUPPORT_GSP_STEST),
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* GA10B Tegra HAL interface
|
||||
*
|
||||
* Copyright (c) 2020-2022, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2020-2023, 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"),
|
||||
@@ -1963,6 +1963,7 @@ int ga10b_init_hal(struct gk20a *g)
|
||||
* enable gsp scheduler
|
||||
*/
|
||||
nvgpu_set_enabled(g, NVGPU_SUPPORT_GSP_SCHED, true);
|
||||
nvgpu_set_enabled(g, NVGPU_SUPPORT_GSP_STEST, true);
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017-2022, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2017-2023, 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"),
|
||||
@@ -233,6 +233,8 @@ struct gk20a;
|
||||
DEFINE_FLAG(NVGPU_SCHED_EXIT_WAIT_FOR_ERRBAR_SUPPORTED, \
|
||||
"Implicit ERRBAR support"), \
|
||||
DEFINE_FLAG(NVGPU_SUPPORT_GSP_SCHED, "To enable gsp sheduler"), \
|
||||
DEFINE_FLAG(NVGPU_SUPPORT_GSP_STEST, \
|
||||
"Support GSP stress test"), \
|
||||
DEFINE_FLAG(NVGPU_SUPPORT_MULTI_PROCESS_TSG_SHARING, \
|
||||
"Multi process TSG sharing support"), \
|
||||
DEFINE_FLAG(NVGPU_MAX_ENABLED_BITS, "Marks max number of flags"),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* GK20A Graphics
|
||||
*
|
||||
* Copyright (c) 2011-2022, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2011-2023, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
@@ -1094,7 +1094,9 @@ void gk20a_remove_support(struct gk20a *g)
|
||||
#endif
|
||||
#ifndef CONFIG_NVGPU_DGPU
|
||||
#ifdef CONFIG_NVGPU_GSP_STRESS_TEST
|
||||
if (nvgpu_is_enabled(g, NVGPU_SUPPORT_GSP_STEST)) {
|
||||
nvgpu_gsp_test_sw_deinit(g);
|
||||
endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user