- 22 Apr, 2019 1 commit
-
-
li hongming authored
separate PPS_out with time_valid. Disable transmitting packets when link is not up.
-
- 20 Nov, 2018 1 commit
-
-
li hongming authored
when the node connecting with the master port restarts, it won't be synced with CUTE-DP. The bug is introduced by the wrong ClockClass of the master port.
-
- 22 Jun, 2017 4 commits
-
-
Alessandro Rubini authored
This commit adds a tool to send out, through ethernet, a complete log of DAC values for the main oscillator. It allows to see if there are oscillations (and there currently are) and what happens when tracking is lost and recovered. To activate the feature * add CONFIG_DAC_LOG (depends on CONFIG_DEVELOPER) * activate on the console: "daclog <ipaddr> <macaddr>" * collect data on your target host netcat -u -l -p 1050 | od -An -t u2 -v -w2 --endian=big > daclog.txt * stop it when done, on the console: "daclog off" Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 27 Feb, 2017 1 commit
-
-
Dimitris Lampridis authored
-
- 23 Feb, 2017 1 commit
-
-
Adam Wujek authored
When any of exported structures is changed please update WRPC_SHMEM_VERSION or WRS_PPSI_SHMEM_VERSION (for PPSI) Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- 16 Feb, 2017 1 commit
-
-
Grzegorz Daniluk authored
This fixes OHWR issue 1320: softpll doesn't set Locked flag for the main channel
-
- 10 Jun, 2016 2 commits
-
-
Adam Wujek authored
These stats will be used by SNMP. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Use git config --get-all user.name as an build author, if not available use user@hostname. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- 06 Jun, 2016 1 commit
-
-
Adam Wujek authored
For other parties using the stats interface with the softpll we need the minimal file that can be easily used in other projects (like SNMP on the wr-switch). Move to the softpll_export.h: --struct spll_stats --defines of seq_state from softpll_ng.c (SEQ_* and AUX_*) --defines of align_state from spll_external.c (ALIGN_*) --defines of mode from softpll_ng.h (SPLL_MODE_*) Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- 18 May, 2016 1 commit
-
-
Alessandro Rubini authored
This is needed to build ppsi on the host with arch-wrpc, that I'm using to developer udp on ppsi::wrpc-sw Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 16 Feb, 2016 1 commit
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 20 Jan, 2016 12 commits
-
-
Alessandro Rubini authored
This removes TRACE_DEV(), turning it into pll_verbose() and wrc_verbose(). The functions are enabled and disabled by kconfig, with defaults matching the previous behaviour. So nothing changes, but the binary is smaller because the previous wrc_debug_printf() was silent because of a run-time conditional (though hardwired false at build time). The condional is now at build time. We save around 2k, between strings and calling code, in all wrc builds (nothing is saved in wrs, which is verbose by default, nor in devel_build_test_defconfig where all verbose options are on)). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> devel_build_test_defconfig: enable all verbose options Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
The makefile included trace.h for everyone, which in turns included wrc.h. It's better to include wrc.h straight on (we can't rely on all files including it, for example pp_printf does not). Meanwhile, some redundant includes are removed, and some are added (I prefer wrc.h to be explicitly listed in the files that use it, even if the command line set in Makefile already prepends it). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Pietro Fezzardi authored
-
Pietro Fezzardi authored
-
Pietro Fezzardi authored
-
Alessandro Rubini authored
If the Kconfig option is not set, there's no effect on code size. If set, .bss increases by 256 bytes (the buffer) and .text by another 200 bytes. This adds timestamping support, so we know the duration of the interrupt (because we found it's an important thing when problems occur). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
There was a hole at the beginning of the generated binary, so this commit includes some data to identify the endianness of the dump file and host pointers to the important structures that we dump. For wr-switch, the ppi pointer is just set to zero. The change is backward compatible, because we just fill 32 bytes of data where we had a bunch of zeroes. The next commit will use such information when available in the dump file. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> SQUASH Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This commit has no effect on the final binary file. The state structures for softpll_ng must be accessed by tools/wrpc-dump, so we need them in an header (not in sofpll_mg.c itself). Unfortunately, struct softpll_state includes a lot of other structures, so all dependent headers must be included by softpll_ng.h. Thus, all C files should now include softpll_ng.h alone, not the other ones. I also had to remove inclusion of unneeded <stdint.h> and <stdlib.h> from spll_common.h, because stdlib pulled the prototype for abs() which is #defined in ppsi (my bad!), and we would have a build error. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 04 Dec, 2015 2 commits
-
-
Grzegorz Daniluk authored
so that is works both on WRS and WRPC
-
Grzegorz Daniluk authored
Needed mainly for SPEC, where Spartan6 PLL does not report unlock when clk_in (10MHz) is unplugged. In addition to that, datasheet says that PLL should be reset after losing clk_in.
-
- 30 Oct, 2015 1 commit
-
-
Alessandro Rubini authored
This commit fixes all copyright notes, using "git blame" as a reference. For simple files I just added a 2-lines boilerplate about being WR and GPL. Some parts I left untouched: trivial-init and related files (unclear to me what this is, and pf-microcode.h is magic binary pfilter values). tools/lm32-etheruart: I don't know what this is and who the author is libsdbfs: this comes from another repo and I'd better not change it sfp_lib.h and hal_shmem.h: I lost track about the origin of this, among the several packages. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 01 Sep, 2015 1 commit
-
-
Grzegorz Daniluk authored
Reason: h_y was close to the DAC range, on some boards we were unable to lock HPLL. In addition to HPLL modifications, also the phase shifting had to be changed. When offset clock has lower frequency than the ref clock, shifting ref clock produces sampled clock which is shifted in another direction.
-
- 26 Jul, 2015 2 commits
-
-
Alessandro Rubini authored
This time I added -Wmissing-prototypes and fixed accordingly. Again, this used to be part of -Wall and I'm disgusted by it not being so any more. What does "all" mean, then? Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
I added -Wstrict-prototypes, that used to be included in -Wall settings but is not. Actually, I think it should be an error to not specify an argument list by now. If any, -traditional is there for old timers. Fortunately no bug was exposed by the missing prototypes. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 23 Jul, 2015 1 commit
-
-
Grzegorz Daniluk authored
Otherwise we have a race condition with wr_date setting initial time on the switch.
-
- 14 Jul, 2015 1 commit
-
-
Grzegorz Daniluk authored
-
- 30 Jun, 2015 1 commit
-
-
Adam Wujek authored
--increase spll_stats structure version to 2 --add to spll_stats structure: - commit_id - build_date - build_time - start_cnt (to be used later for start counter) --move declaration of spll_stats structure from wrs_main.c to revision.c --pass git version and author at compile time to revision.c --create revision.h with build_* externs --update version reporting at cpu start --update version command --include section .stats in section .data for node Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- 18 Nov, 2014 4 commits
-
-
Alessandro Rubini authored
If the host wants a consistent view (*if* it wants it), it can wait for the sequence number to be even, read the lot and then check it did not change. If it is odd, it means the structure is being modified. If it changed after reading it means a new modification started. Not my invention: it's old stuff, though smart. See sequential locks in the kernel for example. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Conflicts: arch/lm32/ram-wrs.ld
-
Alessandro Rubini authored
"char valid" in a structure of integer makes alignment problems (because we are accessing it from a different CPU we'd better not have holes). Also, there is no inherent consistency needed here, and this valid bit is racy anyways. We could solve it with a sequence number, if any, but let's avoid it altogether by now. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Grzegorz Daniluk authored
-
- 17 Nov, 2014 1 commit
-
-
Grzegorz Daniluk authored
-