summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2016-03-21 14:16:47 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-04-07 16:56:38 -0400
commitb2dd107455267b7f5ed3c6687c2bba48f3bdb941 (patch)
tree9c785afc79d1dd8cdcb8621383f6644c18bc1af1 /drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
parent327644a1a0af43ce2e369bd0a87b7e2142368285 (diff)
gpu: nvgpu: add trace event for channel reset
Change-Id: I319e877978b7f483108ef8f67c05702b71709f62 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: http://git-master/r/1120501 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/fifo_vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/fifo_vgpu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
index afe3c24b..ac506a34 100644
--- a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
@@ -14,6 +14,8 @@
14 */ 14 */
15 15
16#include <linux/dma-mapping.h> 16#include <linux/dma-mapping.h>
17#include <trace/events/gk20a.h>
18
17#include "vgpu/vgpu.h" 19#include "vgpu/vgpu.h"
18#include "gk20a/hw_fifo_gk20a.h" 20#include "gk20a/hw_fifo_gk20a.h"
19#include "gk20a/hw_ram_gk20a.h" 21#include "gk20a/hw_ram_gk20a.h"
@@ -625,6 +627,8 @@ int vgpu_fifo_isr(struct gk20a *g, struct tegra_vgpu_fifo_intr_info *info)
625 gk20a_err(dev_from_gk20a(g), "fifo intr (%d) on ch %u", 627 gk20a_err(dev_from_gk20a(g), "fifo intr (%d) on ch %u",
626 info->type, info->chid); 628 info->type, info->chid);
627 629
630 trace_gk20a_channel_reset(ch->hw_chid, ch->tsgid);
631
628 switch (info->type) { 632 switch (info->type) {
629 case TEGRA_VGPU_FIFO_INTR_PBDMA: 633 case TEGRA_VGPU_FIFO_INTR_PBDMA:
630 gk20a_set_error_notifier(ch, NVGPU_CHANNEL_PBDMA_ERROR); 634 gk20a_set_error_notifier(ch, NVGPU_CHANNEL_PBDMA_ERROR);