From f6cac2e0c4c57295886ea97833cebcd368de3788 Mon Sep 17 00:00:00 2001 From: Aparna Das Date: Fri, 16 Feb 2018 18:36:46 -0800 Subject: gpu: nvgpu: add debugger.post_events HAL op RM Server will need to set specific HAL op and notify vgpu client. Jira VQRM-2982 Change-Id: I679565831635ff3fadf0bdc1af5fd7a8679b6fdd Signed-off-by: Aparna Das Reviewed-on: https://git-master.nvidia.com/r/1660226 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.h | 3 +++ drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gk20a') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 6f99b3f9..06739eee 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -514,6 +514,9 @@ struct gpu_ops { void (*blcg_xbar_load_gating_prod)(struct gk20a *g, bool prod); void (*pg_gr_load_gating_prod)(struct gk20a *g, bool prod); } clock_gating; + struct { + void (*post_events)(struct channel_gk20a *ch); + } debugger; struct { int (*init_fifo_setup_hw)(struct gk20a *g); void (*bind_channel)(struct channel_gk20a *ch_gk20a); diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 07185db2..068eb070 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c @@ -6053,7 +6053,7 @@ int gk20a_gr_isr(struct gk20a *g) /* signal clients waiting on an event */ if (g->ops.gr.sm_debugger_attached(g) && post_event && fault_ch) { - gk20a_dbg_gpu_post_events(fault_ch); + g->ops.debugger.post_events(fault_ch); } } -- cgit v1.2.2