mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
Revert: GV11B runlist preemption patches
This reverts commit2d397e34a5. This reverts commitcd6e821cf6. This reverts commit5cf1eb145f. This reverts commita8d6f31bde. This reverts commit067ddbc4e4. This reverts commit3eede64de0. This reverts commit1407133b7e. This reverts commit797dde3e32. 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
This commit is contained in:
@@ -55,7 +55,9 @@
|
||||
#define FECS_METHOD_WFI_RESTORE 0x80000
|
||||
#define FECS_MAILBOX_0_ACK_RESTORE 0x4
|
||||
|
||||
|
||||
static int gk20a_fifo_update_runlist_locked(struct gk20a *g, u32 runlist_id,
|
||||
u32 chid, bool add,
|
||||
bool wait_for_finish);
|
||||
static u32 gk20a_fifo_engines_on_id(struct gk20a *g, u32 id, bool is_tsg);
|
||||
|
||||
static const char *const pbdma_intr_fault_type_desc[] = {
|
||||
@@ -2702,7 +2704,7 @@ void gk20a_fifo_issue_preempt(struct gk20a *g, u32 id, bool is_tsg)
|
||||
}
|
||||
|
||||
int gk20a_fifo_is_preempt_pending(struct gk20a *g, u32 id,
|
||||
unsigned int id_type)
|
||||
unsigned int id_type, unsigned int timeout_rc_type)
|
||||
{
|
||||
struct nvgpu_timeout timeout;
|
||||
u32 delay = GR_IDLE_CHECK_DEFAULT;
|
||||
@@ -2775,8 +2777,8 @@ int __locked_fifo_preempt(struct gk20a *g, u32 id, bool is_tsg)
|
||||
id_type = is_tsg ? ID_TYPE_TSG : ID_TYPE_CHANNEL;
|
||||
|
||||
/* wait for preempt */
|
||||
ret = g->ops.fifo.is_preempt_pending(g, id, id_type);
|
||||
|
||||
ret = g->ops.fifo.is_preempt_pending(g, id, id_type,
|
||||
PREEMPT_TIMEOUT_RC);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -3273,7 +3275,7 @@ void gk20a_fifo_runlist_hw_submit(struct gk20a *g, u32 runlist_id,
|
||||
fifo_eng_runlist_length_f(count));
|
||||
}
|
||||
|
||||
int gk20a_fifo_update_runlist_locked(struct gk20a *g, u32 runlist_id,
|
||||
static int gk20a_fifo_update_runlist_locked(struct gk20a *g, u32 runlist_id,
|
||||
u32 chid, bool add,
|
||||
bool wait_for_finish)
|
||||
{
|
||||
@@ -3446,7 +3448,8 @@ static int __locked_fifo_reschedule_preempt_next(struct channel_gk20a *ch,
|
||||
gk20a_readl(g, fifo_preempt_r()));
|
||||
#endif
|
||||
if (wait_preempt) {
|
||||
g->ops.fifo.is_preempt_pending(g, preempt_id, preempt_type);
|
||||
g->ops.fifo.is_preempt_pending(
|
||||
g, preempt_id, preempt_type, PREEMPT_TIMEOUT_RC);
|
||||
}
|
||||
#ifdef TRACEPOINTS_ENABLED
|
||||
trace_gk20a_reschedule_preempted_next(ch->chid);
|
||||
|
||||
Reference in New Issue
Block a user