diff options
author | Peter Daifuku <pdaifuku@nvidia.com> | 2016-08-31 20:04:56 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-09-08 19:04:09 -0400 |
commit | 9aa7de15c2a644e9c7e9c157e49087e66d4ac3d0 (patch) | |
tree | e5080886f09aa75c6a3cc83e5b27f8f7553678a4 /drivers/gpu/nvgpu/gk20a/hal_gk20a.c | |
parent | 70cad5fbb593602a49f91e57c04d1da0334b3a49 (diff) |
gpu: nvgpu: vgpu: cyclestat snapshot support
Add support for cyclestats snapshots in the virtual case
Bug 1700143
JIRA EVLR-278
Change-Id: I376a8804d57324f43eb16452d857a3b7bb0ecc90
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: http://git-master/r/1211547
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hal_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hal_gk20a.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hal_gk20a.c b/drivers/gpu/nvgpu/gk20a/hal_gk20a.c index 4da7ffad..550dffa6 100644 --- a/drivers/gpu/nvgpu/gk20a/hal_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/hal_gk20a.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include "hw_proj_gk20a.h" | 32 | #include "hw_proj_gk20a.h" |
33 | #include "tsg_gk20a.h" | 33 | #include "tsg_gk20a.h" |
34 | #include "dbg_gpu_gk20a.h" | 34 | #include "dbg_gpu_gk20a.h" |
35 | #include "css_gr_gk20a.h" | ||
35 | 36 | ||
36 | static struct gpu_ops gk20a_ops = { | 37 | static struct gpu_ops gk20a_ops = { |
37 | .clock_gating = { | 38 | .clock_gating = { |
@@ -157,6 +158,9 @@ int gk20a_init_hal(struct gk20a *g) | |||
157 | gk20a_init_dbg_session_ops(gops); | 158 | gk20a_init_dbg_session_ops(gops); |
158 | gk20a_init_therm_ops(gops); | 159 | gk20a_init_therm_ops(gops); |
159 | gk20a_init_tsg_ops(gops); | 160 | gk20a_init_tsg_ops(gops); |
161 | #if defined(CONFIG_GK20A_CYCLE_STATS) | ||
162 | gk20a_init_css_ops(gops); | ||
163 | #endif | ||
160 | gops->name = "gk20a"; | 164 | gops->name = "gk20a"; |
161 | gops->chip_init_gpu_characteristics = gk20a_init_gpu_characteristics; | 165 | gops->chip_init_gpu_characteristics = gk20a_init_gpu_characteristics; |
162 | gops->get_litter_value = gk20a_get_litter_value; | 166 | gops->get_litter_value = gk20a_get_litter_value; |