summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/os/linux/ctxsw_trace.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/ctxsw_trace.c b/drivers/gpu/nvgpu/os/linux/ctxsw_trace.c
index f5e53967..05e6ef09 100644
--- a/drivers/gpu/nvgpu/os/linux/ctxsw_trace.c
+++ b/drivers/gpu/nvgpu/os/linux/ctxsw_trace.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2016-2020, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License, 5 * under the terms and conditions of the GNU General Public License,
@@ -556,8 +556,10 @@ int gk20a_ctxsw_trace_init(struct gk20a *g)
556 if (!g->ops.fecs_trace.init) 556 if (!g->ops.fecs_trace.init)
557 return 0; 557 return 0;
558 558
559 if (likely(trace)) 559 if (likely(trace)) {
560 __nvgpu_set_enabled(g, NVGPU_SUPPORT_FECS_CTXSW_TRACE, true);
560 return 0; 561 return 0;
562 }
561 563
562 trace = nvgpu_kzalloc(g, sizeof(*trace)); 564 trace = nvgpu_kzalloc(g, sizeof(*trace));
563 if (unlikely(!trace)) 565 if (unlikely(!trace))