summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/hal.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/gk20a/hal.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/gk20a/hal.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/hal.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hal.c b/drivers/gpu/nvgpu/gk20a/hal.c
index d24d4bc5..ec6816c6 100644
--- a/drivers/gpu/nvgpu/gk20a/hal.c
+++ b/drivers/gpu/nvgpu/gk20a/hal.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * NVIDIA GPU HAL interface. 2 * NVIDIA GPU HAL interface.
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 * Permission is hereby granted, free of charge, to any person obtaining a 6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"), 7 * copy of this software and associated documentation files (the "Software"),
@@ -27,10 +27,8 @@
27#include "gm20b/hal_gm20b.h" 27#include "gm20b/hal_gm20b.h"
28#include "gp10b/hal_gp10b.h" 28#include "gp10b/hal_gp10b.h"
29#include "gp106/hal_gp106.h" 29#include "gp106/hal_gp106.h"
30 30#include "gv100/hal_gv100.h"
31#ifdef CONFIG_TEGRA_19x_GPU 31#include "gv11b/hal_gv11b.h"
32#include "nvgpu_gpuid_t19x.h"
33#endif
34 32
35#include <nvgpu/log.h> 33#include <nvgpu/log.h>
36 34
@@ -53,17 +51,15 @@ int gpu_init_hal(struct gk20a *g)
53 if (gp106_init_hal(g)) 51 if (gp106_init_hal(g))
54 return -ENODEV; 52 return -ENODEV;
55 break; 53 break;
56#ifdef CONFIG_TEGRA_19x_GPU 54 case NVGPU_GPUID_GV11B:
57 case TEGRA_19x_GPUID: 55 if (gv11b_init_hal(g))
58 if (TEGRA_19x_GPUID_HAL(g))
59 return -ENODEV; 56 return -ENODEV;
60 break; 57 break;
61 case BIGGPU_19x_GPUID: 58 case NVGPU_GPUID_GV100:
62 if (BIGGPU_19x_GPUID_HAL(g)) 59 if (gv100_init_hal(g))
63 return -ENODEV; 60 return -ENODEV;
64 break; 61 break;
65 62
66#endif
67 default: 63 default:
68 nvgpu_err(g, "no support for %x", ver); 64 nvgpu_err(g, "no support for %x", ver);
69 return -ENODEV; 65 return -ENODEV;