From 51f3f542fabb31527024eba5b8f52bf87cc30659 Mon Sep 17 00:00:00 2001 From: Seema Khowala Date: Wed, 22 Feb 2017 11:52:46 -0800 Subject: gpu: nvgpu: add is_preempt_pending fifo ops is_preempt_pending fifo ops is added as t19x preempt done sequence is differnt than legacy chips. Change-Id: I6b46be1f5b911ae11bbe806968cb8fabb21848e0 Signed-off-by: Seema Khowala Reviewed-on: http://git-master/r/1309678 Reviewed-by: svccoveritychecker GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- 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 c1e1b564..d5757130 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -450,6 +450,10 @@ struct gpu_ops { struct gk20a_debug_output *o, u32 hw_chid, struct ch_state *ch_state); u32 (*intr_0_error_mask)(struct gk20a *g); + int (*is_preempt_pending)(struct gk20a *g, u32 id, + unsigned int id_type, unsigned int timeout_rc_type); + int (*preempt_ch_tsg)(struct gk20a *g, u32 id, + unsigned int id_type, unsigned int timeout_rc_type); } fifo; struct pmu_v { /*used for change of enum zbc update cmd id from ver 0 to ver1*/ -- cgit v1.2.2