From 771445abc8c6e15cd0c8a8943c7cf4bc2081f839 Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Tue, 24 Jan 2017 11:07:00 -0800 Subject: gpu: nvgpu: add capability for FECS tracing FECS tracing is not supported yet on some platforms (e.g. GM20B), so we need a flag to determine when to run automated tests. Jira EVLR-992 Change-Id: I01a5b2f78612363de44c1f2c17cebaded696f423 Signed-off-by: Thomas Fleury Reviewed-on: http://git-master/r/1293350 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c b/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c index 9e116c36..705eccaa 100644 --- a/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.c @@ -518,6 +518,9 @@ 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: -- cgit v1.2.2