diff options
author | Peter Daifuku <pdaifuku@nvidia.com> | 2016-09-07 20:27:45 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:56:19 -0500 |
commit | a74a971f498084bf9131be3964c380c74e9d5960 (patch) | |
tree | a1b59b8c4c5fbff59a2b408ad979659dce3c24a4 /drivers/gpu/nvgpu/gp106 | |
parent | 758add10abe564fb58ed928e0f5a8f1b4d31414f (diff) |
gpu: nvgpu: vgpu: cyclestat snapshot support
Add support for cyclestats snapshots in the virtual case
Bug 1700143
JIRA EVLR-278
Change-Id: I353efac6a17704c815a99745ac04d2c3d831351b
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: http://git-master/r/1216644
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/hal_gp106.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c index 0423dcfc..eadeb1b4 100644 --- a/drivers/gpu/nvgpu/gp106/hal_gp106.c +++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c | |||
@@ -46,6 +46,7 @@ | |||
46 | #include "nvgpu_gpuid_t18x.h" | 46 | #include "nvgpu_gpuid_t18x.h" |
47 | #include "hw_proj_gp106.h" | 47 | #include "hw_proj_gp106.h" |
48 | #include "gk20a/dbg_gpu_gk20a.h" | 48 | #include "gk20a/dbg_gpu_gk20a.h" |
49 | #include "gk20a/css_gr_gk20a.h" | ||
49 | 50 | ||
50 | static struct gpu_ops gp106_ops = { | 51 | static struct gpu_ops gp106_ops = { |
51 | .clock_gating = { | 52 | .clock_gating = { |
@@ -207,6 +208,9 @@ int gp106_init_hal(struct gk20a *g) | |||
207 | gp10b_init_regops(gops); | 208 | gp10b_init_regops(gops); |
208 | gp10b_init_cde_ops(gops); | 209 | gp10b_init_cde_ops(gops); |
209 | gk20a_init_tsg_ops(gops); | 210 | gk20a_init_tsg_ops(gops); |
211 | #if defined(CONFIG_GK20A_CYCLE_STATS) | ||
212 | gk20a_init_css_ops(gops); | ||
213 | #endif | ||
210 | gm206_init_bios(gops); | 214 | gm206_init_bios(gops); |
211 | gops->name = "gp10x"; | 215 | gops->name = "gp10x"; |
212 | gops->get_litter_value = gp106_get_litter_value; | 216 | gops->get_litter_value = gp106_get_litter_value; |