Attention is currently required from: osmith, fixeria.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27853 )
Change subject: pgw: Initial Gy support
......................................................................
Patch Set 2:
(1 comment)
File pgw/PGW_Tests.ttcn:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27853/comment/f21c71c9_7c6f…
PS2, Line 320: Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail,
> Why would it be important not to use log2str here?
Why would it be important to use log2str here?
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27853
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: I04cf78cb4bc73de59f803c01208a7ef9056cb14f
Gerrit-Change-Number: 27853
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 22 Apr 2022 09:05:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: osmith <osmith(a)sysmocom.de>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: fixeria, pespin.
osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27853 )
Change subject: pgw: Initial Gy support
......................................................................
Patch Set 2: Code-Review+1
(2 comments)
Commit Message:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27853/comment/204b0fc5_da14…
PS2, Line 9: Change-Id: I04cf78cb4bc73de59f803c01208a7ef9056cb14f
Related issue would be very useful for timesheet, I guess SYS#5276
File pgw/PGW_Tests.ttcn:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27853/comment/ba558b13_9e48…
PS2, Line 320: Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail,
> Let's keep setverdict() separate from f_shutdown(), so that there is no need to use log2str().
Why would it be important not to use log2str here?
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27853
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: I04cf78cb4bc73de59f803c01208a7ef9056cb14f
Gerrit-Change-Number: 27853
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 22 Apr 2022 09:03:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: osmith.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27853 )
Change subject: pgw: Initial Gy support
......................................................................
Patch Set 2:
(1 comment)
File pgw/PGW_Tests.ttcn:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27853/comment/b11b9a24_80c4…
PS2, Line 320: Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail,
I see no point in doing so. I think it's actually perfect to do it this way.
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27853
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: I04cf78cb4bc73de59f803c01208a7ef9056cb14f
Gerrit-Change-Number: 27853
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 22 Apr 2022 08:54:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: tnt.
tnt has removed a vote from this change. ( https://gerrit.osmocom.org/c/osmo-e1-hardware/+/27895 )
Change subject: icE1usb fw/gpsdo: Limit the fine tuning range
......................................................................
Removed Verified-1 by Jenkins Builder (1000002)
--
To view, visit https://gerrit.osmocom.org/c/osmo-e1-hardware/+/27895
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-e1-hardware
Gerrit-Branch: master
Gerrit-Change-Id: I2d9d348f5466f581b3d6d36c98847c47e2452f98
Gerrit-Change-Number: 27895
Gerrit-PatchSet: 1
Gerrit-Owner: tnt <tnt(a)246tNt.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Attention: tnt <tnt(a)246tNt.com>
Gerrit-MessageType: deleteVote
Attention is currently required from: tnt.
tnt has removed a vote from this change. ( https://gerrit.osmocom.org/c/osmo-e1-hardware/+/27892 )
Change subject: icE1usb fw/gpsdo: Never use invalid measurements to feed loop
......................................................................
Removed Verified-1 by Jenkins Builder (1000002)
--
To view, visit https://gerrit.osmocom.org/c/osmo-e1-hardware/+/27892
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-e1-hardware
Gerrit-Branch: master
Gerrit-Change-Id: I9c7b81c6e2e600ed49ac766fa33df23747dd339e
Gerrit-Change-Number: 27892
Gerrit-PatchSet: 1
Gerrit-Owner: tnt <tnt(a)246tNt.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Attention: tnt <tnt(a)246tNt.com>
Gerrit-MessageType: deleteVote
tnt has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1-hardware/+/27895 )
Change subject: icE1usb fw/gpsdo: Limit the fine tuning range
......................................................................
icE1usb fw/gpsdo: Limit the fine tuning range
Fine tuning has a limited tuning range. If at some point we
hit the limits, we need to bit the bullet and try to 'transfer'
some of that to the coarse range as best as we can. Hopefully
we get it close enough to limit disruption.
Note that this should really never happen because although it's
limited, the tuning range should be good enough to absorb any
reasonable temperature / aging variation once we have coarse tuned.
Signed-off-by: Sylvain Munaut <tnt(a)246tNt.com>
Change-Id: I2d9d348f5466f581b3d6d36c98847c47e2452f98
---
M firmware/ice40-riscv/icE1usb/gpsdo.c
1 file changed, 16 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-e1-hardware refs/changes/95/27895/1
diff --git a/firmware/ice40-riscv/icE1usb/gpsdo.c b/firmware/ice40-riscv/icE1usb/gpsdo.c
index 057490f..c1df4b0 100644
--- a/firmware/ice40-riscv/icE1usb/gpsdo.c
+++ b/firmware/ice40-riscv/icE1usb/gpsdo.c
@@ -240,8 +240,23 @@
g_gpsdo.fine.div = 0;
}
- /* Apply value with a bias from long term accumulator */
+ /* Compute value with a bias from long term accumulator */
tune = g_gpsdo.tune.fine - (g_gpsdo.fine.acc / 2);
+
+ /* If fine tune is getting close to boundary, do our
+ * best to transfer part of it to coarse tuning */
+ if ((g_gpsdo.tune.fine < 512) || (g_gpsdo.tune.fine > 3584))
+ {
+ int coarse_adj = ((int)g_gpsdo.tune.fine - 2048) >> 6;
+
+ g_gpsdo.tune.coarse += coarse_adj;
+ g_gpsdo.tune.fine -= coarse_adj << 6;
+ tune -= coarse_adj << 6;
+
+ pdm_set(PDM_CLK_HI, true, g_gpsdo.tune.coarse, false);
+ }
+
+ /* Apply fine */
pdm_set(PDM_CLK_LO, true, tune, false);
/* Debug */
--
To view, visit https://gerrit.osmocom.org/c/osmo-e1-hardware/+/27895
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-e1-hardware
Gerrit-Branch: master
Gerrit-Change-Id: I2d9d348f5466f581b3d6d36c98847c47e2452f98
Gerrit-Change-Number: 27895
Gerrit-PatchSet: 1
Gerrit-Owner: tnt <tnt(a)246tNt.com>
Gerrit-MessageType: newchange
tnt has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1-hardware/+/27894 )
Change subject: icE1usb fw/gpsdo: Attempt to recover from bad tuning
......................................................................
icE1usb fw/gpsdo: Attempt to recover from bad tuning
If we're in hold over mode and getting a bunch of invalid
frequency measurement despite a good fix, then we most likely
ended up on a bad tuning value and we need to recover by starting
from scratch.
Signed-off-by: Sylvain Munaut <tnt(a)246tNt.com>
Change-Id: If8503a3eaf695e02a0ef0a3b6536de985d247c20
---
M firmware/ice40-riscv/icE1usb/gpsdo.c
1 file changed, 17 insertions(+), 4 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-e1-hardware refs/changes/94/27894/1
diff --git a/firmware/ice40-riscv/icE1usb/gpsdo.c b/firmware/ice40-riscv/icE1usb/gpsdo.c
index c94a5ed..057490f 100644
--- a/firmware/ice40-riscv/icE1usb/gpsdo.c
+++ b/firmware/ice40-riscv/icE1usb/gpsdo.c
@@ -280,6 +280,7 @@
if (!gps_has_valid_fix()) {
/* No GPS fix, go to hold-over */
g_gpsdo.state = STATE_HOLD_OVER;
+ g_gpsdo.meas.invalid = 0;
return;
}
@@ -293,10 +294,22 @@
return;
}
} else {
- /* Count invalid measurements and if too many of
- * them, we go back to hold-over */
- if (++g_gpsdo.meas.invalid >= MAX_INVALID)
- g_gpsdo.state = STATE_HOLD_OVER;
+ /* Count invalid measurements */
+ if (++g_gpsdo.meas.invalid >= MAX_INVALID) {
+ if (g_gpsdo.state != STATE_HOLD_OVER) {
+ /* We go back to hold-over */
+ g_gpsdo.state = STATE_HOLD_OVER;
+ g_gpsdo.meas.invalid = 0;
+ } else {
+ /* We're in hold-over, with valid fix, and
+ * still get a bunch of invalid. Reset tuning */
+ g_gpsdo.tune.coarse = 2048;
+ g_gpsdo.tune.fine = 2048;
+
+ pdm_set(PDM_CLK_HI, true, g_gpsdo.tune.coarse, false);
+ pdm_set(PDM_CLK_LO, true, g_gpsdo.tune.fine, false);
+ }
+ }
/* In all cases, invalid measurements are not used */
return;
--
To view, visit https://gerrit.osmocom.org/c/osmo-e1-hardware/+/27894
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-e1-hardware
Gerrit-Branch: master
Gerrit-Change-Id: If8503a3eaf695e02a0ef0a3b6536de985d247c20
Gerrit-Change-Number: 27894
Gerrit-PatchSet: 1
Gerrit-Owner: tnt <tnt(a)246tNt.com>
Gerrit-MessageType: newchange