diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2016-08-01 04:56:21 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:56:19 -0500 |
commit | c0cbc337cad85ea962f433366290fa6e84df1244 (patch) | |
tree | 128095e78476b72937565295225793f346098f18 /drivers | |
parent | 0e1758a723541ad9b4507bc34737f4f0f25e2418 (diff) |
gpu: nvgpu: post bpt events after processing
Receive hww_global_esr in gr_gp10b_handle_sm_exception() and
pass it to gr_gk20a_handle_sm_exception()
Bug 200209410
Change-Id: I467355aa57dd3cf03c4ea2134fbc8691f8e76369
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1194986
GVS: Gerrit_Virtual_Submit
Reviewed-by: Cory Perry <cperry@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/gr_gp10b.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c index ee73fed1..984241db 100644 --- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c | |||
@@ -98,7 +98,8 @@ static void gr_gp10b_sm_lrf_ecc_overcount_war(int single_err, | |||
98 | } | 98 | } |
99 | 99 | ||
100 | static int gr_gp10b_handle_sm_exception(struct gk20a *g, u32 gpc, u32 tpc, | 100 | static int gr_gp10b_handle_sm_exception(struct gk20a *g, u32 gpc, u32 tpc, |
101 | bool *post_event, struct channel_gk20a *fault_ch) | 101 | bool *post_event, struct channel_gk20a *fault_ch, |
102 | u32 *hww_global_esr) | ||
102 | { | 103 | { |
103 | int ret = 0; | 104 | int ret = 0; |
104 | u32 gpc_stride = nvgpu_get_litter_value(g, GPU_LIT_GPC_STRIDE); | 105 | u32 gpc_stride = nvgpu_get_litter_value(g, GPU_LIT_GPC_STRIDE); |
@@ -108,7 +109,7 @@ static int gr_gp10b_handle_sm_exception(struct gk20a *g, u32 gpc, u32 tpc, | |||
108 | u32 lrf_single_count_delta, lrf_double_count_delta; | 109 | u32 lrf_single_count_delta, lrf_double_count_delta; |
109 | u32 shm_ecc_status; | 110 | u32 shm_ecc_status; |
110 | 111 | ||
111 | gr_gk20a_handle_sm_exception(g, gpc, tpc, post_event, fault_ch); | 112 | gr_gk20a_handle_sm_exception(g, gpc, tpc, post_event, fault_ch, hww_global_esr); |
112 | 113 | ||
113 | /* Check for LRF ECC errors. */ | 114 | /* Check for LRF ECC errors. */ |
114 | lrf_ecc_status = gk20a_readl(g, | 115 | lrf_ecc_status = gk20a_readl(g, |