diff options
author | Deepak Goyal <dgoyal@nvidia.com> | 2017-09-08 09:48:30 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-09-11 13:34:59 -0400 |
commit | 91a85229996e80a4125a8661f24b1446f4020c83 (patch) | |
tree | 401ea9b1c6940759832d56e9a000694f5507299d | |
parent | 58018f0c1b6c1957598ba58168ba9303b5617f35 (diff) |
gpu: nvgpu: gv11b: add ops for getting timestamp.
assign GPU bus ops for getting timestamps using PTIMER.
BUG 1957272
Change-Id: I1ded165858849a6a93e6ae0617ec1423d48f75ed
Signed-off-by: Deepak Goyal <dgoyal@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1555528
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hal_gv11b.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c index c6c8e18c..e9053081 100644 --- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |||
@@ -73,6 +73,7 @@ | |||
73 | #include "regops_gv11b.h" | 73 | #include "regops_gv11b.h" |
74 | #include "subctx_gv11b.h" | 74 | #include "subctx_gv11b.h" |
75 | 75 | ||
76 | #include <nvgpu/bus.h> | ||
76 | #include <nvgpu/debug.h> | 77 | #include <nvgpu/debug.h> |
77 | #include <nvgpu/enabled.h> | 78 | #include <nvgpu/enabled.h> |
78 | 79 | ||
@@ -610,6 +611,7 @@ static const struct gpu_ops gv11b_ops = { | |||
610 | .init_hw = gk20a_bus_init_hw, | 611 | .init_hw = gk20a_bus_init_hw, |
611 | .isr = gk20a_bus_isr, | 612 | .isr = gk20a_bus_isr, |
612 | .read_ptimer = gk20a_read_ptimer, | 613 | .read_ptimer = gk20a_read_ptimer, |
614 | .get_timestamps_zipper = nvgpu_get_timestamps_zipper, | ||
613 | .bar1_bind = NULL, | 615 | .bar1_bind = NULL, |
614 | }, | 616 | }, |
615 | #if defined(CONFIG_GK20A_CYCLE_STATS) | 617 | #if defined(CONFIG_GK20A_CYCLE_STATS) |