diff options
author | Aingara Paramakuru <aparamakuru@nvidia.com> | 2015-08-27 14:01:45 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:52:07 -0500 |
commit | 01ba044bdbbfa831eb9f507230bac0a1ed67e4ce (patch) | |
tree | e6ae0c53d87ad237571c68dbd5cb87ffd19d137c /drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c | |
parent | 8e1c56689639917ca637875434a074fb697435e8 (diff) |
gpu: nvgpu: vgpu: add gp10b support
Add support for gp10b in a virtualized environment.
Bug 1677153
VFND-693
Change-Id: I919ffa44c6773940a7a3411ee8bbc403a992b7cb
Signed-off-by: Aingara Paramakuru <aparamakuru@nvidia.com>
Reviewed-on: http://git-master/r/792556
Reviewed-on: http://git-master/r/806193
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c new file mode 100644 index 00000000..14a7768a --- /dev/null +++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c | |||
@@ -0,0 +1,35 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2015, 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 "vgpu/vgpu.h" | ||
15 | #include "gp10b/hal_gp10b.h" | ||
16 | #include "vgpu_gr_gp10b.h" | ||
17 | #include "vgpu_fifo_gp10b.h" | ||
18 | #include "vgpu_mm_gp10b.h" | ||
19 | |||
20 | int vgpu_gp10b_init_hal(struct gk20a *g) | ||
21 | { | ||
22 | int err; | ||
23 | |||
24 | gk20a_dbg_fn(""); | ||
25 | |||
26 | err = gp10b_init_hal(g); | ||
27 | if (err) | ||
28 | return err; | ||
29 | |||
30 | vgpu_init_hal_common(g); | ||
31 | vgpu_gp10b_init_gr_ops(&g->ops); | ||
32 | vgpu_gp10b_init_fifo_ops(&g->ops); | ||
33 | vgpu_gp10b_init_mm_ops(&g->ops); | ||
34 | return 0; | ||
35 | } | ||