From 9eebb7831facaa16b2975f50a716d2986c67b699 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 25 Oct 2017 14:17:30 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1585645 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/vgpu/gr_vgpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/vgpu/gr_vgpu.c') 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) nvgpu_mutex_init(&gr->ctx_mutex); gr->sm_error_states = nvgpu_kzalloc(g, - sizeof(struct nvgpu_dbg_gpu_sm_error_state_record) * + sizeof(struct nvgpu_gr_sm_error_state) * gr->no_of_sm); if (!gr->sm_error_states) { err = -ENOMEM; @@ -1195,7 +1195,7 @@ int vgpu_gr_resume_contexts(struct gk20a *g, void vgpu_gr_handle_sm_esr_event(struct gk20a *g, struct tegra_vgpu_sm_esr_info *info) { - struct nvgpu_dbg_gpu_sm_error_state_record *sm_error_states; + struct nvgpu_gr_sm_error_state *sm_error_states; if (info->sm_id >= g->gr.no_of_sm) { nvgpu_err(g, "invalid smd_id %d / %d", -- cgit v1.2.2