diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hal_gv11b.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c index 6ec3c610..7b552723 100644 --- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |||
@@ -24,6 +24,7 @@ | |||
24 | 24 | ||
25 | #include "common/bus/bus_gk20a.h" | 25 | #include "common/bus/bus_gk20a.h" |
26 | #include "common/clock_gating/gv11b_gating_reglist.h" | 26 | #include "common/clock_gating/gv11b_gating_reglist.h" |
27 | #include "common/ptimer/ptimer_gk20a.h" | ||
27 | 28 | ||
28 | #include "gk20a/gk20a.h" | 29 | #include "gk20a/gk20a.h" |
29 | #include "gk20a/fifo_gk20a.h" | 30 | #include "gk20a/fifo_gk20a.h" |
@@ -82,7 +83,7 @@ | |||
82 | #include "subctx_gv11b.h" | 83 | #include "subctx_gv11b.h" |
83 | #include "therm_gv11b.h" | 84 | #include "therm_gv11b.h" |
84 | 85 | ||
85 | #include <nvgpu/bus.h> | 86 | #include <nvgpu/ptimer.h> |
86 | #include <nvgpu/debug.h> | 87 | #include <nvgpu/debug.h> |
87 | #include <nvgpu/enabled.h> | 88 | #include <nvgpu/enabled.h> |
88 | #include <nvgpu/ctxsw_trace.h> | 89 | #include <nvgpu/ctxsw_trace.h> |
@@ -722,11 +723,14 @@ static const struct gpu_ops gv11b_ops = { | |||
722 | .bus = { | 723 | .bus = { |
723 | .init_hw = gk20a_bus_init_hw, | 724 | .init_hw = gk20a_bus_init_hw, |
724 | .isr = gk20a_bus_isr, | 725 | .isr = gk20a_bus_isr, |
725 | .read_ptimer = gk20a_read_ptimer, | ||
726 | .get_timestamps_zipper = nvgpu_get_timestamps_zipper, | ||
727 | .bar1_bind = NULL, | 726 | .bar1_bind = NULL, |
728 | .set_bar0_window = gk20a_bus_set_bar0_window, | 727 | .set_bar0_window = gk20a_bus_set_bar0_window, |
729 | }, | 728 | }, |
729 | .ptimer = { | ||
730 | .isr = gk20a_ptimer_isr, | ||
731 | .read_ptimer = gk20a_read_ptimer, | ||
732 | .get_timestamps_zipper = nvgpu_get_timestamps_zipper, | ||
733 | }, | ||
730 | #if defined(CONFIG_GK20A_CYCLE_STATS) | 734 | #if defined(CONFIG_GK20A_CYCLE_STATS) |
731 | .css = { | 735 | .css = { |
732 | .enable_snapshot = gv11b_css_hw_enable_snapshot, | 736 | .enable_snapshot = gv11b_css_hw_enable_snapshot, |
@@ -776,6 +780,7 @@ int gv11b_init_hal(struct gk20a *g) | |||
776 | gops->debugger = gv11b_ops.debugger; | 780 | gops->debugger = gv11b_ops.debugger; |
777 | gops->dbg_session_ops = gv11b_ops.dbg_session_ops; | 781 | gops->dbg_session_ops = gv11b_ops.dbg_session_ops; |
778 | gops->bus = gv11b_ops.bus; | 782 | gops->bus = gv11b_ops.bus; |
783 | gops->ptimer = gv11b_ops.ptimer; | ||
779 | #if defined(CONFIG_GK20A_CYCLE_STATS) | 784 | #if defined(CONFIG_GK20A_CYCLE_STATS) |
780 | gops->css = gv11b_ops.css; | 785 | gops->css = gv11b_ops.css; |
781 | #endif | 786 | #endif |