diff options
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/debug_vgpu.c | 25 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.c | 3 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.h | 6 |
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 | |||
17 | static void vgpu_debug_show_dump(struct gk20a *g, struct gk20a_debug_output *o) | ||
18 | { | ||
19 | /* debug dump not supported */ | ||
20 | } | ||
21 | |||
22 | void 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); | |||
31 | void vgpu_init_gr_ops(struct gpu_ops *gops); | 31 | void vgpu_init_gr_ops(struct gpu_ops *gops); |
32 | void vgpu_init_ltc_ops(struct gpu_ops *gops); | 32 | void vgpu_init_ltc_ops(struct gpu_ops *gops); |
33 | void vgpu_init_mm_ops(struct gpu_ops *gops); | 33 | void vgpu_init_mm_ops(struct gpu_ops *gops); |
34 | void vgpu_init_debug_ops(struct gpu_ops *gops); | ||
34 | int vgpu_init_mm_support(struct gk20a *g); | 35 | int vgpu_init_mm_support(struct gk20a *g); |
35 | int vgpu_init_gr_support(struct gk20a *g); | 36 | int vgpu_init_gr_support(struct gk20a *g); |
36 | int vgpu_init_fifo_support(struct gk20a *g); | 37 | int vgpu_init_fifo_support(struct gk20a *g); |
@@ -75,6 +76,9 @@ static inline void vgpu_init_ltc_ops(struct gpu_ops *gops) | |||
75 | static inline void vgpu_init_mm_ops(struct gpu_ops *gops) | 76 | static inline void vgpu_init_mm_ops(struct gpu_ops *gops) |
76 | { | 77 | { |
77 | } | 78 | } |
79 | static inline void vgpu_init_debug_ops(struct gpu_ops *gops) | ||
80 | { | ||
81 | } | ||
78 | static inline int vgpu_init_mm_support(struct gk20a *g) | 82 | static inline int vgpu_init_mm_support(struct gk20a *g) |
79 | { | 83 | { |
80 | return -ENOSYS; | 84 | return -ENOSYS; |