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/gm20b | |
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/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hal_gm20b.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c index 34e3b605..e30ca96f 100644 --- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include "therm_gm20b.h" | 36 | #include "therm_gm20b.h" |
37 | #include "hw_proj_gm20b.h" | 37 | #include "hw_proj_gm20b.h" |
38 | #include "gk20a/dbg_gpu_gk20a.h" | 38 | #include "gk20a/dbg_gpu_gk20a.h" |
39 | #include "gk20a/css_gr_gk20a.h" | ||
39 | 40 | ||
40 | #define FUSE_OPT_PRIV_SEC_DIS_0 0x264 | 41 | #define FUSE_OPT_PRIV_SEC_DIS_0 0x264 |
41 | #define PRIV_SECURITY_DISABLE 0x01 | 42 | #define PRIV_SECURITY_DISABLE 0x01 |
@@ -226,6 +227,9 @@ int gm20b_init_hal(struct gk20a *g) | |||
226 | gm20b_init_cde_ops(gops); | 227 | gm20b_init_cde_ops(gops); |
227 | gm20b_init_therm_ops(gops); | 228 | gm20b_init_therm_ops(gops); |
228 | gk20a_init_tsg_ops(gops); | 229 | gk20a_init_tsg_ops(gops); |
230 | #if defined(CONFIG_GK20A_CYCLE_STATS) | ||
231 | gk20a_init_css_ops(gops); | ||
232 | #endif | ||
229 | gops->name = "gm20b"; | 233 | gops->name = "gm20b"; |
230 | gops->chip_init_gpu_characteristics = gk20a_init_gpu_characteristics; | 234 | gops->chip_init_gpu_characteristics = gk20a_init_gpu_characteristics; |
231 | gops->get_litter_value = gm20b_get_litter_value; | 235 | gops->get_litter_value = gm20b_get_litter_value; |