<p>fixeria <strong>uploaded patch set #4</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/osmocom-bb/+/19201">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">trxcon/scheduler: check TDMA frame order, drop out of order bursts<br><br>When running together with fake_trx.py (mostly used back-end), it<br>is currently possible that Downlink bursts are received in a wrong<br>order if more than one transceiver is configured (multi-trx mode).<br><br>This is how it looks like:<br><br>  DTRXD DEBUG trx_if.c:612 RX burst tn=3 fn=629 rssi=-86 toa=0<br>  DSCHD DEBUG sched_lchan_tchf.c:60 Traffic received on TCH/F: fn=629 ts=3 bid=1<br>  DTRXD DEBUG trx_if.c:612 RX burst tn=3 fn=630 rssi=-86 toa=0<br>  DSCHD DEBUG sched_lchan_tchf.c:60 Traffic received on TCH/F: fn=630 ts=3 bid=2<br>  DTRXD DEBUG trx_if.c:612 RX burst tn=3 fn=631 rssi=-86 toa=0<br>  DSCHD DEBUG sched_lchan_tchf.c:60 Traffic received on TCH/F: fn=631 ts=3 bid=3<br><br>  DTRXD DEBUG trx_if.c:612 RX burst tn=3 fn=633 (!) rssi=-86 toa=0<br>  DSCHD NOTICE sched_trx.c:663 Substituting (!) lost TDMA frame 632 on TCH/F<br>  DSCHD DEBUG sched_lchan_tchf.c:60 Traffic received on TCH/F: fn=632 ts=3 bid=0<br>  DSCHD DEBUG sched_lchan_tchf.c:60 Traffic received on TCH/F: fn=633 ts=3 bid=1<br><br>  DTRXD DEBUG trx_if.c:612 RX burst tn=3 fn=632 (!) rssi=-86 toa=0<br>  DTRXD NOTICE sched_trx.c:640 Too many (>104) contiguous TDMA frames elapsed (2715647)<br>                               since the last processed fn=633 (current fn=632)<br><br>so here a burst with TDMA fn=633 was received earlier than a burst<br>with TDMA fn=632.  The burst loss detection logic considered the<br>latter one as lost, and substituted it with a dummy burst.  When<br>finally the out-of-order burst with TDMA fn=632 was received, we<br>got the large number of allegedly elapsed frames:<br><br>  ((632 + 2715648) - 633) % 2715648 == 2715647<br><br>Given that late bursts get substituted, the best thing we can do<br>is to reject them and log an error.  Passing them to the logical<br>channel handler (again) might lead to undefined behaviour.<br><br>Change-Id: I873c8555ea2ca190b1689227bb0fdcba87188772<br>Related: OS#4658, OS#4546<br>---<br>M src/host/trxcon/sched_trx.c<br>1 file changed, 26 insertions(+), 5 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/01/19201/4</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmocom-bb/+/19201">change 19201</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/+/19201"/><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: I873c8555ea2ca190b1689227bb0fdcba87188772 </div>
<div style="display:none"> Gerrit-Change-Number: 19201 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>