summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorRichard Zhao <rizhao@nvidia.com>2018-03-16 18:56:44 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-03-29 21:54:11 -0400
commitbcab5c148607867eea29e2a2ac82c6b967995525 (patch)
tree3b6d79621678a0583333b26a923336f9adbd05ca /drivers/gpu/nvgpu/gk20a/gk20a.h
parentc5f03db98a20eb4e8b83fd350d293aab6986beff (diff)
gpu: nvgpu: add gops.fifo.check_tsg_ctxsw_timeout/check_ch_ctxsw_timeout
RM Server acts differently for ctxsw timeout check. It won't check GP_GET or accumulated timeouts, but notify guest and go to recovery. Jira VQRM-3058 Change-Id: I428aea34dc517311eb7e73feb556145e916309fb Signed-off-by: Richard Zhao <rizhao@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1679706 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 43284ba5..76413600 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -629,6 +629,10 @@ struct gpu_ops {
629 u32 (*get_preempt_timeout)(struct gk20a *g); 629 u32 (*get_preempt_timeout)(struct gk20a *g);
630 void (*post_event_id)(struct tsg_gk20a *tsg, int event_id); 630 void (*post_event_id)(struct tsg_gk20a *tsg, int event_id);
631 void (*ch_abort_clean_up)(struct channel_gk20a *ch); 631 void (*ch_abort_clean_up)(struct channel_gk20a *ch);
632 bool (*check_tsg_ctxsw_timeout)(struct tsg_gk20a *tsg,
633 bool *verbose, u32 *ms);
634 bool (*check_ch_ctxsw_timeout)(struct channel_gk20a *ch,
635 bool *verbose, u32 *ms);
632#ifdef CONFIG_TEGRA_GK20A_NVHOST 636#ifdef CONFIG_TEGRA_GK20A_NVHOST
633 int (*alloc_syncpt_buf)(struct channel_gk20a *c, 637 int (*alloc_syncpt_buf)(struct channel_gk20a *c,
634 u32 syncpt_id, struct nvgpu_mem *syncpt_buf); 638 u32 syncpt_id, struct nvgpu_mem *syncpt_buf);