diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c index ba85e3a3..5c1c5e0e 100644 --- a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | |||
@@ -371,8 +371,10 @@ int gk20a_fecs_trace_poll(struct gk20a *g) | |||
371 | 371 | ||
372 | while (read != write) { | 372 | while (read != write) { |
373 | cnt = gk20a_fecs_trace_ring_read(g, read); | 373 | cnt = gk20a_fecs_trace_ring_read(g, read); |
374 | if (cnt <= 0) | 374 | if (cnt > 0) { |
375 | break; | 375 | nvgpu_log(g, gpu_dbg_ctxsw, |
376 | "number of trace entries added: %d", cnt); | ||
377 | } | ||
376 | 378 | ||
377 | /* Get to next record. */ | 379 | /* Get to next record. */ |
378 | read = (read + 1) & (GK20A_FECS_TRACE_NUM_RECORDS - 1); | 380 | read = (read + 1) & (GK20A_FECS_TRACE_NUM_RECORDS - 1); |