diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-10-25 17:17:30 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-26 16:26:25 -0400 |
commit | 9eebb7831facaa16b2975f50a716d2986c67b699 (patch) | |
tree | 8c0f5ba76e76c10762a04ea7fd7b681960f8ed5b /drivers/gpu/nvgpu/vgpu/gr_vgpu.c | |
parent | 34ce21a588ad3e6d11a8fa6bc5b9e7282dca8f61 (diff) |
gpu: nvgpu: Linux specific sm_error_state_record
Create an nvgpu internal nvgpu_gr_sm_error_state to store and
propagate SM error state within driver. Use
nvgpu_dbg_gpu_sm_error_state_record only in Linux code.
JIRA NVGPU-259
Change-Id: I7365cdf5a1a42cbcdb418dfcef3e0020e02a960f
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1585645
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/gr_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gr_vgpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gr_vgpu.c b/drivers/gpu/nvgpu/vgpu/gr_vgpu.c index 2d6beda6..d400f08e 100644 --- a/drivers/gpu/nvgpu/vgpu/gr_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/gr_vgpu.c | |||
@@ -899,7 +899,7 @@ static int vgpu_gr_init_gr_setup_sw(struct gk20a *g) | |||
899 | nvgpu_mutex_init(&gr->ctx_mutex); | 899 | nvgpu_mutex_init(&gr->ctx_mutex); |
900 | 900 | ||
901 | gr->sm_error_states = nvgpu_kzalloc(g, | 901 | gr->sm_error_states = nvgpu_kzalloc(g, |
902 | sizeof(struct nvgpu_dbg_gpu_sm_error_state_record) * | 902 | sizeof(struct nvgpu_gr_sm_error_state) * |
903 | gr->no_of_sm); | 903 | gr->no_of_sm); |
904 | if (!gr->sm_error_states) { | 904 | if (!gr->sm_error_states) { |
905 | err = -ENOMEM; | 905 | err = -ENOMEM; |
@@ -1195,7 +1195,7 @@ int vgpu_gr_resume_contexts(struct gk20a *g, | |||
1195 | void vgpu_gr_handle_sm_esr_event(struct gk20a *g, | 1195 | void vgpu_gr_handle_sm_esr_event(struct gk20a *g, |
1196 | struct tegra_vgpu_sm_esr_info *info) | 1196 | struct tegra_vgpu_sm_esr_info *info) |
1197 | { | 1197 | { |
1198 | struct nvgpu_dbg_gpu_sm_error_state_record *sm_error_states; | 1198 | struct nvgpu_gr_sm_error_state *sm_error_states; |
1199 | 1199 | ||
1200 | if (info->sm_id >= g->gr.no_of_sm) { | 1200 | if (info->sm_id >= g->gr.no_of_sm) { |
1201 | nvgpu_err(g, "invalid smd_id %d / %d", | 1201 | nvgpu_err(g, "invalid smd_id %d / %d", |