mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: disable fecs trace support for safety builds
Compile all files with fecs trace support only if flag NVGPU_FECS_TRACE_SUPPORT is set remove CONFIG_GK20A_CTXSW_TRACE checks from within the files add POSIX file for fecs trace support for compilation with make command Jira NVGPU-3414 Change-Id: I205e3494ce94138ab6c6fccf7fbcefc41f953c77 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2120276 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Thomas Fleury <tfleury@nvidia.com> GVS: Gerrit_Virtual_Submit 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
f39a5c4ead
commit
dfdd05a3d6
72
drivers/gpu/nvgpu/os/posix/fecs_trace_posix.c
Normal file
72
drivers/gpu/nvgpu/os/posix/fecs_trace_posix.c
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright (c) 2019, 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/>.
|
||||
*/
|
||||
|
||||
#include <nvgpu/types.h>
|
||||
#include <nvgpu/gr/fecs_trace.h>
|
||||
|
||||
int vgpu_alloc_user_buffer(struct gk20a *g, void **buf, size_t *size);
|
||||
void vgpu_fecs_trace_data_update(struct gk20a *g);
|
||||
void vgpu_get_mmap_user_buffer_info(struct gk20a *g,
|
||||
void **mmapaddr, size_t *mmapsize);
|
||||
|
||||
int nvgpu_gr_fecs_trace_ring_alloc(struct gk20a *g,
|
||||
void **buf, size_t *size)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
int nvgpu_gr_fecs_trace_ring_free(struct gk20a *g)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
void nvgpu_gr_fecs_trace_get_mmap_buffer_info(struct gk20a *g,
|
||||
void **mmapaddr, size_t *mmapsize)
|
||||
{
|
||||
}
|
||||
|
||||
int nvgpu_gr_fecs_trace_write_entry(struct gk20a *g,
|
||||
struct nvgpu_gpu_ctxsw_trace_entry *entry)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
void nvgpu_gr_fecs_trace_wake_up(struct gk20a *g, int vmid)
|
||||
{
|
||||
}
|
||||
|
||||
void nvgpu_gr_fecs_trace_add_tsg_reset(struct gk20a *g, struct nvgpu_tsg *tsg)
|
||||
{
|
||||
}
|
||||
|
||||
u8 nvgpu_gpu_ctxsw_tags_to_common_tags(u8 tags)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int vgpu_alloc_user_buffer(struct gk20a *g, void **buf, size_t *size)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
void vgpu_fecs_trace_data_update(struct gk20a *g)
|
||||
{
|
||||
}
|
||||
|
||||
void vgpu_get_mmap_user_buffer_info(struct gk20a *g,
|
||||
void **mmapaddr, size_t *mmapsize)
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user