mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Add and move FECS trace flag
Added fecs trace characteristic flag to vgpu to determine for platform support Also moved fecs flag from ctxsw init to fecs init for native linux. This makes flag init uniform across both platforms. JIRA EVLR-993 Change-Id: Id62f31954cb5d7028ef01a199548f5f908b51eb0 Signed-off-by: Vishnu Reddy Mandalapu <vmandalapu@nvidia.com> Reviewed-on: http://git-master/r/1305045 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
f1072a28be
commit
f9b2c30b36
@@ -518,9 +518,6 @@ int gk20a_ctxsw_trace_init(struct gk20a *g)
|
||||
if (unlikely(err))
|
||||
goto fail;
|
||||
|
||||
g->gpu_characteristics.flags |=
|
||||
NVGPU_GPU_FLAGS_SUPPORT_FECS_CTXSW_TRACE;
|
||||
|
||||
return 0;
|
||||
|
||||
fail:
|
||||
|
||||
@@ -584,6 +584,9 @@ static int gk20a_fecs_trace_init(struct gk20a *g)
|
||||
nvgpu_mutex_init(&trace->hash_lock);
|
||||
hash_init(trace->pid_hash_table);
|
||||
|
||||
g->gpu_characteristics.flags |=
|
||||
NVGPU_GPU_FLAGS_SUPPORT_FECS_CTXSW_TRACE;
|
||||
|
||||
gk20a_fecs_trace_debugfs_init(g);
|
||||
return 0;
|
||||
|
||||
|
||||
@@ -52,6 +52,8 @@ static int vgpu_fecs_trace_init(struct gk20a *g)
|
||||
dev_info(dev_from_gk20a(g), "does not support fecs trace\n");
|
||||
goto fail;
|
||||
}
|
||||
g->gpu_characteristics.flags |=
|
||||
NVGPU_GPU_FLAGS_SUPPORT_FECS_CTXSW_TRACE;
|
||||
|
||||
hv_np = args.np;
|
||||
mempool = args.args[0];
|
||||
|
||||
Reference in New Issue
Block a user