diff options
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-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", |