diff options
author | Adeel Raza <araza@nvidia.com> | 2015-06-25 18:40:12 -0400 |
---|---|---|
committer | Adeel Raza <araza@nvidia.com> | 2016-01-29 17:40:11 -0500 |
commit | f0a9ce0469314711ddb5a8baf6bf88615b71c59e (patch) | |
tree | 8f09a553c123f3a5b1bb7c5dd7a260a1f363b894 /drivers/gpu/nvgpu/gk20a/gr_gk20a.h | |
parent | 9e02111a768ab631a6719c1eae8d7c03e6e89c23 (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.h | 4 |
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); |
529 | int gr_gk20a_wait_idle(struct gk20a *g, unsigned long end_jiffies, | 529 | int gr_gk20a_wait_idle(struct gk20a *g, unsigned long end_jiffies, |
530 | u32 expect_delay); | 530 | u32 expect_delay); |
531 | int gr_gk20a_handle_sm_exception(struct gk20a *g, u32 gpc, u32 tpc, | ||
532 | bool *post_event, struct channel_gk20a *fault_ch); | ||
533 | int gr_gk20a_handle_tex_exception(struct gk20a *g, u32 gpc, u32 tpc, | ||
534 | bool *post_event); | ||
531 | int gr_gk20a_init_ctx_state(struct gk20a *g); | 535 | int gr_gk20a_init_ctx_state(struct gk20a *g); |
532 | int gr_gk20a_submit_fecs_method_op(struct gk20a *g, | 536 | int gr_gk20a_submit_fecs_method_op(struct gk20a *g, |
533 | struct fecs_method_op_gk20a op, | 537 | struct fecs_method_op_gk20a op, |