summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/fecs_trace_gv11b.c
diff options
context:
space:
mode:
authorSunny He <suhe@nvidia.com>2017-07-26 14:14:21 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-07-27 19:34:44 -0400
commit8aa0370005a81a7e26ae7c86585626d3261aa4d3 (patch)
tree635472c476daf9987ff5ec61bbd41a794dc96b21 /drivers/gpu/nvgpu/gv11b/fecs_trace_gv11b.c
parentafa29933e45b2c3054db67065a0a68606bbc1f52 (diff)
gpu: nvgpu: gv11b: Reorg fecs_trace HAL init
Reorganize HAL initialization to remove inheritance and construct the gpu_ops struct at compile time. This patch only covers the fecs_trace sub-module of the gpu_ops struct. Perform HAL function assignments in hal_gxxxx.c through the population of a chip-specific copy of gpu_ops. Jira NVGPU-74 Change-Id: I43932a8eac2a9f791e967a8ed736f76350889a51 Signed-off-by: Sunny He <suhe@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1527420 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/fecs_trace_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/fecs_trace_gv11b.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fecs_trace_gv11b.c b/drivers/gpu/nvgpu/gv11b/fecs_trace_gv11b.c
deleted file mode 100644
index 92357980..00000000
--- a/drivers/gpu/nvgpu/gv11b/fecs_trace_gv11b.c
+++ /dev/null
@@ -1,31 +0,0 @@
1/*
2 * GV11B GPU FECS traces
3 *
4 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 */
15
16#include "gp10b/fecs_trace_gp10b.h"
17
18#include "gv11b/fecs_trace_gv11b.h"
19
20#ifdef CONFIG_GK20A_CTXSW_TRACE
21int gv11b_init_fecs_trace_ops(struct gpu_ops *ops)
22{
23 gp10b_init_fecs_trace_ops(ops);
24 return 0;
25}
26#else
27int gv11b_init_fecs_trace_ops(struct gpu_ops *ops)
28{
29 return 0;
30}
31#endif /* CONFIG_GK20A_CTXSW_TRACE */