summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hal_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/hal_gm20b.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
index ea021d27..9f93d0eb 100644
--- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
@@ -25,6 +25,7 @@
25#include "common/clock_gating/gm20b_gating_reglist.h" 25#include "common/clock_gating/gm20b_gating_reglist.h"
26#include "common/bus/bus_gm20b.h" 26#include "common/bus/bus_gm20b.h"
27#include "common/bus/bus_gk20a.h" 27#include "common/bus/bus_gk20a.h"
28#include "common/ptimer/ptimer_gk20a.h"
28 29
29#include "gk20a/gk20a.h" 30#include "gk20a/gk20a.h"
30#include "gk20a/ce2_gk20a.h" 31#include "gk20a/ce2_gk20a.h"
@@ -60,7 +61,7 @@
60#include <nvgpu/debug.h> 61#include <nvgpu/debug.h>
61#include <nvgpu/bug.h> 62#include <nvgpu/bug.h>
62#include <nvgpu/enabled.h> 63#include <nvgpu/enabled.h>
63#include <nvgpu/bus.h> 64#include <nvgpu/ptimer.h>
64#include <nvgpu/error_notifier.h> 65#include <nvgpu/error_notifier.h>
65 66
66#include <nvgpu/hw/gm20b/hw_proj_gm20b.h> 67#include <nvgpu/hw/gm20b/hw_proj_gm20b.h>
@@ -605,11 +606,14 @@ static const struct gpu_ops gm20b_ops = {
605 .bus = { 606 .bus = {
606 .init_hw = gk20a_bus_init_hw, 607 .init_hw = gk20a_bus_init_hw,
607 .isr = gk20a_bus_isr, 608 .isr = gk20a_bus_isr,
608 .read_ptimer = gk20a_read_ptimer,
609 .get_timestamps_zipper = nvgpu_get_timestamps_zipper,
610 .bar1_bind = gm20b_bus_bar1_bind, 609 .bar1_bind = gm20b_bus_bar1_bind,
611 .set_bar0_window = gk20a_bus_set_bar0_window, 610 .set_bar0_window = gk20a_bus_set_bar0_window,
612 }, 611 },
612 .ptimer = {
613 .isr = gk20a_ptimer_isr,
614 .read_ptimer = gk20a_read_ptimer,
615 .get_timestamps_zipper = nvgpu_get_timestamps_zipper,
616 },
613#if defined(CONFIG_GK20A_CYCLE_STATS) 617#if defined(CONFIG_GK20A_CYCLE_STATS)
614 .css = { 618 .css = {
615 .enable_snapshot = css_hw_enable_snapshot, 619 .enable_snapshot = css_hw_enable_snapshot,
@@ -667,6 +671,7 @@ int gm20b_init_hal(struct gk20a *g)
667 gops->debug = gm20b_ops.debug; 671 gops->debug = gm20b_ops.debug;
668 gops->debugger = gm20b_ops.debugger; 672 gops->debugger = gm20b_ops.debugger;
669 gops->bus = gm20b_ops.bus; 673 gops->bus = gm20b_ops.bus;
674 gops->ptimer = gm20b_ops.ptimer;
670#if defined(CONFIG_GK20A_CYCLE_STATS) 675#if defined(CONFIG_GK20A_CYCLE_STATS)
671 gops->css = gm20b_ops.css; 676 gops->css = gm20b_ops.css;
672#endif 677#endif