summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
diff options
context:
space:
mode:
authorAdeel Raza <araza@nvidia.com>2015-06-25 18:40:12 -0400
committerAdeel Raza <araza@nvidia.com>2016-01-29 17:40:11 -0500
commitf0a9ce0469314711ddb5a8baf6bf88615b71c59e (patch)
tree8f09a553c123f3a5b1bb7c5dd7a260a1f363b894 /drivers/gpu/nvgpu/gk20a/gr_gk20a.h
parent9e02111a768ab631a6719c1eae8d7c03e6e89c23 (diff)
gpu: nvgpu: SM/TEX exception handling support
Add TEX exception handling support. Also make SM exception handler into a function pointer, which should allow different chips to implement their own SM exception handling routine. Bug 1635727 Bug 1637486 Change-Id: I429905726c1840c11e83780843d82729495dc6a5 Signed-off-by: Adeel Raza <araza@nvidia.com> Reviewed-on: http://git-master/r/935329
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
index ad197228..9c37fd02 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
@@ -528,6 +528,10 @@ int gr_gk20a_add_zbc_depth(struct gk20a *g, struct gr_gk20a *gr,
528 struct zbc_entry *depth_val, u32 index); 528 struct zbc_entry *depth_val, u32 index);
529int gr_gk20a_wait_idle(struct gk20a *g, unsigned long end_jiffies, 529int gr_gk20a_wait_idle(struct gk20a *g, unsigned long end_jiffies,
530 u32 expect_delay); 530 u32 expect_delay);
531int gr_gk20a_handle_sm_exception(struct gk20a *g, u32 gpc, u32 tpc,
532 bool *post_event, struct channel_gk20a *fault_ch);
533int gr_gk20a_handle_tex_exception(struct gk20a *g, u32 gpc, u32 tpc,
534 bool *post_event);
531int gr_gk20a_init_ctx_state(struct gk20a *g); 535int gr_gk20a_init_ctx_state(struct gk20a *g);
532int gr_gk20a_submit_fecs_method_op(struct gk20a *g, 536int gr_gk20a_submit_fecs_method_op(struct gk20a *g,
533 struct fecs_method_op_gk20a op, 537 struct fecs_method_op_gk20a op,