diff options
author | Nitin Kumbhar <nkumbhar@nvidia.com> | 2018-08-13 00:39:04 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-05 07:51:43 -0400 |
commit | bcdac829f44afc1b08941c507e691866f3a9cb38 (patch) | |
tree | 12a4e0378a7ea5bed584ee9c87b16d047f943886 /drivers/gpu/nvgpu/os/linux/os_ops.c | |
parent | 0406900ca944305f9713905f4d7363fc2d9cbbea (diff) |
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 <nkumbhar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1797906
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/os_ops.c')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/os_ops.c | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ | |||
21 | #include "os_ops_gp106.h" | 21 | #include "os_ops_gp106.h" |
22 | #include "os_ops_gv100.h" | 22 | #include "os_ops_gv100.h" |
23 | 23 | ||
24 | #if defined(CONFIG_TEGRA_GPU_NEXT) | ||
25 | #include "nvgpu_gpuid_next.h" | ||
26 | #endif | ||
27 | |||
24 | int nvgpu_init_os_linux_ops(struct nvgpu_os_linux *l) | 28 | int nvgpu_init_os_linux_ops(struct nvgpu_os_linux *l) |
25 | { | 29 | { |
26 | struct gk20a *g = &l->g; | 30 | struct gk20a *g = &l->g; |
@@ -40,6 +44,11 @@ int nvgpu_init_os_linux_ops(struct nvgpu_os_linux *l) | |||
40 | case NVGPU_GPUID_GV100: | 44 | case NVGPU_GPUID_GV100: |
41 | nvgpu_gv100_init_os_ops(l); | 45 | nvgpu_gv100_init_os_ops(l); |
42 | break; | 46 | break; |
47 | #if defined(CONFIG_TEGRA_GPU_NEXT) | ||
48 | case NVGPU_GPUID_NEXT: | ||
49 | NVGPU_NEXT_INIT_OS_OPS(l); | ||
50 | break; | ||
51 | #endif | ||
43 | default: | 52 | default: |
44 | break; | 53 | break; |
45 | } | 54 | } |