From b2dd107455267b7f5ed3c6687c2bba48f3bdb941 Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Mon, 21 Mar 2016 11:16:47 -0700 Subject: gpu: nvgpu: add trace event for channel reset Change-Id: I319e877978b7f483108ef8f67c05702b71709f62 Signed-off-by: Thomas Fleury Reviewed-on: http://git-master/r/1120501 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/gpu/nvgpu/vgpu/fifo_vgpu.c') 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 @@ */ #include +#include + #include "vgpu/vgpu.h" #include "gk20a/hw_fifo_gk20a.h" #include "gk20a/hw_ram_gk20a.h" @@ -625,6 +627,8 @@ int vgpu_fifo_isr(struct gk20a *g, struct tegra_vgpu_fifo_intr_info *info) gk20a_err(dev_from_gk20a(g), "fifo intr (%d) on ch %u", info->type, info->chid); + trace_gk20a_channel_reset(ch->hw_chid, ch->tsgid); + switch (info->type) { case TEGRA_VGPU_FIFO_INTR_PBDMA: gk20a_set_error_notifier(ch, NVGPU_CHANNEL_PBDMA_ERROR); -- cgit v1.2.2