summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2016-04-21 19:35:44 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-05-21 14:33:23 -0400
commit47e3d2e90511b1cba68e46233896a918b32b5d33 (patch)
tree2840d2cc820690f27ad881a80774dd26cebc5302 /drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
parent4df6cd4a345d9a564f2235bc6a20ebb4614c2b04 (diff)
gpu: nvgpu: fix engine reset in FECS trace
In virtualization case, VM server is the only one allowed to write to ctxsw ring buffer. It will also generate an event in case of engine reset. Only generate a tracepoint on Guest OS side. EVLR-314 Change-Id: I2cb09780a9b41237fe196ef1f3515923f36a24a4 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: http://git-master/r/1130743 (cherry picked from commit 4bbf9538e2a3375eb86b2feea6c605c3eec2ca40) Reviewed-on: http://git-master/r/1133614 (cherry picked from commit 2076d944db41b37143c27795b3cffd88e99e0b00) Reviewed-on: http://git-master/r/1150046 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
index 83fd65ff..8fcc7cc1 100644
--- a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
@@ -630,7 +630,7 @@ int vgpu_fifo_isr(struct gk20a *g, struct tegra_vgpu_fifo_intr_info *info)
630 gk20a_err(dev_from_gk20a(g), "fifo intr (%d) on ch %u", 630 gk20a_err(dev_from_gk20a(g), "fifo intr (%d) on ch %u",
631 info->type, info->chid); 631 info->type, info->chid);
632 632
633 gk20a_ctxsw_trace_channel_reset(g, ch); 633 trace_gk20a_channel_reset(ch->hw_chid, ch->tsgid);
634 634
635 switch (info->type) { 635 switch (info->type) {
636 case TEGRA_VGPU_FIFO_INTR_PBDMA: 636 case TEGRA_VGPU_FIFO_INTR_PBDMA: