diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2016-08-01 04:57:54 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-08-10 14:18:24 -0400 |
commit | 7297e1401962af075b14db2fec2f95b6a80d97f6 (patch) | |
tree | 4825020f7787121fb419210b9a0674b7973e557d | |
parent | 32fe739f68e6307062a8a3f535be41208c97766d (diff) |
gpu: nvgpu: post bpt events after processing
Receive hww_global_esr in gr_gv11b_handle_sm_exception() and
pass it to gr_gk20a_handle_sm_exception()
Bug 200209410
Change-Id: I57a701a1f1fa560367f78db212c06d4ce361c7f0
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1194987
GVS: Gerrit_Virtual_Submit
Reviewed-by: Cory Perry <cperry@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c index 831b92f5..12b07d11 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |||
@@ -61,14 +61,15 @@ static bool gr_gv11b_is_valid_class(struct gk20a *g, u32 class_num) | |||
61 | } | 61 | } |
62 | 62 | ||
63 | static int gr_gv11b_handle_sm_exception(struct gk20a *g, u32 gpc, u32 tpc, | 63 | static int gr_gv11b_handle_sm_exception(struct gk20a *g, u32 gpc, u32 tpc, |
64 | bool *post_event, struct channel_gk20a *fault_ch) | 64 | bool *post_event, struct channel_gk20a *fault_ch, |
65 | u32 *hww_global_esr) | ||
65 | { | 66 | { |
66 | int ret = 0; | 67 | int ret = 0; |
67 | u32 offset = proj_gpc_stride_v() * gpc + | 68 | u32 offset = proj_gpc_stride_v() * gpc + |
68 | proj_tpc_in_gpc_stride_v() * tpc; | 69 | proj_tpc_in_gpc_stride_v() * tpc; |
69 | u32 lrf_ecc_status, shm_ecc_status; | 70 | u32 lrf_ecc_status, shm_ecc_status; |
70 | 71 | ||
71 | gr_gk20a_handle_sm_exception(g, gpc, tpc, post_event, fault_ch); | 72 | gr_gk20a_handle_sm_exception(g, gpc, tpc, post_event, fault_ch, hww_global_esr); |
72 | 73 | ||
73 | /* Check for LRF ECC errors. */ | 74 | /* Check for LRF ECC errors. */ |
74 | lrf_ecc_status = gk20a_readl(g, | 75 | lrf_ecc_status = gk20a_readl(g, |