summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-01-17 15:39:13 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-01-23 01:20:15 -0500
commitf3f14cdff53f4b936e2505d44aad6e3bca143056 (patch)
tree8d6438132b8ca429758d18142c5f569f60f2bc35 /drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c
parent193a2ed38ca51d898ac811820ab86237c84e18eb (diff)
gpu: nvgpu: Fold T19x code back to main code paths
Lots of code paths were split to T19x specific code paths and structs due to split repository. Now that repositories are merged, fold all of them back to main code paths and structs and remove the T19x specific Kconfig flag. Change-Id: Id0d17a5f0610fc0b49f51ab6664e716dc8b222b6 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1640606 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c b/drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c
index d0c9e66d..cdf3ef1c 100644
--- a/drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c
+++ b/drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * Virtualized GPU 2 * Virtualized GPU
3 * 3 *
4 * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2014-2018, 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,
@@ -47,10 +47,6 @@
47#include "common/linux/scale.h" 47#include "common/linux/scale.h"
48#include "common/linux/driver_common.h" 48#include "common/linux/driver_common.h"
49 49
50#ifdef CONFIG_TEGRA_19x_GPU
51#include <nvgpu_gpuid_t19x.h>
52#endif
53
54#include <nvgpu/hw/gk20a/hw_mc_gk20a.h> 50#include <nvgpu/hw/gk20a/hw_mc_gk20a.h>
55 51
56static inline int vgpu_comm_init(struct platform_device *pdev) 52static inline int vgpu_comm_init(struct platform_device *pdev)
@@ -436,11 +432,9 @@ static int vgpu_init_hal(struct gk20a *g)
436 gk20a_dbg_info("gp10b detected"); 432 gk20a_dbg_info("gp10b detected");
437 err = vgpu_gp10b_init_hal(g); 433 err = vgpu_gp10b_init_hal(g);
438 break; 434 break;
439#ifdef CONFIG_TEGRA_19x_GPU 435 case NVGPU_GPUID_GV11B:
440 case TEGRA_19x_GPUID:
441 err = vgpu_gv11b_init_hal(g); 436 err = vgpu_gv11b_init_hal(g);
442 break; 437 break;
443#endif
444 default: 438 default:
445 nvgpu_err(g, "no support for %x", ver); 439 nvgpu_err(g, "no support for %x", ver);
446 err = -ENODEV; 440 err = -ENODEV;