diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 65750a15..e48af08c 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -474,6 +474,7 @@ struct gpu_ops { | |||
474 | u32 num_fbpas, | 474 | u32 num_fbpas, |
475 | u32 *priv_addr_table, | 475 | u32 *priv_addr_table, |
476 | u32 *priv_addr_table_index); | 476 | u32 *priv_addr_table_index); |
477 | u32 (*fecs_ctxsw_mailbox_size)(void); | ||
477 | } gr; | 478 | } gr; |
478 | struct { | 479 | struct { |
479 | void (*init_hw)(struct gk20a *g); | 480 | void (*init_hw)(struct gk20a *g); |
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 51bb2551..d26d8a93 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -155,8 +155,10 @@ void gk20a_fecs_dump_falcon_stats(struct gk20a *g) | |||
155 | gk20a_readl(g, gr_fecs_debug1_r())); | 155 | gk20a_readl(g, gr_fecs_debug1_r())); |
156 | nvgpu_err(g, "gr_fecs_debuginfo_r : 0x%x", | 156 | nvgpu_err(g, "gr_fecs_debuginfo_r : 0x%x", |
157 | gk20a_readl(g, gr_fecs_debuginfo_r())); | 157 | gk20a_readl(g, gr_fecs_debuginfo_r())); |
158 | nvgpu_err(g, "gr_fecs_ctxsw_status_1_r : 0x%x", | ||
159 | gk20a_readl(g, gr_fecs_ctxsw_status_1_r())); | ||
158 | 160 | ||
159 | for (i = 0; i < gr_fecs_ctxsw_mailbox__size_1_v(); i++) | 161 | for (i = 0; i < g->ops.gr.fecs_ctxsw_mailbox_size(); i++) |
160 | nvgpu_err(g, "gr_fecs_ctxsw_mailbox_r(%d) : 0x%x", | 162 | nvgpu_err(g, "gr_fecs_ctxsw_mailbox_r(%d) : 0x%x", |
161 | i, gk20a_readl(g, gr_fecs_ctxsw_mailbox_r(i))); | 163 | i, gk20a_readl(g, gr_fecs_ctxsw_mailbox_r(i))); |
162 | 164 | ||