summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a
diff options
context:
space:
mode:
authorAparna Das <aparnad@nvidia.com>2018-02-16 21:36:46 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-03-06 17:52:39 -0500
commitf6cac2e0c4c57295886ea97833cebcd368de3788 (patch)
tree5c549a8abfcb69407b9ee9de78cc543e3594655b /drivers/gpu/nvgpu/gk20a
parentd6b5d74c5ede5fb620b056286f9f615566f84b29 (diff)
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 <aparnad@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1660226 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h3
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c2
2 files changed, 4 insertions, 1 deletions
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
@@ -515,6 +515,9 @@ struct gpu_ops {
515 void (*pg_gr_load_gating_prod)(struct gk20a *g, bool prod); 515 void (*pg_gr_load_gating_prod)(struct gk20a *g, bool prod);
516 } clock_gating; 516 } clock_gating;
517 struct { 517 struct {
518 void (*post_events)(struct channel_gk20a *ch);
519 } debugger;
520 struct {
518 int (*init_fifo_setup_hw)(struct gk20a *g); 521 int (*init_fifo_setup_hw)(struct gk20a *g);
519 void (*bind_channel)(struct channel_gk20a *ch_gk20a); 522 void (*bind_channel)(struct channel_gk20a *ch_gk20a);
520 void (*unbind_channel)(struct channel_gk20a *ch_gk20a); 523 void (*unbind_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)
6053 /* signal clients waiting on an event */ 6053 /* signal clients waiting on an event */
6054 if (g->ops.gr.sm_debugger_attached(g) && 6054 if (g->ops.gr.sm_debugger_attached(g) &&
6055 post_event && fault_ch) { 6055 post_event && fault_ch) {
6056 gk20a_dbg_gpu_post_events(fault_ch); 6056 g->ops.debugger.post_events(fault_ch);
6057 } 6057 }
6058 } 6058 }
6059 6059