mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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 <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2069473 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
4b9f3992e0
commit
b6febf2fdc
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user