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/gp10b/vgpu_hal_gp10b.c1
-rw-r--r--drivers/gpu/nvgpu/vgpu/vgpu.c11
-rw-r--r--drivers/gpu/nvgpu/vgpu/vgpu.h1
3 files changed, 4 insertions, 9 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c
index b665a8dd..14a7768a 100644
--- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c
+++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c
@@ -16,7 +16,6 @@
16#include "vgpu_gr_gp10b.h" 16#include "vgpu_gr_gp10b.h"
17#include "vgpu_fifo_gp10b.h" 17#include "vgpu_fifo_gp10b.h"
18#include "vgpu_mm_gp10b.h" 18#include "vgpu_mm_gp10b.h"
19#include "nvgpu_gpuid_t18x.h"
20 19
21int vgpu_gp10b_init_hal(struct gk20a *g) 20int vgpu_gp10b_init_hal(struct gk20a *g)
22{ 21{
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c
index c8ab23f1..d8e0dfa1 100644
--- a/drivers/gpu/nvgpu/vgpu/vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/vgpu.c
@@ -31,10 +31,6 @@
31 31
32#include <nvgpu/hw/gk20a/hw_mc_gk20a.h> 32#include <nvgpu/hw/gk20a/hw_mc_gk20a.h>
33 33
34#ifdef CONFIG_ARCH_TEGRA_18x_SOC
35#include "nvgpu_gpuid_t18x.h"
36#endif
37
38static inline int vgpu_comm_init(struct platform_device *pdev) 34static inline int vgpu_comm_init(struct platform_device *pdev)
39{ 35{
40 size_t queue_sizes[] = { TEGRA_VGPU_QUEUE_SIZES }; 36 size_t queue_sizes[] = { TEGRA_VGPU_QUEUE_SIZES };
@@ -374,11 +370,10 @@ static int vgpu_init_hal(struct gk20a *g)
374 gk20a_dbg_info("gm20b detected"); 370 gk20a_dbg_info("gm20b detected");
375 err = vgpu_gm20b_init_hal(g); 371 err = vgpu_gm20b_init_hal(g);
376 break; 372 break;
377#if defined(CONFIG_ARCH_TEGRA_18x_SOC) 373 case NVGPU_GPUID_GP10B:
378 case TEGRA_18x_GPUID: 374 gk20a_dbg_info("gp10b detected");
379 err = TEGRA_18x_GPUID_VGPU_HAL(g); 375 err = vgpu_gp10b_init_hal(g);
380 break; 376 break;
381#endif
382 default: 377 default:
383 gk20a_err(g->dev, "no support for %x", ver); 378 gk20a_err(g->dev, "no support for %x", ver);
384 err = -ENODEV; 379 err = -ENODEV;
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.h b/drivers/gpu/nvgpu/vgpu/vgpu.h
index 098c7dbd..7883abc1 100644
--- a/drivers/gpu/nvgpu/vgpu/vgpu.h
+++ b/drivers/gpu/nvgpu/vgpu/vgpu.h
@@ -101,6 +101,7 @@ int vgpu_comm_sendrecv(struct tegra_vgpu_cmd_msg *msg, size_t size_in,
101void vgpu_init_hal_common(struct gk20a *g); 101void vgpu_init_hal_common(struct gk20a *g);
102int vgpu_gk20a_init_hal(struct gk20a *g); 102int vgpu_gk20a_init_hal(struct gk20a *g);
103int vgpu_gm20b_init_hal(struct gk20a *g); 103int vgpu_gm20b_init_hal(struct gk20a *g);
104int vgpu_gp10b_init_hal(struct gk20a *g);
104 105
105void vgpu_init_dbg_session_ops(struct gpu_ops *gops); 106void vgpu_init_dbg_session_ops(struct gpu_ops *gops);
106 107