summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu
diff options
context:
space:
mode:
authorAingara Paramakuru <aparamakuru@nvidia.com>2014-12-11 11:06:24 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-04-04 18:06:07 -0400
commit7e9b9c0b3ea832d9f372663c81e526a70fb65f92 (patch)
treea9de2e533bc486baaf520c9d7351a89d8a23ccfd /drivers/gpu/nvgpu/vgpu
parent58233492fca7de69121722b6b2e89d500fcb6761 (diff)
gpu: nvgpu: move debug dump to HAL
Move the debug dump to HAL and add a stub for vgpu. Bug 1595164 Change-Id: Ifdcdd8a8caca7a41919dad075fee1c87032f53b0 Signed-off-by: Aingara Paramakuru <aparamakuru@nvidia.com> Reviewed-on: http://git-master/r/662722 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r--drivers/gpu/nvgpu/vgpu/debug_vgpu.c25
-rw-r--r--drivers/gpu/nvgpu/vgpu/vgpu.c3
-rw-r--r--drivers/gpu/nvgpu/vgpu/vgpu.h6
3 files changed, 32 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/debug_vgpu.c b/drivers/gpu/nvgpu/vgpu/debug_vgpu.c
new file mode 100644
index 00000000..d48ab944
--- /dev/null
+++ b/drivers/gpu/nvgpu/vgpu/debug_vgpu.c
@@ -0,0 +1,25 @@
1/*
2 * Copyright (C) 2015 NVIDIA Corporation. All rights reserved.
3 *
4 * This software is licensed under the terms of the GNU General Public
5 * License version 2, as published by the Free Software Foundation, and
6 * may be copied, distributed, and modified under those terms.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 */
14
15#include "vgpu/vgpu.h"
16
17static void vgpu_debug_show_dump(struct gk20a *g, struct gk20a_debug_output *o)
18{
19 /* debug dump not supported */
20}
21
22void vgpu_init_debug_ops(struct gpu_ops *gops)
23{
24 gops->debug.show_dump = vgpu_debug_show_dump;
25}
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c
index 25dcd8bb..36d65ee8 100644
--- a/drivers/gpu/nvgpu/vgpu/vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/vgpu.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * Virtualized GPU 2 * Virtualized GPU
3 * 3 *
4 * Copyright (c) 2014 NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2014-2015 NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 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, 7 * under the terms and conditions of the GNU General Public License,
@@ -247,6 +247,7 @@ static int vgpu_init_hal(struct gk20a *g)
247 vgpu_init_gr_ops(&g->ops); 247 vgpu_init_gr_ops(&g->ops);
248 vgpu_init_ltc_ops(&g->ops); 248 vgpu_init_ltc_ops(&g->ops);
249 vgpu_init_mm_ops(&g->ops); 249 vgpu_init_mm_ops(&g->ops);
250 vgpu_init_debug_ops(&g->ops);
250 break; 251 break;
251 default: 252 default:
252 gk20a_err(&g->dev->dev, "no support for %x", ver); 253 gk20a_err(&g->dev->dev, "no support for %x", ver);
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.h b/drivers/gpu/nvgpu/vgpu/vgpu.h
index 972c2107..4677b36c 100644
--- a/drivers/gpu/nvgpu/vgpu/vgpu.h
+++ b/drivers/gpu/nvgpu/vgpu/vgpu.h
@@ -1,7 +1,7 @@
1/* 1/*
2 * Virtualized GPU Interfaces 2 * Virtualized GPU Interfaces
3 * 3 *
4 * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 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, 7 * under the terms and conditions of the GNU General Public License,
@@ -31,6 +31,7 @@ void vgpu_init_fifo_ops(struct gpu_ops *gops);
31void vgpu_init_gr_ops(struct gpu_ops *gops); 31void vgpu_init_gr_ops(struct gpu_ops *gops);
32void vgpu_init_ltc_ops(struct gpu_ops *gops); 32void vgpu_init_ltc_ops(struct gpu_ops *gops);
33void vgpu_init_mm_ops(struct gpu_ops *gops); 33void vgpu_init_mm_ops(struct gpu_ops *gops);
34void vgpu_init_debug_ops(struct gpu_ops *gops);
34int vgpu_init_mm_support(struct gk20a *g); 35int vgpu_init_mm_support(struct gk20a *g);
35int vgpu_init_gr_support(struct gk20a *g); 36int vgpu_init_gr_support(struct gk20a *g);
36int vgpu_init_fifo_support(struct gk20a *g); 37int vgpu_init_fifo_support(struct gk20a *g);
@@ -75,6 +76,9 @@ static inline void vgpu_init_ltc_ops(struct gpu_ops *gops)
75static inline void vgpu_init_mm_ops(struct gpu_ops *gops) 76static inline void vgpu_init_mm_ops(struct gpu_ops *gops)
76{ 77{
77} 78}
79static inline void vgpu_init_debug_ops(struct gpu_ops *gops)
80{
81}
78static inline int vgpu_init_mm_support(struct gk20a *g) 82static inline int vgpu_init_mm_support(struct gk20a *g)
79{ 83{
80 return -ENOSYS; 84 return -ENOSYS;