diff options
author | Peter Daifuku <pdaifuku@nvidia.com> | 2017-06-21 19:44:55 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-27 18:44:11 -0400 |
commit | f7e37e6847896992077fe8d434ea14a751318175 (patch) | |
tree | a169c5648668c121ecb1b48d680843d4369cfa10 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | cadd5120d33e9ed5b70c620c7a54b2c9e338c1e4 (diff) |
gpu: nvgpu: vgpu: perfbuffer support
Add vgpu support for ModeE perfbuffers
- VM allocation is handled by the kernel, with final mapping
handled by the RM server
- Enabling/disabling the perfbuffer is handled by the RM server
Bug 1880196
JIRA EVLR-1074
Change-Id: Ifbeb5ede6b07e2e112b930c602c22b66a58ac920
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: https://git-master/r/1506747
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index acfb6144..8f291f92 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -869,6 +869,8 @@ struct gpu_ops { | |||
869 | void (*release_profiler_reservation)( | 869 | void (*release_profiler_reservation)( |
870 | struct dbg_session_gk20a *dbg_s, | 870 | struct dbg_session_gk20a *dbg_s, |
871 | struct dbg_profiler_object_data *prof_obj); | 871 | struct dbg_profiler_object_data *prof_obj); |
872 | int (*perfbuffer_enable)(struct gk20a *g, u64 offset, u32 size); | ||
873 | int (*perfbuffer_disable)(struct gk20a *g); | ||
872 | } dbg_session_ops; | 874 | } dbg_session_ops; |
873 | struct { | 875 | struct { |
874 | void (*get_program_numbers)(struct gk20a *g, | 876 | void (*get_program_numbers)(struct gk20a *g, |