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/gr_gk20a.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/gk20a/gr_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h index 2a351bc3..c337a74a 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h | |||
@@ -603,16 +603,16 @@ int gr_gk20a_halt_pipe(struct gk20a *g); | |||
603 | int gr_gk20a_debugfs_init(struct gk20a *g); | 603 | int gr_gk20a_debugfs_init(struct gk20a *g); |
604 | 604 | ||
605 | #if defined(CONFIG_GK20A_CYCLE_STATS) | 605 | #if defined(CONFIG_GK20A_CYCLE_STATS) |
606 | int gr_gk20a_css_attach(struct gk20a *g, /* in - main hw structure */ | 606 | int gr_gk20a_css_attach(struct channel_gk20a *ch, /* in - main hw structure */ |
607 | u32 dmabuf_fd, /* in - dma mapped memory */ | 607 | u32 dmabuf_fd, /* in - dma mapped memory */ |
608 | u32 perfmon_id_count, /* in - number of perfmons*/ | 608 | u32 perfmon_id_count, /* in - number of perfmons*/ |
609 | u32 *perfmon_id_start, /* out- index of first pm */ | 609 | u32 *perfmon_id_start, /* out- index of first pm */ |
610 | /* out - pointer to client data used in later */ | 610 | /* out - pointer to client data used in later */ |
611 | struct gk20a_cs_snapshot_client **css_client); | 611 | struct gk20a_cs_snapshot_client **css_client); |
612 | 612 | ||
613 | int gr_gk20a_css_detach(struct gk20a *g, | 613 | int gr_gk20a_css_detach(struct channel_gk20a *ch, |
614 | struct gk20a_cs_snapshot_client *css_client); | 614 | struct gk20a_cs_snapshot_client *css_client); |
615 | int gr_gk20a_css_flush(struct gk20a *g, | 615 | int gr_gk20a_css_flush(struct channel_gk20a *ch, |
616 | struct gk20a_cs_snapshot_client *css_client); | 616 | struct gk20a_cs_snapshot_client *css_client); |
617 | 617 | ||
618 | void gr_gk20a_free_cyclestats_snapshot_data(struct gk20a *g); | 618 | void gr_gk20a_free_cyclestats_snapshot_data(struct gk20a *g); |