<p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25654">View Change</a></p><p>10 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25654/7//COMMIT_MSG">Commit Message:</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/osmo-bsc/+/25654/7//COMMIT_MSG@10">Patch Set #7, Line 10:</a> <code style="font-family:monospace,monospace">* Imports power_control.c from osmo-bts project.</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Please add a commit reference here.</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">OK, Should it be the commit hash of the commit that originally adds power_control.c to osmo-bts? Or the last commit to modify it? (i.e. the version I took?)<br>Or do you mean a URL reference to the file itself? Thnx</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25654/7/include/osmocom/bsc/gsm_data.h">File include/osmocom/bsc/gsm_data.h:</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/osmo-bsc/+/25654/7/include/osmocom/bsc/gsm_data.h@825">Patch Set #7, Line 825:</a> <code style="font-family:monospace,monospace">   struct gsm_power_ctrl_meas_proc_state rxlev_meas_proc;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Ack</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Are you saying you would you like to see ms_power moved in here to '.current' in a separate patchset? (maybe previous to this one?) <br>I've removed unused fields from the state struct, not sure if you would prefer to leave them there? Or put them back them in a subsequent commit that actually makes use of them?</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25654/7/src/osmo-bsc/bsc_vty.c">File src/osmo-bsc/bsc_vty.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/osmo-bsc/+/25654/7/src/osmo-bsc/bsc_vty.c@1359">Patch Set #7, Line 1359:</a> <code style="font-family:monospace,monospace">== GSM_PWR_CTRL_MODE_DYN_BSC</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I would rather do != GSM_PWR_CTRL_MODE_DYN_BTS here. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I'm happy to drop it. It's just an advice to the operator that the command won't do anything as it's not in DYN_BTS mode. Let me know what you prefer.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25654/7/src/osmo-bsc/bts_vty.c">File src/osmo-bsc/bts_vty.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/osmo-bsc/+/25654/7/src/osmo-bsc/bts_vty.c@3150">Patch Set #7, Line 3150:</a> <code style="font-family:monospace,monospace">        if (params->mode == GSM_PWR_CTRL_MODE_DYN_BSC) {</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">These thresholds also does not matter in 'static' mode. Not sure if we really need this check here.. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I don't know what to do with "not sure" comments. 😊<br>We don't really "NEED" it, no, do we really need the following lines I based it on?</p><p style="white-space: pre-wrap; word-wrap: break-word;">I don't mind. I'll follow your lead, if you want me to take it out, please be more explicit.<br>thanks</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25654/7/src/osmo-bsc/power_control.c">File src/osmo-bsc/power_control.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/osmo-bsc/+/25654/7/src/osmo-bsc/power_control.c@161">Patch Set #7, Line 161:</a> <code style="font-family:monospace,monospace">struct gsm_meas_rep *mr</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Please make this pointer 'const'.</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25654/7/src/osmo-bsc/power_control.c@170">Patch Set #7, Line 170:</a> <code style="font-family:monospace,monospace">  // int16_t ul_lqual_cb_avg;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Ack</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Missed it..</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25654/7/src/osmo-bsc/power_control.c@171">Patch Set #7, Line 171:</a> <code style="font-family:monospace,monospace">    uint8_t ms_power_lvl = ms_pwr_ctl_lvl(band, mr->ms_l1.pwr);</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I'd say this is wrong. mr->ms_l1. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">meas_rep.h:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;"> struct {<br>              int8_t pwr;     /* MS power in dBm */<br>         uint8_t ta;     /* MS timing advance */<br>       } ms_l1;</pre><p style="white-space: pre-wrap; word-wrap: break-word;"><br>abis_rsl.c:1319:<br>mr->ms_l1.pwr = ms_pwr_dbm(sign_link->trx->bts->band, val[0] >> 3);</p><p style="white-space: pre-wrap; word-wrap: break-word;">Besides, I don't think it would have perfomed correctly if that were wrong 😋</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25654/7/src/osmo-bsc/power_control.c@177">Patch Set #7, Line 177:</a> <code style="font-family:monospace,monospace"> /* Not doing the power loop here if we are not handling it */</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I would move this check to the calling function, but not critical.</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I did question this. My doubt is whether it less optimal or less clear to access<br>mr->lchan->ts->trx->bts>ms_power_ctrl->mode in the calling function, or do do it here.<br>I don't really understand what happens with CPU/Memory (if anything) when we call this function with those declarations at the top, only to exit.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25654/7/src/osmo-bsc/power_control.c@183">Patch Set #7, Line 183:</a> <code style="font-family:monospace,monospace">     if (bts->dtxu == GSM48_DTX_SHALL_BE_USED)</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Indeed. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Yep, thanks I hadn't actually investigated the full report IE, I see it now.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25654/7/src/osmo-bsc/power_control.c@258">Patch Set #7, Line 258:</a> <code style="font-family:monospace,monospace">    lchan->ms_power = new_power_lvl;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Here for sure lchan_update_ms_power_ctrl_level() must be called instead.</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25654">change 25654</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/osmo-bsc/+/25654"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ibc307e758697eb5ca3fb86622f35709d6077db9e </div>
<div style="display:none"> Gerrit-Change-Number: 25654 </div>
<div style="display:none"> Gerrit-PatchSet: 8 </div>
<div style="display:none"> Gerrit-Owner: keith <keith@rhizomatica.org> </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-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Sat, 02 Oct 2021 01:35:39 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Comment-In-Reply-To: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>