From b6febf2fdc953f7fe56d2a94448ecb5d27e78e39 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Thu, 7 Mar 2019 15:35:48 +0530 Subject: [PATCH] gpu: nvgpu: remove unused API to trace channel reset Function gk20a_ctxsw_trace_channel_reset() is not being called from anywhere, hence remove it Jira NVGPU-1880 Change-Id: I6445a7c96dc35a1e05d38f80db5335daca96f1cb Signed-off-by: Deepak Nibade Reviewed-on: https://git-master.nvidia.com/r/2069473 Reviewed-by: svc-misra-checker GVS: Gerrit_Virtual_Submit Reviewed-by: Debarshi Dutta Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/ctxsw_trace.h | 1 - drivers/gpu/nvgpu/os/linux/ctxsw_trace.c | 20 ------------------- 2 files changed, 21 deletions(-) diff --git a/drivers/gpu/nvgpu/include/nvgpu/ctxsw_trace.h b/drivers/gpu/nvgpu/include/nvgpu/ctxsw_trace.h index e740f1aa4..937d777d6 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/ctxsw_trace.h +++ b/drivers/gpu/nvgpu/include/nvgpu/ctxsw_trace.h @@ -58,7 +58,6 @@ struct nvgpu_gpu_ctxsw_trace_entry { int gk20a_ctxsw_trace_init(struct gk20a *g); -void gk20a_ctxsw_trace_channel_reset(struct gk20a *g, struct channel_gk20a *ch); void gk20a_ctxsw_trace_tsg_reset(struct gk20a *g, struct tsg_gk20a *tsg); void gk20a_ctxsw_trace_cleanup(struct gk20a *g); diff --git a/drivers/gpu/nvgpu/os/linux/ctxsw_trace.c b/drivers/gpu/nvgpu/os/linux/ctxsw_trace.c index f647f8769..1abcb77ec 100644 --- a/drivers/gpu/nvgpu/os/linux/ctxsw_trace.c +++ b/drivers/gpu/nvgpu/os/linux/ctxsw_trace.c @@ -727,26 +727,6 @@ void gk20a_ctxsw_trace_wake_up(struct gk20a *g, int vmid) nvgpu_cond_signal_interruptible(&dev->readout_wq); } -void gk20a_ctxsw_trace_channel_reset(struct gk20a *g, struct channel_gk20a *ch) -{ -#ifdef CONFIG_GK20A_CTXSW_TRACE - struct nvgpu_gpu_ctxsw_trace_entry entry = { - .vmid = 0, - .tag = NVGPU_CTXSW_TAG_ENGINE_RESET, - .context_id = 0, - .pid = ch->tgid, - }; - - if (!g->ctxsw_trace) - return; - - g->ops.ptimer.read_ptimer(g, &entry.timestamp); - gk20a_ctxsw_trace_write(g, &entry); - gk20a_ctxsw_trace_wake_up(g, 0); -#endif - trace_gk20a_channel_reset(ch->chid, ch->tsgid); -} - void gk20a_ctxsw_trace_tsg_reset(struct gk20a *g, struct tsg_gk20a *tsg) { #ifdef CONFIG_GK20A_CTXSW_TRACE