mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
Rename gv11b/fecs_trace_gv11b.* files to common/gr/fecs_trace/fecs_trace_gv11b.* Also move HAL API gk20a_fecs_trace_get_buffer_full_mailbox_val() to gr/fecs_trace unit and rename it as gm20b_fecs_trace_get_buffer_full_mailbox_val() Protect gm20b/gv11b HAL code under CONFIG_GK20A_CTXSW_TRACE Remove tu104/fecs_trace_tu104.* since tu104 will re-use gv11b HAL Fix g->ops.fecs_trace.get_buffer_full_mailbox_val() for vgpu/gv11b and use gv11b HAL Jira NVGPU-1880 Change-Id: If78480e36be4e5f0fd659019518f233d8805486d Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2029259 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
37 lines
1.5 KiB
C
37 lines
1.5 KiB
C
/*
|
|
* Copyright (c) 2016-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"),
|
|
* to deal in the Software without restriction, including without limitation
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
* DEALINGS IN THE SOFTWARE.
|
|
*/
|
|
|
|
#ifndef NVGPU_GK20A_FECS_TRACE_GK20A_H
|
|
#define NVGPU_GK20A_FECS_TRACE_GK20A_H
|
|
|
|
struct gk20a;
|
|
struct channel_gk20a;
|
|
struct nvgpu_gpu_ctxsw_trace_filter;
|
|
struct nvgpu_gr_ctx;
|
|
|
|
int gk20a_fecs_trace_bind_channel(struct gk20a *g,
|
|
struct channel_gk20a *ch, u32 vmid,
|
|
struct nvgpu_gr_ctx *gr_ctx);
|
|
int gk20a_fecs_trace_unbind_channel(struct gk20a *g, struct channel_gk20a *ch);
|
|
|
|
#endif /* NVGPU_GK20A_FECS_TRACE_GK20A_H */
|