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/gk20a/gr_gk20a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 5910c7d9..2fd6f72c 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c @@ -1543,7 +1543,7 @@ restore_fe_go_idle: * we initialize gr->no_of_sm in this function */ 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; @@ -4566,7 +4566,7 @@ restore_fe_go_idle: * we initialize gr->no_of_sm in this function */ 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; -- cgit v1.2.2