summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-05-24 18:25:41 -0400
committerTejal Kudav <tkudav@nvidia.com>2018-06-14 09:44:07 -0400
commitd71d38087ded679f60714dae3a859523a19df04f (patch)
tree61439d294705ef91ce08ae4c02d4921eec943283 /drivers/gpu/nvgpu/gv11b/hal_gv11b.c
parent5215d65c25b5e76c19d9d12b03c52f69e2d40227 (diff)
gpu: nvgpu: Separate timer from bus
Code touching timer registers was combined with bus code. They're two logically separate register spaces, so separate the code accordingly. JIRA NVGPU-588 Change-Id: I40e2925ff156669f41ddc1f2e7714f92a2da367b Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1730893 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/hal_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/hal_gv11b.c11
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