summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r--drivers/gpu/nvgpu/vgpu/fecs_trace_vgpu.c21
-rw-r--r--drivers/gpu/nvgpu/vgpu/fecs_trace_vgpu.h20
-rw-r--r--drivers/gpu/nvgpu/vgpu/vgpu.c2
3 files changed, 43 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/fecs_trace_vgpu.c b/drivers/gpu/nvgpu/vgpu/fecs_trace_vgpu.c
new file mode 100644
index 00000000..cb955811
--- /dev/null
+++ b/drivers/gpu/nvgpu/vgpu/fecs_trace_vgpu.c
@@ -0,0 +1,21 @@
1/*
2 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 */
13
14#include <linux/string.h>
15#include "gk20a/gk20a.h"
16#include "fecs_trace_vgpu.h"
17
18void vgpu_init_fecs_trace_ops(struct gpu_ops *ops)
19{
20 memset(&ops->fecs_trace, 0, sizeof(ops->fecs_trace));
21}
diff --git a/drivers/gpu/nvgpu/vgpu/fecs_trace_vgpu.h b/drivers/gpu/nvgpu/vgpu/fecs_trace_vgpu.h
new file mode 100644
index 00000000..1aace1fe
--- /dev/null
+++ b/drivers/gpu/nvgpu/vgpu/fecs_trace_vgpu.h
@@ -0,0 +1,20 @@
1/*
2 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 */
13
14#ifndef __FECS_TRACE_VGPU_H
15#define __FECS_TRACE_VGPU_H
16
17struct gpu_ops;
18void vgpu_init_fecs_trace_ops(struct gpu_ops *ops);
19
20#endif /* __FECS_TRACE_VGPU_H */
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c
index 4cc61cb1..57f510ca 100644
--- a/drivers/gpu/nvgpu/vgpu/vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/vgpu.c
@@ -18,6 +18,7 @@
18#include <linux/dma-mapping.h> 18#include <linux/dma-mapping.h>
19#include <linux/pm_runtime.h> 19#include <linux/pm_runtime.h>
20#include "vgpu/vgpu.h" 20#include "vgpu/vgpu.h"
21#include "vgpu/fecs_trace_vgpu.h"
21#include "gk20a/debug_gk20a.h" 22#include "gk20a/debug_gk20a.h"
22#include "gk20a/hal_gk20a.h" 23#include "gk20a/hal_gk20a.h"
23#include "gk20a/hw_mc_gk20a.h" 24#include "gk20a/hw_mc_gk20a.h"
@@ -259,6 +260,7 @@ void vgpu_init_hal_common(struct gk20a *g)
259 vgpu_init_ltc_ops(gops); 260 vgpu_init_ltc_ops(gops);
260 vgpu_init_mm_ops(gops); 261 vgpu_init_mm_ops(gops);
261 vgpu_init_debug_ops(gops); 262 vgpu_init_debug_ops(gops);
263 vgpu_init_fecs_trace_ops(gops);
262} 264}
263 265
264static int vgpu_init_hal(struct gk20a *g) 266static int vgpu_init_hal(struct gk20a *g)