summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/fifo_gv11b.h
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2018-06-26 11:53:15 -0400
committerAlex Waterman <alexw@nvidia.com>2018-06-26 17:43:08 -0400
commit0b02c8589dcc507865a8fd398431c45fbda2ba9c (patch)
tree7714c296d600b118ea71abb8cc6fab7b2aa50de2 /drivers/gpu/nvgpu/gv11b/fifo_gv11b.h
parent8586414cc15ca36e92cf3c40c2cfb2f8b2691bee (diff)
Revert: GV11B runlist preemption patches
This reverts commit 2d397e34a5aafb5feed406a13f3db536eadae5bb. This reverts commit cd6e821cf66837a2c3479e928414007064b9c496. This reverts commit 5cf1eb145fef763f7153e449be60f1a7602e2c81. This reverts commit a8d6f31bde3ccef22ee77023eaff4a62f6f88199. This reverts commit 067ddbc4e4df3f1f756f03e7865c369a46f420aa. This reverts commit 3eede64de058fcb1e39d723dd146bcd5d06c6f43. This reverts commit 1407133b7e1b27a92ee8c116009541904d2ff691. This reverts commit 797dde3e32647df3b616cea67f4defae59d38b3f. Looks like this makes the ap_compute test on embedded-qnx-hv e3550-t194 quite bad. Might also affect ap_resmgr. Signed-off-by: Alex Waterman <alexw@nvidia.com> Change-Id: Ib9f06514d554d1a67993f0f2bd3d180147385e0a Reviewed-on: https://git-master.nvidia.com/r/1761864 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/fifo_gv11b.h')
-rw-r--r--drivers/gpu/nvgpu/gv11b/fifo_gv11b.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.h b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.h
index aee7aef2..1ae3c93e 100644
--- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.h
+++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.h
@@ -50,13 +50,10 @@
50 50
51#define CHANNEL_INFO_VEID0 0 51#define CHANNEL_INFO_VEID0 0
52 52
53#define MAX_PRE_SI_RETRIES 200000 /* 1G/500KHz * 100 */
54#define PREEMPT_TIMEOUT_1000_MS 1000
55
56struct gpu_ops; 53struct gpu_ops;
57 54
58void gv11b_fifo_reset_pbdma_and_eng_faulted(struct gk20a *g, 55void gv11b_fifo_reset_pbdma_and_eng_faulted(struct gk20a *g,
59 struct tsg_gk20a *tsg, 56 struct channel_gk20a *refch,
60 u32 faulted_pbdma, u32 faulted_engine); 57 u32 faulted_pbdma, u32 faulted_engine);
61void gv11b_mmu_fault_id_to_eng_pbdma_id_and_veid(struct gk20a *g, 58void gv11b_mmu_fault_id_to_eng_pbdma_id_and_veid(struct gk20a *g,
62 u32 mmu_fault_id, u32 *active_engine_id, u32 *veid, u32 *pbdma_id); 59 u32 mmu_fault_id, u32 *active_engine_id, u32 *veid, u32 *pbdma_id);
@@ -81,11 +78,12 @@ void gv11b_dump_eng_status(struct gk20a *g,
81u32 gv11b_fifo_intr_0_error_mask(struct gk20a *g); 78u32 gv11b_fifo_intr_0_error_mask(struct gk20a *g);
82int gv11b_fifo_reschedule_runlist(struct channel_gk20a *ch, bool preempt_next); 79int gv11b_fifo_reschedule_runlist(struct channel_gk20a *ch, bool preempt_next);
83int gv11b_fifo_is_preempt_pending(struct gk20a *g, u32 id, 80int gv11b_fifo_is_preempt_pending(struct gk20a *g, u32 id,
84 unsigned int id_type); 81 unsigned int id_type, unsigned int timeout_rc_type);
85int gv11b_fifo_preempt_channel(struct gk20a *g, u32 chid); 82int gv11b_fifo_preempt_channel(struct gk20a *g, u32 chid);
86int gv11b_fifo_preempt_tsg(struct gk20a *g, u32 tsgid); 83int gv11b_fifo_preempt_tsg(struct gk20a *g, u32 tsgid);
87int gv11b_fifo_enable_tsg(struct tsg_gk20a *tsg); 84int gv11b_fifo_enable_tsg(struct tsg_gk20a *tsg);
88int gv11b_fifo_preempt_ch_tsg(struct gk20a *g, u32 id, unsigned int id_type); 85int gv11b_fifo_preempt_ch_tsg(struct gk20a *g, u32 id,
86 unsigned int id_type, unsigned int timeout_rc_type);
89void gv11b_fifo_teardown_ch_tsg(struct gk20a *g, u32 act_eng_bitmask, 87void gv11b_fifo_teardown_ch_tsg(struct gk20a *g, u32 act_eng_bitmask,
90 u32 id, unsigned int id_type, unsigned int rc_type, 88 u32 id, unsigned int id_type, unsigned int rc_type,
91 struct mmu_fault_info *mmfault); 89 struct mmu_fault_info *mmfault);