From f3f14cdff53f4b936e2505d44aad6e3bca143056 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 17 Jan 2018 12:39:13 -0800 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1640606 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/module.c | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) (limited to 'drivers/gpu/nvgpu/common/linux/module.c') diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c index c153b56f..d22455ff 100644 --- a/drivers/gpu/nvgpu/common/linux/module.c +++ b/drivers/gpu/nvgpu/common/linux/module.c @@ -46,13 +46,11 @@ #include "scale.h" #include "pci.h" #include "module.h" +#include "module_usermode.h" #include "intr.h" #include "cde.h" #include "ioctl.h" #include "sim.h" -#ifdef CONFIG_TEGRA_19x_GPU -#include "nvgpu_gpuid_t19x.h" -#endif #include "os_linux.h" #include "cde_gm20b.h" @@ -175,9 +173,7 @@ static int gk20a_restore_registers(struct gk20a *g) l->regs = l->regs_saved; l->bar1 = l->bar1_saved; -#ifdef CONFIG_TEGRA_19x_GPU - t19x_restore_registers(g); -#endif + nvgpu_restore_usermode_registers(g); return 0; } @@ -313,9 +309,7 @@ static int gk20a_lockout_registers(struct gk20a *g) l->regs = NULL; l->bar1 = NULL; -#ifdef CONFIG_TEGRA_19x_GPU - t19x_lockout_registers(g); -#endif + nvgpu_lockout_usermode_registers(g); return 0; } @@ -384,14 +378,12 @@ static struct of_device_id tegra_gk20a_of_match[] = { .data = &gm20b_tegra_platform }, { .compatible = "nvidia,tegra186-gp10b", .data = &gp10b_tegra_platform }, -#ifdef CONFIG_TEGRA_19x_GPU - { .compatible = TEGRA_19x_GPU_COMPAT_TEGRA, - .data = &t19x_gpu_tegra_platform }, + { .compatible = "nvidia,gv11b", + .data = &gv11b_tegra_platform }, #ifdef CONFIG_TEGRA_GR_VIRTUALIZATION { .compatible = "nvidia,gv11b-vgpu", .data = &gv11b_vgpu_tegra_platform}, #endif -#endif #ifdef CONFIG_TEGRA_GR_VIRTUALIZATION { .compatible = "nvidia,tegra124-gk20a-vgpu", .data = &vgpu_tegra_platform }, @@ -669,9 +661,7 @@ void gk20a_remove_support(struct gk20a *g) l->bar1 = NULL; } -#ifdef CONFIG_TEGRA_19x_GPU - t19x_remove_support(g); -#endif + nvgpu_remove_usermode_support(g); nvgpu_free_enabled_flags(g); } @@ -721,9 +711,7 @@ static int gk20a_init_support(struct platform_device *dev) goto fail; } -#ifdef CONFIG_TEGRA_19x_GPU - t19x_init_support(g); -#endif + nvgpu_init_usermode_support(g); return 0; -- cgit v1.2.2