diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-02-08 17:11:17 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-02-17 16:46:32 -0500 |
commit | 6a58857b6517607b888090e6b87f3302ea8b2e97 (patch) | |
tree | c123405cfca9ef326a3594b39a9a9ce47b287511 /drivers/gpu/nvgpu/gk20a | |
parent | 53465def649b813987ca0d4a7ced744305204b82 (diff) |
gpu: nvgpu: Remove almost all gm204/gm206 support
Remove gm204/gm206 support. It was used only in the interim until
Pascal cards were available, and we don't maintain that code anymore.
This patch leaves only BIOS code.
Change-Id: I215988603d4588ef710bdda6e47449e9235e78ac
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1302224
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 6 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hal.c | 7 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/pmu_gk20a.c | 4 |
3 files changed, 0 insertions, 17 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index b796b2cc..196af3c1 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -1357,12 +1357,6 @@ int gk20a_wait_for_idle(struct device *dev); | |||
1357 | #define GK20A_GPUID_GM20B \ | 1357 | #define GK20A_GPUID_GM20B \ |
1358 | GK20A_GPUID(NVGPU_GPU_ARCH_GM200, NVGPU_GPU_IMPL_GM20B) | 1358 | GK20A_GPUID(NVGPU_GPU_ARCH_GM200, NVGPU_GPU_IMPL_GM20B) |
1359 | 1359 | ||
1360 | #define GK20A_GPUID_GM204 \ | ||
1361 | GK20A_GPUID(NVGPU_GPU_ARCH_GM200, NVGPU_GPU_IMPL_GM204) | ||
1362 | |||
1363 | #define GK20A_GPUID_GM206 \ | ||
1364 | GK20A_GPUID(NVGPU_GPU_ARCH_GM200, NVGPU_GPU_IMPL_GM206) | ||
1365 | |||
1366 | int gk20a_init_gpu_characteristics(struct gk20a *g); | 1360 | int gk20a_init_gpu_characteristics(struct gk20a *g); |
1367 | 1361 | ||
1368 | void gk20a_pbus_isr(struct gk20a *g); | 1362 | void gk20a_pbus_isr(struct gk20a *g); |
diff --git a/drivers/gpu/nvgpu/gk20a/hal.c b/drivers/gpu/nvgpu/gk20a/hal.c index b45b934c..d4bd0ddc 100644 --- a/drivers/gpu/nvgpu/gk20a/hal.c +++ b/drivers/gpu/nvgpu/gk20a/hal.c | |||
@@ -16,7 +16,6 @@ | |||
16 | #include "gk20a.h" | 16 | #include "gk20a.h" |
17 | #include "hal_gk20a.h" | 17 | #include "hal_gk20a.h" |
18 | #include "gm20b/hal_gm20b.h" | 18 | #include "gm20b/hal_gm20b.h" |
19 | #include "gm206/hal_gm206.h" | ||
20 | 19 | ||
21 | #ifdef CONFIG_ARCH_TEGRA_18x_SOC | 20 | #ifdef CONFIG_ARCH_TEGRA_18x_SOC |
22 | #include "nvgpu_gpuid_t18x.h" | 21 | #include "nvgpu_gpuid_t18x.h" |
@@ -39,12 +38,6 @@ int gpu_init_hal(struct gk20a *g) | |||
39 | if (gm20b_init_hal(g)) | 38 | if (gm20b_init_hal(g)) |
40 | return -ENODEV; | 39 | return -ENODEV; |
41 | break; | 40 | break; |
42 | case GK20A_GPUID_GM204: | ||
43 | case GK20A_GPUID_GM206: | ||
44 | gk20a_dbg_info("gm20x detected"); | ||
45 | if (gm206_init_hal(g)) | ||
46 | return -ENODEV; | ||
47 | break; | ||
48 | #if defined(CONFIG_ARCH_TEGRA_18x_SOC) | 41 | #if defined(CONFIG_ARCH_TEGRA_18x_SOC) |
49 | case TEGRA_18x_GPUID: | 42 | case TEGRA_18x_GPUID: |
50 | if (TEGRA_18x_GPUID_HAL(g)) | 43 | if (TEGRA_18x_GPUID_HAL(g)) |
diff --git a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c index d53cf09b..6227d523 100644 --- a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c | |||
@@ -3719,10 +3719,6 @@ static u8 get_perfmon_id(struct pmu_gk20a *pmu) | |||
3719 | unit_id = PMU_UNIT_PERFMON_T18X; | 3719 | unit_id = PMU_UNIT_PERFMON_T18X; |
3720 | break; | 3720 | break; |
3721 | #endif | 3721 | #endif |
3722 | case GK20A_GPUID_GM206: | ||
3723 | case GK20A_GPUID_GM204: | ||
3724 | unit_id = PMU_UNIT_PERFMON_T18X; | ||
3725 | break; | ||
3726 | default: | 3722 | default: |
3727 | gk20a_err(g->dev, "no support for %x", ver); | 3723 | gk20a_err(g->dev, "no support for %x", ver); |
3728 | BUG(); | 3724 | BUG(); |