summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/hal_gp106.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/hal_gp106.c')
-rw-r--r--drivers/gpu/nvgpu/gp106/hal_gp106.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c
index 1a9c6a74..33e69d4e 100644
--- a/drivers/gpu/nvgpu/gp106/hal_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/hal_gp106.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/gp106_gating_reglist.h" 26#include "common/clock_gating/gp106_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"
@@ -86,7 +87,7 @@
86 87
87#include <nvgpu/debug.h> 88#include <nvgpu/debug.h>
88#include <nvgpu/bug.h> 89#include <nvgpu/bug.h>
89#include <nvgpu/bus.h> 90#include <nvgpu/ptimer.h>
90#include <nvgpu/enabled.h> 91#include <nvgpu/enabled.h>
91#include <nvgpu/ctxsw_trace.h> 92#include <nvgpu/ctxsw_trace.h>
92#include <nvgpu/error_notifier.h> 93#include <nvgpu/error_notifier.h>
@@ -720,11 +721,14 @@ static const struct gpu_ops gp106_ops = {
720 .bus = { 721 .bus = {
721 .init_hw = gk20a_bus_init_hw, 722 .init_hw = gk20a_bus_init_hw,
722 .isr = gk20a_bus_isr, 723 .isr = gk20a_bus_isr,
723 .read_ptimer = gk20a_read_ptimer,
724 .get_timestamps_zipper = nvgpu_get_timestamps_zipper,
725 .bar1_bind = gk20a_bus_bar1_bind, 724 .bar1_bind = gk20a_bus_bar1_bind,
726 .set_bar0_window = gk20a_bus_set_bar0_window, 725 .set_bar0_window = gk20a_bus_set_bar0_window,
727 }, 726 },
727 .ptimer = {
728 .isr = gk20a_ptimer_isr,
729 .read_ptimer = gk20a_read_ptimer,
730 .get_timestamps_zipper = nvgpu_get_timestamps_zipper,
731 },
728#if defined(CONFIG_GK20A_CYCLE_STATS) 732#if defined(CONFIG_GK20A_CYCLE_STATS)
729 .css = { 733 .css = {
730 .enable_snapshot = css_hw_enable_snapshot, 734 .enable_snapshot = css_hw_enable_snapshot,
@@ -806,6 +810,7 @@ int gp106_init_hal(struct gk20a *g)
806 gops->debugger = gp106_ops.debugger; 810 gops->debugger = gp106_ops.debugger;
807 gops->dbg_session_ops = gp106_ops.dbg_session_ops; 811 gops->dbg_session_ops = gp106_ops.dbg_session_ops;
808 gops->bus = gp106_ops.bus; 812 gops->bus = gp106_ops.bus;
813 gops->ptimer = gp106_ops.ptimer;
809#if defined(CONFIG_GK20A_CYCLE_STATS) 814#if defined(CONFIG_GK20A_CYCLE_STATS)
810 gops->css = gp106_ops.css; 815 gops->css = gp106_ops.css;
811#endif 816#endif