[L] Change in osmo-e1d[master]: dahdi_trunkdev: add SD-RI-PLL software clock recovery
Attention is currently required from: Hoernchen, ale-leehrtz, laforge, tnt. Hello Hoernchen, Jenkins Builder, laforge, tnt, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/c/osmo-e1d/+/44232?usp=email to look at the new patch set (#2). The following approvals got outdated and were removed: Verified-1 by Jenkins Builder Change subject: dahdi_trunkdev: add SD-RI-PLL software clock recovery ...................................................................... dahdi_trunkdev: add SD-RI-PLL software clock recovery Without a hardware clock source, the DAHDI coretimer that paces a trunkdev runs from the host clock, which is not the clock of the remote E1 that paces the incoming E1-over-IP stream, so the IP->E1 FIFO slowly drains or overflows. Close that loop in software: once per second, read the IP->E1 FIFO level of line 0, run the PID controller, and steer the coretimer via the new DAHDI_SW_CLOCK_SET ioctl of the osmocom DAHDI fork. The ioctl is defined locally if the DAHDI headers lack it; on a kernel without support the PLL disables itself with an error message. As the trunkdev span is the timing master in this setup, the dahdi_trunkdev module must be loaded with permit_clock_master=1. The PLL is off by default. New VTY commands on 'interface N dahdi-trunkdev': pll mode (off|fixed|self-tuning) pll pid-gains KP KI KD pll target-fifo <1-1792> pll self-tuning hold-time <0-31536000> pll self-tuning window <600-86400> pll log-file FILENAME / no pll log-file In self-tuning mode, the configured gains are used for at least the hold-time while the link is characterized; once the tuner has its first estimate (about 10 valid estimation windows, 1 h each by default), the self-tuned gains are applied bumplessly and updated after every window. A watchdog reverts to the configured gains if the loop runs away. The optional log file gets one CSV line per tick for offline analysis. 'show interface' shows the FIFO levels and the PLL state. Related: OS#7116 Change-Id: I20e0d62275c8422e3b272630dc52cebd80b66a15 --- M src/Makefile.am A src/dahdi_plltrunkdev.h M src/dahdi_trunkdev.c M src/e1d.h M src/vty.c 5 files changed, 612 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-e1d refs/changes/32/44232/2 -- To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/44232?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newpatchset Gerrit-Project: osmo-e1d Gerrit-Branch: master Gerrit-Change-Id: I20e0d62275c8422e3b272630dc52cebd80b66a15 Gerrit-Change-Number: 44232 Gerrit-PatchSet: 2 Gerrit-Owner: ale-leehrtz <alejandra.carreon@ale-leehrtz.org> Gerrit-Reviewer: Hoernchen <ewild@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge@osmocom.org> Gerrit-Reviewer: tnt <tnt@246tNt.com> Gerrit-Attention: ale-leehrtz <alejandra.carreon@ale-leehrtz.org> Gerrit-Attention: tnt <tnt@246tNt.com> Gerrit-Attention: laforge <laforge@osmocom.org> Gerrit-Attention: Hoernchen <ewild@sysmocom.de>
participants (1)
-
ale-leehrtz