summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorPeter Daifuku <pdaifuku@nvidia.com>2016-08-31 20:04:56 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-09-08 19:04:09 -0400
commit9aa7de15c2a644e9c7e9c157e49087e66d4ac3d0 (patch)
treee5080886f09aa75c6a3cc83e5b27f8f7553678a4 /drivers/gpu/nvgpu/gk20a/gk20a.h
parent70cad5fbb593602a49f91e57c04d1da0334b3a49 (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/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 669ef1b9..1ca8ff77 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -657,6 +657,24 @@ struct gpu_ops {
657 struct { 657 struct {
658 int (*init)(struct gk20a *g); 658 int (*init)(struct gk20a *g);
659 } bios; 659 } bios;
660#if defined(CONFIG_GK20A_CYCLE_STATS)
661 struct {
662 int (*enable_snapshot)(struct channel_gk20a *ch,
663 struct gk20a_cs_snapshot_client *client);
664 void (*disable_snapshot)(struct gr_gk20a *gr);
665 int (*check_data_available)(struct channel_gk20a *ch,
666 u32 *pending,
667 bool *hw_overflow);
668 void (*set_handled_snapshots)(struct gk20a *g, u32 num);
669 u32 (*allocate_perfmon_ids)(struct gk20a_cs_snapshot *data,
670 u32 count);
671 u32 (*release_perfmon_ids)(struct gk20a_cs_snapshot *data,
672 u32 start,
673 u32 count);
674 int (*detach_snapshot)(struct channel_gk20a *ch,
675 struct gk20a_cs_snapshot_client *client);
676 } css;
677#endif
660}; 678};
661 679
662struct nvgpu_bios_ucode { 680struct nvgpu_bios_ucode {