Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/28893
to look at the new patch set (#2).
Change subject: cbc: Test sneding Unknwon TAI List to osmo-cbc
......................................................................
cbc: Test sneding Unknwon TAI List to osmo-cbc
Related: OS#4945
Change-Id: I7d8cf5e6498d03ad340b8f843ce93a20171e9fca
---
M cbc/CBC_Tests.ttcn
M cbc/MME_ConnectionHandler.ttcn
M library/sbcap/SBC_AP_Templates.ttcn
3 files changed, 80 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/93/28893/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/28893
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I7d8cf5e6498d03ad340b8f843ce93a20171e9fca
Gerrit-Change-Number: 28893
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-MessageType: newpatchset
Attention is currently required from: dexter.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/28896 )
Change subject: abis_om2000: duplicate nmstate of bb_trxc mo to trx mo
......................................................................
Patch Set 1:
(8 comments)
Commit Message:
https://gerrit.osmocom.org/c/osmo-bsc/+/28896/comment/1252bd37_30f85a79
PS1, Line 9: In OM2000 a separate bb_trxc MO does not exist to archive better
"does not exit. To achive"
Missing dot
Typo in "archive".
https://gerrit.osmocom.org/c/osmo-bsc/+/28896/comment/78831608_250a8938
PS1, Line 10: compatibilty towards classic ABIS and its MOs lets mirror the nmstate of
Abis
let's
https://gerrit.osmocom.org/c/osmo-bsc/+/28896/comment/a2281b72_281f9b6d
PS1, Line 11: the trx MO to the trxc_mo to make it look like if it were present.
BB_TRANSC MO to the RCARRIER MO
File src/osmo-bsc/abis_om2000.c:
https://gerrit.osmocom.org/c/osmo-bsc/+/28896/comment/6d4c3908_f1552f05
PS1, Line 1011: switch (mo_state) {
Move this to a function: mo2nm_state(uint8_t mo_state).
Then, "nsd.new_state.availability = mo2nm_state(mo_state);"
https://gerrit.osmocom.org/c/osmo-bsc/+/28896/comment/ddc40cab_4bccd52d
PS1, Line 1032: duplicate_trxc_nm_state(bts, mo);
This looks wrong, you should emit signals for both NM objects not only one?
You could do something like this after emitting the signal:
if (mo->class == OM2K_MO_CLS_TRXC) {
struct gsm_nm_state *bbtransc_nm_state = nm_state = &trx->bb_transc.mo.nm_state;
/* Update current state before emitting signal: */
bbtransc_nm_state->availability = nsd.new_state.availability;
osmo_signal_dispatch(SS_NM, S_NM_STATECHG, &nsd);
}
https://gerrit.osmocom.org/c/osmo-bsc/+/28896/comment/eb830fe4_207f08a6
PS1, Line 1058: duplicate_trxc_nm_state(bts, mo);
Same, simply explicitly set bb_transc_nm_state->operational = new_state.operational;
https://gerrit.osmocom.org/c/osmo-bsc/+/28896/comment/ea0e51bd_1294e48c
PS1, Line 1059: }
Not directly related to this patch but indirectly related to have stuff working as expected: AFAICT you are missing a "osmo_signal_dispatch(SS_NM, S_NM_STATECHG, &nsd);" here.
https://gerrit.osmocom.org/c/osmo-bsc/+/28896/comment/06e4ee92_b9d2332c
PS1, Line 2245: otfp->trx->bb_transc.mo.nm_state.administrative = NM_STATE_UNLOCKED;
Not directly related to this patch but indirectly related to have stuff working as expected: AFAICT you are missing a "osmo_signal_dispatch(SS_NM, S_NM_STATECHG, &nsd);" here.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/28896
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I4611d8af16a30725308bd527098b12a356bfde9f
Gerrit-Change-Number: 28896
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 02 Aug 2022 13:57:48 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: dexter.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/28895 )
Change subject: bts_trx_vty: do not print nmstate of bb_trxc mo
......................................................................
Patch Set 1: Code-Review-1
(1 comment)
File src/osmo-bsc/bts_trx_vty.c:
https://gerrit.osmocom.org/c/osmo-bsc/+/28895/comment/fe5345ee_37402efb
PS1, Line 743: if (!is_ericsson_bts(trx->bts)) {
Since you are implementing BBTRANSC for OM2000 in next patch, I don't see a reason to have this. It's like going backwards, we should go to a unified interface instead.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/28895
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I0f5501f6fbc7ce6d5457676b16c7f93f70db5763
Gerrit-Change-Number: 28895
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: Jenkins Builder
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 02 Aug 2022 13:42:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/28895 )
Change subject: bts_trx_vty: do not print nmstate of bb_trxc mo
......................................................................
bts_trx_vty: do not print nmstate of bb_trxc mo
The OM2000 model does not have a separate bb_transc MO, we should
exclude it from 'show trx'
Change-Id: I0f5501f6fbc7ce6d5457676b16c7f93f70db5763
Related: OS#5101
---
M src/osmo-bsc/bts_trx_vty.c
1 file changed, 7 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/95/28895/1
diff --git a/src/osmo-bsc/bts_trx_vty.c b/src/osmo-bsc/bts_trx_vty.c
index bd13a05..e128de6 100644
--- a/src/osmo-bsc/bts_trx_vty.c
+++ b/src/osmo-bsc/bts_trx_vty.c
@@ -738,8 +738,13 @@
net_dump_nmstate(vty, &trx->mo.nm_state);
if (print_rsl)
vty_out(vty, " RSL State: %s%s", trx->rsl_link_primary? "connected" : "disconnected", VTY_NEWLINE);
- vty_out(vty, " Baseband Transceiver NM State: ");
- net_dump_nmstate(vty, &trx->bb_transc.mo.nm_state);
+
+ /* The OM2000 -> 12.21 mapping we do doesn't have separate bb_transc MO */
+ if (!is_ericsson_bts(trx->bts)) {
+ vty_out(vty, " Baseband Transceiver NM State: ");
+ net_dump_nmstate(vty, &trx->bb_transc.mo.nm_state);
+ }
+
if (is_ipaccess_bts(trx->bts)) {
vty_out(vty, " ip.access stream ID: 0x%02x ", trx->rsl_tei_primary);
e1isl_dump_vty_tcp(vty, trx->rsl_link_primary);
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/28895
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I0f5501f6fbc7ce6d5457676b16c7f93f70db5763
Gerrit-Change-Number: 28895
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-MessageType: newchange
dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/28896 )
Change subject: abis_om2000: duplicate nmstate of bb_trxc mo to trx mo
......................................................................
abis_om2000: duplicate nmstate of bb_trxc mo to trx mo
In OM2000 a separate bb_trxc MO does not exist to archive better
compatibilty towards classic ABIS and its MOs lets mirror the nmstate of
the trx MO to the trxc_mo to make it look like if it were present.
Change-Id: I4611d8af16a30725308bd527098b12a356bfde9f
Related: OS#5634
---
M src/osmo-bsc/abis_om2000.c
1 file changed, 28 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/96/28896/1
diff --git a/src/osmo-bsc/abis_om2000.c b/src/osmo-bsc/abis_om2000.c
index 5026b5e..f61b684 100644
--- a/src/osmo-bsc/abis_om2000.c
+++ b/src/osmo-bsc/abis_om2000.c
@@ -51,11 +51,13 @@
static inline void abis_om2000_fsm_becomes_enabled(struct gsm_bts_trx *trx)
{
nm_obj_fsm_becomes_enabled_disabled(trx->bts, trx, NM_OC_RADIO_CARRIER, true);
+ nm_obj_fsm_becomes_enabled_disabled(trx->bts, &trx->bb_transc, NM_OC_BASEB_TRANSC, true);
}
static inline void abis_om2000_fsm_becomes_disabled(struct gsm_bts_trx *trx)
{
nm_obj_fsm_becomes_enabled_disabled(trx->bts, trx, NM_OC_RADIO_CARRIER, false);
+ nm_obj_fsm_becomes_enabled_disabled(trx->bts, &trx->bb_transc, NM_OC_BASEB_TRANSC, false);
}
/* FIXME: move to libosmocore */
@@ -876,6 +878,25 @@
return mo_buf;
}
+/* The OM2000 -> 12.21 mapping we do doesn't have separate bb_transc MO,
+ * for compatibility reasons we pretend to have it anyway and mirror the
+ * mo state of the TRXC on it. */
+static void duplicate_trxc_nm_state(struct gsm_bts *bts, const struct abis_om2k_mo *mo)
+{
+ struct gsm_bts_trx *trx;
+
+ if (mo->class != OM2K_MO_CLS_TRXC)
+ return;
+
+ trx = gsm_bts_trx_num(bts, mo->inst);
+ if (!trx)
+ return;
+
+ printf("dup!\n");
+ memcpy(&trx->bb_transc.mo.nm_state, &trx->mo.nm_state, sizeof(trx->bb_transc.mo.nm_state));
+
+}
+
/* resolve the gsm_nm_state data structure for a given MO */
static struct gsm_nm_state *mo2nm_state(struct gsm_bts *bts, const struct abis_om2k_mo *mo)
{
@@ -1008,6 +1029,7 @@
/* Update current state before emitting signal: */
nm_state->availability = nsd.new_state.availability;
+ duplicate_trxc_nm_state(bts, mo);
osmo_signal_dispatch(SS_NM, S_NM_STATECHG, &nsd);
}
@@ -1033,6 +1055,7 @@
}
nm_state->operational = new_state.operational;
+ duplicate_trxc_nm_state(bts, mo);
}
static int abis_om2k_sendmsg(struct gsm_bts *bts, struct msgb *msg)
@@ -2216,6 +2239,11 @@
/* See e1_config:bts_isdn_sign_link() / OS#4914 */
otfp->trx->mo.nm_state.administrative = NM_STATE_UNLOCKED;
+ /* The OM2000 -> 12.21 mapping we do doesn't have separate bb_transc MO,
+ * for compatibility reasons we pretend to have it anyway and mirror the
+ * mo state of the TRXC on it. */
+ otfp->trx->bb_transc.mo.nm_state.administrative = NM_STATE_UNLOCKED;
+
abis_om2000_fsm_becomes_enabled(otfp->trx);
if (fi->proc.parent)
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/28896
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I4611d8af16a30725308bd527098b12a356bfde9f
Gerrit-Change-Number: 28896
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-MessageType: newchange
Attention is currently required from: neels, laforge.
Hello Jenkins Builder, neels, laforge, pespin,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-bsc/+/28838
to look at the new patch set (#2).
Change subject: abis_om2000: fix missing signal
......................................................................
abis_om2000: fix missing signal
The normal abis nm FSMs are sending S_NM_RUNNING_CHG signals that
include an object class to notify other entities about state changes.
This also includes paging.c, which only starts paging services when it
sees NM_OC_RADIO_CARRIER becoming enabled.
Change-Id: I305df5b2f962473e33e32484c42a79ff96e53e1a
Fixes: I1b5b1a98115b4e9d821eb3330fc5b970a0e78a44
Related: OS#5634
---
M src/osmo-bsc/abis_om2000.c
1 file changed, 16 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/38/28838/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/28838
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I305df5b2f962473e33e32484c42a79ff96e53e1a
Gerrit-Change-Number: 28838
Gerrit-PatchSet: 2
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newpatchset