diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-02-07 19:29:51 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-02 21:48:41 -0500 |
commit | 76b78b6fdcb0bbed72645aaa85de6013e2b135c3 (patch) | |
tree | def110f0c0b0928651186444a9dab058b510c5bb /drivers/gpu/nvgpu/vgpu | |
parent | f9b2c30b369ba13735e2c0168fd45bb7275bdebd (diff) |
gpu: nvgpu: Remove nvgpu_gpuid_t18x.h
Remove nvgpu_gpuid_t18x.h since this file is now visible. Migrate
the relevant definitions and defines into their expected places and
make the code use the real defines. No longer is hiding t18x specific
stuff necessary.
Bug 1799159
Change-Id: I47fa2392e46fdb7aacc70aeb0cc8c3f5ca0dc22f
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1300976
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.c | 11 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.h | 1 |
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 | ||
21 | int vgpu_gp10b_init_hal(struct gk20a *g) | 20 | int 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 | |||
38 | static inline int vgpu_comm_init(struct platform_device *pdev) | 34 | static 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, | |||
101 | void vgpu_init_hal_common(struct gk20a *g); | 101 | void vgpu_init_hal_common(struct gk20a *g); |
102 | int vgpu_gk20a_init_hal(struct gk20a *g); | 102 | int vgpu_gk20a_init_hal(struct gk20a *g); |
103 | int vgpu_gm20b_init_hal(struct gk20a *g); | 103 | int vgpu_gm20b_init_hal(struct gk20a *g); |
104 | int vgpu_gp10b_init_hal(struct gk20a *g); | ||
104 | 105 | ||
105 | void vgpu_init_dbg_session_ops(struct gpu_ops *gops); | 106 | void vgpu_init_dbg_session_ops(struct gpu_ops *gops); |
106 | 107 | ||