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/gk20a/gr_gk20a.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/gk20a/gr_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
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: | |||
1543 | * we initialize gr->no_of_sm in this function | 1543 | * we initialize gr->no_of_sm in this function |
1544 | */ | 1544 | */ |
1545 | gr->sm_error_states = nvgpu_kzalloc(g, | 1545 | gr->sm_error_states = nvgpu_kzalloc(g, |
1546 | sizeof(struct nvgpu_dbg_gpu_sm_error_state_record) | 1546 | sizeof(struct nvgpu_gr_sm_error_state) |
1547 | * gr->no_of_sm); | 1547 | * gr->no_of_sm); |
1548 | if (!gr->sm_error_states) { | 1548 | if (!gr->sm_error_states) { |
1549 | err = -ENOMEM; | 1549 | err = -ENOMEM; |
@@ -4566,7 +4566,7 @@ restore_fe_go_idle: | |||
4566 | * we initialize gr->no_of_sm in this function | 4566 | * we initialize gr->no_of_sm in this function |
4567 | */ | 4567 | */ |
4568 | gr->sm_error_states = nvgpu_kzalloc(g, | 4568 | gr->sm_error_states = nvgpu_kzalloc(g, |
4569 | sizeof(struct nvgpu_dbg_gpu_sm_error_state_record) * | 4569 | sizeof(struct nvgpu_gr_sm_error_state) * |
4570 | gr->no_of_sm); | 4570 | gr->no_of_sm); |
4571 | if (!gr->sm_error_states) { | 4571 | if (!gr->sm_error_states) { |
4572 | err = -ENOMEM; | 4572 | err = -ENOMEM; |