From e878686302f126fc09d336310651ebe0f857576c Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Tue, 7 Jul 2020 15:47:00 +0530 Subject: gpu: nvgpu: wait ACK for FECS watchdog timeout On Volta, nvgpu needs to wait for explicit ACK from CTXSW while setting FECS watchdog timeoout This is manual port of the fixes 4d7e5026e38528b88a4a168eca9a8b180475b368 and ad89436b03428a42e43042b6a849c15843fdebc4 on dev-main since clean cherry-pick is not possible due to huge file and structure differences. Bug 200603566 Change-Id: Icba69998ab45eee5fdf2a29e1ac1067589301be6 Signed-off-by: Deepak Nibade Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2371708 Tested-by: mobile promotions Reviewed-by: automaticguardword Reviewed-by: Alex Waterman Reviewed-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gr_gk20a.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h index 8ff2cfd4..08b81e86 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h @@ -702,6 +702,9 @@ int gr_gk20a_init_ctx_state(struct gk20a *g); int gr_gk20a_submit_fecs_method_op(struct gk20a *g, struct fecs_method_op_gk20a op, bool sleepduringwait); +int gr_gk20a_submit_fecs_method_op_locked(struct gk20a *g, + struct fecs_method_op_gk20a op, + bool sleepduringwait); int gr_gk20a_submit_fecs_sideband_method_op(struct gk20a *g, struct fecs_method_op_gk20a op); int gr_gk20a_alloc_gr_ctx(struct gk20a *g, @@ -844,4 +847,5 @@ void gk20a_gr_destroy_ctx_buffer(struct gk20a *g, int gk20a_gr_alloc_ctx_buffer(struct gk20a *g, struct gr_ctx_buffer_desc *desc, size_t size); void gk20a_gr_flush_channel_tlb(struct gr_gk20a *gr); +int gr_gk20a_set_fecs_watchdog_timeout(struct gk20a *g); #endif /*__GR_GK20A_H__*/ -- cgit v1.2.2