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/vgpu/vgpu.h | |
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/vgpu/vgpu.h')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.h b/drivers/gpu/nvgpu/vgpu/vgpu.h index 6f1059b8..4a7a6b6c 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.h +++ b/drivers/gpu/nvgpu/vgpu/vgpu.h | |||
@@ -85,6 +85,9 @@ void vgpu_init_ltc_ops(struct gpu_ops *gops); | |||
85 | void vgpu_init_mm_ops(struct gpu_ops *gops); | 85 | void vgpu_init_mm_ops(struct gpu_ops *gops); |
86 | void vgpu_init_debug_ops(struct gpu_ops *gops); | 86 | void vgpu_init_debug_ops(struct gpu_ops *gops); |
87 | void vgpu_init_tsg_ops(struct gpu_ops *gops); | 87 | void vgpu_init_tsg_ops(struct gpu_ops *gops); |
88 | #if defined(CONFIG_GK20A_CYCLE_STATS) | ||
89 | void vgpu_init_css_ops(struct gpu_ops *gops); | ||
90 | #endif | ||
88 | int vgpu_init_mm_support(struct gk20a *g); | 91 | int vgpu_init_mm_support(struct gk20a *g); |
89 | int vgpu_init_gr_support(struct gk20a *g); | 92 | int vgpu_init_gr_support(struct gk20a *g); |
90 | int vgpu_init_fifo_support(struct gk20a *g); | 93 | int vgpu_init_fifo_support(struct gk20a *g); |
@@ -161,6 +164,11 @@ static inline void vgpu_init_mm_ops(struct gpu_ops *gops) | |||
161 | static inline void vgpu_init_debug_ops(struct gpu_ops *gops) | 164 | static inline void vgpu_init_debug_ops(struct gpu_ops *gops) |
162 | { | 165 | { |
163 | } | 166 | } |
167 | #if defined(CONFIG_GK20A_CYCLE_STATS) | ||
168 | static inline void vgpu_init_css_ops(struct gpu_ops *gops) | ||
169 | { | ||
170 | } | ||
171 | #endif | ||
164 | static inline int vgpu_init_mm_support(struct gk20a *g) | 172 | static inline int vgpu_init_mm_support(struct gk20a *g) |
165 | { | 173 | { |
166 | return -ENOSYS; | 174 | return -ENOSYS; |