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/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/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 0207588f..24c062d2 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -202,6 +202,10 @@ struct gpu_ops { | |||
202 | struct channel_gk20a *fault_ch, | 202 | struct channel_gk20a *fault_ch, |
203 | bool *early_exit, bool *ignore_debugger); | 203 | bool *early_exit, bool *ignore_debugger); |
204 | u32 (*mask_hww_warp_esr)(u32 hww_warp_esr); | 204 | u32 (*mask_hww_warp_esr)(u32 hww_warp_esr); |
205 | int (*handle_sm_exception)(struct gk20a *g, u32 gpc, u32 tpc, | ||
206 | bool *post_event, struct channel_gk20a *fault_ch); | ||
207 | int (*handle_tex_exception)(struct gk20a *g, u32 gpc, u32 tpc, | ||
208 | bool *post_event); | ||
205 | } gr; | 209 | } gr; |
206 | const char *name; | 210 | const char *name; |
207 | struct { | 211 | struct { |