summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/hal_gp106.c
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2016-08-29 14:05:00 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-01-04 18:53:54 -0500
commitb82d27e38490dc1155ece7d433fbcb6713b5a53b (patch)
tree929adc133e4f79d6e407a9596ab34d7a10ee78a4 /drivers/gpu/nvgpu/gp106/hal_gp106.c
parent7feff293e4f88ddae92ccf05ff86386c8d1f5c0e (diff)
gpu: nvgpu: FECS trace support on gp106
Enable FECS ctxsw tracing for gp106. Ensure that FECS records have been written to memory before accessing the ring. Update read index only once all records have been processed. Jira EVLR-424 Change-Id: I1a21f841fcce1588397408906d77e2c3bf4a8c01 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: http://git-master/r/1258243 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/hal_gp106.c')
-rw-r--r--drivers/gpu/nvgpu/gp106/hal_gp106.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c
index ee361953..0badd0a1 100644
--- a/drivers/gpu/nvgpu/gp106/hal_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c
@@ -21,6 +21,7 @@
21#include "gk20a/gk20a.h" 21#include "gk20a/gk20a.h"
22 22
23#include "gp10b/gr_gp10b.h" 23#include "gp10b/gr_gp10b.h"
24#include "gp10b/fecs_trace_gp10b.h"
24#include "gp10b/mc_gp10b.h" 25#include "gp10b/mc_gp10b.h"
25#include "gp106/ltc_gp106.h" 26#include "gp106/ltc_gp106.h"
26#include "gp10b/mm_gp10b.h" 27#include "gp10b/mm_gp10b.h"
@@ -219,6 +220,7 @@ int gp106_init_hal(struct gk20a *g)
219 gops->pmupstate = true; 220 gops->pmupstate = true;
220 gp10b_init_mc(gops); 221 gp10b_init_mc(gops);
221 gp106_init_gr(gops); 222 gp106_init_gr(gops);
223 gp10b_init_fecs_trace_ops(gops);
222 gp106_init_ltc(gops); 224 gp106_init_ltc(gops);
223 gp106_init_fb(gops); 225 gp106_init_fb(gops);
224 gp106_init_fifo(gops); 226 gp106_init_fifo(gops);