summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Ho <jeremyh@nvidia.com>2020-01-14 22:05:17 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2020-01-17 04:39:21 -0500
commiteb429023cf513c06f027fee8bf0b07f0bb3e6ddd (patch)
tree208574a6d46e927f80f8a4ae3ea8a048bca8b144
parent3c6409a51b439aac863338303dabd38add34118e (diff)
gpu: nvgpu: add fecs flag in poweron
Nvgpu flags will miss fecs when nvgpu poweron. We have to add this fecs in flag when we are seeing trace was initialized before. Bug 2629615 Change-Id: I7815af7bf66a7a103a14cd375a3fd394243035b1 Signed-off-by: Jeremy Ho <jeremyh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2279244 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-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))