diff options
author | Debarshi Dutta <ddutta@nvidia.com> | 2019-05-09 02:03:35 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2019-05-14 17:59:33 -0400 |
commit | 543a904e630dfe78b193803ad04d2bd12380c2b0 (patch) | |
tree | 024f656b7cdc7096b2990c2597cf61c8f97780ea /drivers/gpu/nvgpu/os/linux | |
parent | 27625718c4b2e400650885f8c892860c6c7434fd (diff) |
gpu: nvgpu: fecs ctxsw trace for gm20b
Register gk20a non-arch-specific functions for gm20b
gpu_ops.fecs_trace,
Register nvgpu_os_linux_ops.fecs_trace.init_debugfs
gp10b_fecs_trace_flush is now replaced by gm20b_fecs_trace_flush in
fecs_trace_gm20b.* and the fecs_trace_gp10b.* files are removed.
Bug 2052906
Change-Id: I245c91ae8e6015b87bafeb3ec023b98fe4c57501
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2115247
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/os_ops_gm20b.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/os_ops_gm20b.c b/drivers/gpu/nvgpu/os/linux/os_ops_gm20b.c index 9024ce22..77aee395 100644 --- a/drivers/gpu/nvgpu/os/linux/os_ops_gm20b.c +++ b/drivers/gpu/nvgpu/os/linux/os_ops_gm20b.c | |||
@@ -18,6 +18,8 @@ | |||
18 | 18 | ||
19 | #include "cde_gm20b.h" | 19 | #include "cde_gm20b.h" |
20 | #include "debug_clk_gm20b.h" | 20 | #include "debug_clk_gm20b.h" |
21 | #include "debug_fecs_trace.h" | ||
22 | |||
21 | 23 | ||
22 | static struct nvgpu_os_linux_ops gm20b_os_linux_ops = { | 24 | static struct nvgpu_os_linux_ops gm20b_os_linux_ops = { |
23 | #ifdef CONFIG_NVGPU_SUPPORT_CDE | 25 | #ifdef CONFIG_NVGPU_SUPPORT_CDE |
@@ -28,6 +30,10 @@ static struct nvgpu_os_linux_ops gm20b_os_linux_ops = { | |||
28 | .clk = { | 30 | .clk = { |
29 | .init_debugfs = gm20b_clk_init_debugfs, | 31 | .init_debugfs = gm20b_clk_init_debugfs, |
30 | }, | 32 | }, |
33 | |||
34 | .fecs_trace = { | ||
35 | .init_debugfs = nvgpu_fecs_trace_init_debugfs, | ||
36 | }, | ||
31 | }; | 37 | }; |
32 | 38 | ||
33 | void nvgpu_gm20b_init_os_ops(struct nvgpu_os_linux *l) | 39 | void nvgpu_gm20b_init_os_ops(struct nvgpu_os_linux *l) |
@@ -36,4 +42,6 @@ void nvgpu_gm20b_init_os_ops(struct nvgpu_os_linux *l) | |||
36 | l->ops.cde = gm20b_os_linux_ops.cde; | 42 | l->ops.cde = gm20b_os_linux_ops.cde; |
37 | #endif | 43 | #endif |
38 | l->ops.clk = gm20b_os_linux_ops.clk; | 44 | l->ops.clk = gm20b_os_linux_ops.clk; |
45 | |||
46 | l->ops.fecs_trace = gm20b_os_linux_ops.fecs_trace; | ||
39 | } | 47 | } |