mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
On production boards, there is requirement to disable GPU profiler and debugger support. Add DT property 'support-gpu-tools' which can be modified to enable/disable debugger/profiler support. The default behavior is to enable the debugging features and set 'support-gpu-tools' to 1. This property is chosen to be u32 value to be in sync with GPU vserser property by same name. The debugger/profiler support is disabled by skipping the creation of below nodes under /dev/nvgpu/: 1. ctxsw 2. dbg 3. prof 4. prof-dev 5. prof-ctx Bug 200773450 JIRA NVGPU-7109 Change-Id: I86d72d17fa7f5492e117a4c1cd1144623e9b6132 Signed-off-by: Tejal Kudav <tkudav@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2592012 Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
29 lines
924 B
C
29 lines
924 B
C
/*
|
|
* Copyright (c) 2016-2021, 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,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef NVGPU_LINUX_DRIVER_COMMON
|
|
#define NVGPU_LINUX_DRIVER_COMMON
|
|
|
|
struct gk20a;
|
|
|
|
int nvgpu_probe(struct gk20a *g,
|
|
const char *debugfs_symlink);
|
|
|
|
void nvgpu_init_gk20a(struct gk20a *g);
|
|
void nvgpu_read_support_gpu_tools(struct gk20a *g);
|
|
|
|
#endif
|