<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmocom-bb/+/19184">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">trxcon/scheduler: fix subst_frame_loss(): do not compensate too much<br><br>It's not something that we should be trying to fix, if the whole<br>TDMA multi-frame is lost.  For some yet unknown reason, sometimes<br>the difference between the last processed TDMA frame number and<br>the current one is so huge, so trxcon eats a lot of CPU trying<br>to compensate nearly the whole TDMA hyper-frame:<br><br>  sched_trx.c:640 Too many (>104) contiguous TDMA frames elapsed (2715647)<br>                  since the last processed fn=633 (current fn=632)<br><br>Let's just print a warning and do not compensate more than one<br>TDMA multi-frame period corresponding to the current layout.<br><br>Change-Id: I56251d0d2f6fa19195ff105d3bdfbc22df6db8cd<br>---<br>M src/host/trxcon/sched_trx.c<br>1 file changed, 1 insertion(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/84/19184/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/host/trxcon/sched_trx.c b/src/host/trxcon/sched_trx.c</span><br><span>index 79e6f88..9195b33 100644</span><br><span>--- a/src/host/trxcon/sched_trx.c</span><br><span>+++ b/src/host/trxcon/sched_trx.c</span><br><span>@@ -640,6 +640,7 @@</span><br><span>                LOGP(DSCHD, LOGL_NOTICE, "Too many (>%u) contiguous TDMA frames elapsed (%u) "</span><br><span>                                   "since the last processed fn=%u (current %u)\n",</span><br><span>                                   mf->period, elapsed, lchan->tdma.last_proc, fn);</span><br><span style="color: hsl(120, 100%, 40%);">+               return -EIO;</span><br><span>         } else if (elapsed == 0) {</span><br><span>           LOGP(DSCHD, LOGL_ERROR, "No TDMA frames elapsed since the last processed "</span><br><span>                                         "fn=%u, must be a bug?\n", lchan->tdma.last_proc);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmocom-bb/+/19184">change 19184</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmocom-bb/+/19184"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmocom-bb </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I56251d0d2f6fa19195ff105d3bdfbc22df6db8cd </div>
<div style="display:none"> Gerrit-Change-Number: 19184 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>