From bcab5c148607867eea29e2a2ac82c6b967995525 Mon Sep 17 00:00:00 2001 From: Richard Zhao Date: Fri, 16 Mar 2018 15:56:44 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1679706 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h') 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 { u32 (*get_preempt_timeout)(struct gk20a *g); void (*post_event_id)(struct tsg_gk20a *tsg, int event_id); void (*ch_abort_clean_up)(struct channel_gk20a *ch); + bool (*check_tsg_ctxsw_timeout)(struct tsg_gk20a *tsg, + bool *verbose, u32 *ms); + bool (*check_ch_ctxsw_timeout)(struct channel_gk20a *ch, + bool *verbose, u32 *ms); #ifdef CONFIG_TEGRA_GK20A_NVHOST int (*alloc_syncpt_buf)(struct channel_gk20a *c, u32 syncpt_id, struct nvgpu_mem *syncpt_buf); -- cgit v1.2.2