diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hal_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hal_gm20b.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c index c5bf4ff5..6de1dad5 100644 --- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <nvgpu/gk20a.h> | 29 | #include <nvgpu/gk20a.h> |
30 | #include <nvgpu/channel.h> | 30 | #include <nvgpu/channel.h> |
31 | #include <nvgpu/tsg.h> | 31 | #include <nvgpu/tsg.h> |
32 | #include <nvgpu/ctxsw_trace.h> | ||
32 | 33 | ||
33 | #include "common/clock_gating/gm20b_gating_reglist.h" | 34 | #include "common/clock_gating/gm20b_gating_reglist.h" |
34 | #include "common/bus/bus_gm20b.h" | 35 | #include "common/bus/bus_gm20b.h" |
@@ -51,6 +52,8 @@ | |||
51 | #include "gk20a/regops_gk20a.h" | 52 | #include "gk20a/regops_gk20a.h" |
52 | #include "gk20a/pmu_gk20a.h" | 53 | #include "gk20a/pmu_gk20a.h" |
53 | #include "gk20a/gr_gk20a.h" | 54 | #include "gk20a/gr_gk20a.h" |
55 | #include "gk20a/fecs_trace_gk20a.h" | ||
56 | #include "gm20b/fecs_trace_gm20b.h" | ||
54 | 57 | ||
55 | #include "gr_gm20b.h" | 58 | #include "gr_gm20b.h" |
56 | #include "fifo_gm20b.h" | 59 | #include "fifo_gm20b.h" |
@@ -484,6 +487,24 @@ static const struct gpu_ops gm20b_ops = { | |||
484 | .get_netlist_name = gr_gm20b_get_netlist_name, | 487 | .get_netlist_name = gr_gm20b_get_netlist_name, |
485 | .is_fw_defined = gr_gm20b_is_firmware_defined, | 488 | .is_fw_defined = gr_gm20b_is_firmware_defined, |
486 | }, | 489 | }, |
490 | #ifdef CONFIG_GK20A_CTXSW_TRACE | ||
491 | .fecs_trace = { | ||
492 | .alloc_user_buffer = gk20a_ctxsw_dev_ring_alloc, | ||
493 | .free_user_buffer = gk20a_ctxsw_dev_ring_free, | ||
494 | .mmap_user_buffer = gk20a_ctxsw_dev_mmap_buffer, | ||
495 | .init = gk20a_fecs_trace_init, | ||
496 | .deinit = gk20a_fecs_trace_deinit, | ||
497 | .enable = gk20a_fecs_trace_enable, | ||
498 | .disable = gk20a_fecs_trace_disable, | ||
499 | .is_enabled = gk20a_fecs_trace_is_enabled, | ||
500 | .reset = gk20a_fecs_trace_reset, | ||
501 | .flush = gm20b_fecs_trace_flush, | ||
502 | .poll = gk20a_fecs_trace_poll, | ||
503 | .bind_channel = gk20a_fecs_trace_bind_channel, | ||
504 | .unbind_channel = gk20a_fecs_trace_unbind_channel, | ||
505 | .max_entries = gk20a_gr_max_entries, | ||
506 | }, | ||
507 | #endif /* CONFIG_GK20A_CTXSW_TRACE */ | ||
487 | .mm = { | 508 | .mm = { |
488 | .support_sparse = gm20b_mm_support_sparse, | 509 | .support_sparse = gm20b_mm_support_sparse, |
489 | .gmmu_map = gk20a_locked_gmmu_map, | 510 | .gmmu_map = gk20a_locked_gmmu_map, |