Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 689a56d2 authored by Ravi Gummadidala's avatar Ravi Gummadidala
Browse files

msm: ipa: fix for data path stall



A previous optimization to aggregate the replenish trigger
introduced a bug in the fifo empty recovery procedure that
can cause a permanent stall. This commit fixes that bug.
Also lower the trigger threshold to 1/8 to make the fifo
empty condition less likely.

Change-Id: I10bf227826328351ee845077e4ceec47b060ce41
Signed-off-by: default avatarRavi Gummadidala <rgummadi@codeaurora.org>
parent c82c8a5b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1797,6 +1797,7 @@ static void ipa_fast_replenish_rx_cache(struct ipa_sys_context *sys)
			else
				WARN_ON(1);
		}
		sys->repl_trig_cnt = 0;
		queue_delayed_work(sys->wq, &sys->replenish_rx_work,
			msecs_to_jiffies(1));
	}
@@ -2681,7 +2682,7 @@ static int ipa_assign_policy(struct ipa_sys_connect_params *in,
						IPA_GENERIC_AGGR_PKT_LIMIT;
					}
				}
				sys->repl_trig_thresh = sys->rx_pool_sz / 4;
				sys->repl_trig_thresh = sys->rx_pool_sz / 8;
				if (nr_cpu_ids > 1)
					sys->repl_hdlr =
						ipa_fast_replenish_rx_cache;