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
|
* 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
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* 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
|
#ifndef CONFIG_NVGPU_DGPU
|
||||||
#ifdef CONFIG_NVGPU_GSP_STRESS_TEST
|
#ifdef CONFIG_NVGPU_GSP_STRESS_TEST
|
||||||
NVGPU_INIT_TABLE_ENTRY(&nvgpu_gsp_stress_test_sw_init,
|
NVGPU_INIT_TABLE_ENTRY(&nvgpu_gsp_stress_test_sw_init,
|
||||||
NO_FLAG),
|
NVGPU_SUPPORT_GSP_STEST),
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* GA10B Tegra HAL interface
|
* 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
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -1963,6 +1963,7 @@ int ga10b_init_hal(struct gk20a *g)
|
|||||||
* enable gsp scheduler
|
* enable gsp scheduler
|
||||||
*/
|
*/
|
||||||
nvgpu_set_enabled(g, NVGPU_SUPPORT_GSP_SCHED, true);
|
nvgpu_set_enabled(g, NVGPU_SUPPORT_GSP_SCHED, true);
|
||||||
|
nvgpu_set_enabled(g, NVGPU_SUPPORT_GSP_STEST, true);
|
||||||
#endif
|
#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
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -221,20 +221,22 @@ struct gk20a;
|
|||||||
"Set L2 Max Ways Evict Last support"), \
|
"Set L2 Max Ways Evict Last support"), \
|
||||||
DEFINE_FLAG(NVGPU_CLK_ARB_ENABLED, "CLK_ARB support"), \
|
DEFINE_FLAG(NVGPU_CLK_ARB_ENABLED, "CLK_ARB support"), \
|
||||||
DEFINE_FLAG(NVGPU_SUPPORT_VAB_ENABLED, "VAB feature supported"), \
|
DEFINE_FLAG(NVGPU_SUPPORT_VAB_ENABLED, "VAB feature supported"), \
|
||||||
DEFINE_FLAG(NVGPU_SUPPORT_ROP_IN_GPC, "ROP is part of GPC"), \
|
DEFINE_FLAG(NVGPU_SUPPORT_ROP_IN_GPC, "ROP is part of GPC"), \
|
||||||
DEFINE_FLAG(NVGPU_SUPPORT_BUFFER_METADATA, "Buffer metadata support"), \
|
DEFINE_FLAG(NVGPU_SUPPORT_BUFFER_METADATA, "Buffer metadata support"), \
|
||||||
DEFINE_FLAG(NVGPU_SUPPORT_NVS, "Domain scheduler support"), \
|
DEFINE_FLAG(NVGPU_SUPPORT_NVS, "Domain scheduler support"), \
|
||||||
DEFINE_FLAG(NVGPU_SUPPORT_TEGRA_RAW, \
|
DEFINE_FLAG(NVGPU_SUPPORT_TEGRA_RAW, \
|
||||||
"TEGRA_RAW format support"), \
|
"TEGRA_RAW format support"), \
|
||||||
DEFINE_FLAG(NVGPU_SUPPORT_EMULATE_MODE, \
|
DEFINE_FLAG(NVGPU_SUPPORT_EMULATE_MODE, \
|
||||||
"Emulate mode support"), \
|
"Emulate mode support"), \
|
||||||
DEFINE_FLAG(NVGPU_SUPPORT_PES_FS, \
|
DEFINE_FLAG(NVGPU_SUPPORT_PES_FS, \
|
||||||
"PES Floorsweeping"), \
|
"PES Floorsweeping"), \
|
||||||
DEFINE_FLAG(NVGPU_SCHED_EXIT_WAIT_FOR_ERRBAR_SUPPORTED, \
|
DEFINE_FLAG(NVGPU_SCHED_EXIT_WAIT_FOR_ERRBAR_SUPPORTED, \
|
||||||
"Implicit ERRBAR support"), \
|
"Implicit ERRBAR support"), \
|
||||||
DEFINE_FLAG(NVGPU_SUPPORT_GSP_SCHED, "To enable gsp sheduler"), \
|
DEFINE_FLAG(NVGPU_SUPPORT_GSP_SCHED, "To enable gsp sheduler"), \
|
||||||
DEFINE_FLAG(NVGPU_SUPPORT_MULTI_PROCESS_TSG_SHARING, \
|
DEFINE_FLAG(NVGPU_SUPPORT_GSP_STEST, \
|
||||||
"Multi process TSG sharing support"), \
|
"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"),
|
DEFINE_FLAG(NVGPU_MAX_ENABLED_BITS, "Marks max number of flags"),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* GK20A Graphics
|
* 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
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
* under the terms and conditions of the GNU General Public License,
|
* under the terms and conditions of the GNU General Public License,
|
||||||
@@ -1094,7 +1094,9 @@ void gk20a_remove_support(struct gk20a *g)
|
|||||||
#endif
|
#endif
|
||||||
#ifndef CONFIG_NVGPU_DGPU
|
#ifndef CONFIG_NVGPU_DGPU
|
||||||
#ifdef CONFIG_NVGPU_GSP_STRESS_TEST
|
#ifdef CONFIG_NVGPU_GSP_STRESS_TEST
|
||||||
nvgpu_gsp_test_sw_deinit(g);
|
if (nvgpu_is_enabled(g, NVGPU_SUPPORT_GSP_STEST)) {
|
||||||
|
nvgpu_gsp_test_sw_deinit(g);
|
||||||
|
endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user