From f7e37e6847896992077fe8d434ea14a751318175 Mon Sep 17 00:00:00 2001 From: Peter Daifuku Date: Wed, 21 Jun 2017 16:44:55 -0700 Subject: 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 Reviewed-on: https://git-master/r/1506747 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h') 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 { void (*release_profiler_reservation)( struct dbg_session_gk20a *dbg_s, struct dbg_profiler_object_data *prof_obj); + int (*perfbuffer_enable)(struct gk20a *g, u64 offset, u32 size); + int (*perfbuffer_disable)(struct gk20a *g); } dbg_session_ops; struct { void (*get_program_numbers)(struct gk20a *g, -- cgit v1.2.2