<p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -2</span></p><p><a href="https://gerrit.osmocom.org/12779">View Change</a></p><p>6 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/12779/1/src/osmo-bts-trx/scheduler_trx.c">File src/osmo-bts-trx/scheduler_trx.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12779/1/src/osmo-bts-trx/scheduler_trx.c@949">Patch Set #1, Line 949:</a> <code style="font-family:monospace,monospace">first_fn</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I am agree here, as a PDTCH block is interleaved over 4 consequent bursts. Similar to xCCH.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12779/1/src/osmo-bts-trx/scheduler_trx.c@1073">Patch Set #1, Line 1073:</a> <code style="font-family:monospace,monospace">first_fn</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Sorry, but this change makes the situation with TCH frame number calculation even worse. Both TCH/F (speech) and FACCH/F blocks are being interleaved over 8 bursts, so this is why we have 'fn - 7'. Neither the current, nor the suggested approach is correct. After this change we would have the frame number of 5/8 burst instead of 1/8, because we update *first_fn when bid == 0.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Doing 'fn - 7' is (I think) also incorrect because there are SACCH and IDLE frames between the TCH/F frames. As I already pointed out, we need some functions for such calculations, which would rely on the multi-frame layout.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12779/1/src/osmo-bts-trx/scheduler_trx.c@1126">Patch Set #1, Line 1126:</a> <code style="font-family:monospace,monospace">first_fn</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">same here :/</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12779/1/src/osmo-bts-trx/scheduler_trx.c@1263">Patch Set #1, Line 1263:</a> <code style="font-family:monospace,monospace">first_fn</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Here it's even more complicated, so this change would result in having frame number of 5/6 burst instead of 1/6 for FACCH/H.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12779/1/src/osmo-bts-trx/scheduler_trx.c@1306">Patch Set #1, Line 1306:</a> <code style="font-family:monospace,monospace">printf</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Left from debugging? ;)</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12779/1/src/osmo-bts-trx/scheduler_trx.c@1307">Patch Set #1, Line 1307:</a> <code style="font-family:monospace,monospace">first_fn</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">... and here we would have frame number of 3/4 burst instead of 1/4.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/12779">change 12779</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/12779"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ia27254bbf6e36426f7890ece6154dcd395673f63 </div>
<div style="display:none"> Gerrit-Change-Number: 12779 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 01 Feb 2019 18:12:26 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>