From dbbb7d2965621c2937c7720b260513e6ebcb6458 Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Thu, 23 May 2019 11:09:45 -0700 Subject: [PATCH] gpu: nvgpu: remove nvgpu_tsg_update_sm_error_state_locked Remove nvgpu_tsg_update_sm_error_state_locked which is not used anymore. Jira NVGPU-3476 Change-Id: I4188f6ff71c02045f1628d4be1599c891c2219b5 Signed-off-by: Thomas Fleury Reviewed-on: https://git-master.nvidia.com/r/2124411 Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-misra GVS: Gerrit_Virtual_Submit Reviewed-by: Seema Khowala Reviewed-by: Vinod Gopalakrishnakurup Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/fifo/tsg.c | 20 -------------------- drivers/gpu/nvgpu/include/nvgpu/tsg.h | 3 --- 2 files changed, 23 deletions(-) diff --git a/drivers/gpu/nvgpu/common/fifo/tsg.c b/drivers/gpu/nvgpu/common/fifo/tsg.c index f3329a5b9..d2dc401b7 100644 --- a/drivers/gpu/nvgpu/common/fifo/tsg.c +++ b/drivers/gpu/nvgpu/common/fifo/tsg.c @@ -802,26 +802,6 @@ int nvgpu_tsg_alloc_sm_error_states_mem(struct gk20a *g, return err; } -void nvgpu_tsg_update_sm_error_state_locked(struct nvgpu_tsg *tsg, - u32 sm_id, - struct nvgpu_tsg_sm_error_state *sm_error_state) -{ - struct nvgpu_tsg_sm_error_state *tsg_sm_error_states; - - tsg_sm_error_states = tsg->sm_error_states + sm_id; - - tsg_sm_error_states->hww_global_esr = - sm_error_state->hww_global_esr; - tsg_sm_error_states->hww_warp_esr = - sm_error_state->hww_warp_esr; - tsg_sm_error_states->hww_warp_esr_pc = - sm_error_state->hww_warp_esr_pc; - tsg_sm_error_states->hww_global_esr_report_mask = - sm_error_state->hww_global_esr_report_mask; - tsg_sm_error_states->hww_warp_esr_report_mask = - sm_error_state->hww_warp_esr_report_mask; -} - int nvgpu_tsg_set_sm_exception_type_mask(struct nvgpu_channel *ch, u32 exception_mask) { diff --git a/drivers/gpu/nvgpu/include/nvgpu/tsg.h b/drivers/gpu/nvgpu/include/nvgpu/tsg.h index b4f74d3a3..2042f0c86 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/tsg.h +++ b/drivers/gpu/nvgpu/include/nvgpu/tsg.h @@ -137,9 +137,6 @@ int nvgpu_tsg_set_priority(struct gk20a *g, struct nvgpu_tsg *tsg, int nvgpu_tsg_alloc_sm_error_states_mem(struct gk20a *g, struct nvgpu_tsg *tsg, u32 num_sm); -void nvgpu_tsg_update_sm_error_state_locked(struct nvgpu_tsg *tsg, - u32 sm_id, - struct nvgpu_tsg_sm_error_state *sm_error_state); int nvgpu_tsg_set_sm_exception_type_mask(struct nvgpu_channel *ch, u32 exception_mask);