From bcdac829f44afc1b08941c507e691866f3a9cb38 Mon Sep 17 00:00:00 2001 From: Nitin Kumbhar Date: Mon, 13 Aug 2018 10:09:04 +0530 Subject: gpu: nvgpu: move therm debugfs to linux Move debugfs related code of therm from common driver to linux specific part of the driver. gp106_therm_debugfs_init() is updated to use nvgpu_os_linux_ops. This also affects gv100 as gp106_therm_debugfs_init is used for gv100 as well. JIRA NVGPU-603 Change-Id: Ia293d14599bc0c91fd1e917b5a430bd8f3d96e56 Signed-off-by: Nitin Kumbhar Reviewed-on: https://git-master.nvidia.com/r/1797906 GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/os/linux/os_ops.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'drivers/gpu/nvgpu/os/linux/os_ops.c') diff --git a/drivers/gpu/nvgpu/os/linux/os_ops.c b/drivers/gpu/nvgpu/os/linux/os_ops.c index 5fc5beb4..5c2eb25c 100644 --- a/drivers/gpu/nvgpu/os/linux/os_ops.c +++ b/drivers/gpu/nvgpu/os/linux/os_ops.c @@ -21,6 +21,10 @@ #include "os_ops_gp106.h" #include "os_ops_gv100.h" +#if defined(CONFIG_TEGRA_GPU_NEXT) +#include "nvgpu_gpuid_next.h" +#endif + int nvgpu_init_os_linux_ops(struct nvgpu_os_linux *l) { struct gk20a *g = &l->g; @@ -40,6 +44,11 @@ int nvgpu_init_os_linux_ops(struct nvgpu_os_linux *l) case NVGPU_GPUID_GV100: nvgpu_gv100_init_os_ops(l); break; +#if defined(CONFIG_TEGRA_GPU_NEXT) + case NVGPU_GPUID_NEXT: + NVGPU_NEXT_INIT_OS_OPS(l); + break; +#endif default: break; } -- cgit v1.2.2