Software for White Rabbit PTP Core:5e844431bdfb09e91d70ecea3ee3e1e0e0e565f5 commitshttps://ohwr.org/project/wrpc-sw/commits/5e844431bdfb09e91d70ecea3ee3e1e0e0e565f52015-10-30T10:31:43Zhttps://ohwr.org/project/wrpc-sw/commit/5e844431bdfb09e91d70ecea3ee3e1e0e0e565f5general: add missing copyright notes.2015-10-30T10:31:43ZAlessandro Rubinirubini@gnudd.com
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: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/24b56306ef4a6fc203550e2e349338b52b416ab5trivial: remove two unused files2015-10-30T10:31:43ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/5eeb579d3e89a8893990438aeb1a49fbca4514e3dev/ad9516: output 62.5 system clock to SMC connector on the front panel2015-10-29T14:24:31ZGrzegorz Danilukgrzegorz.daniluk@cern.chhttps://ohwr.org/project/wrpc-sw/commit/943bfb7d7f3e7bab85902688672be20c4d1c5a50check-error: complain if mprintf is called2015-10-27T08:31:04ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/9d85b55f0aa1b63578aa520e91ebf9ffcf81d83ageneral: remove mprintf calls, use pp_printf2015-10-27T08:31:04ZAlessandro Rubinirubini@gnudd.com
We have not been using mprintf for ages now, and it's better for the
code to explicitly call pp_printf, so people is aware of it.
We might "#define printf pp_printf", but currently we'd better not.
Maybe when we turn this into a real operating system, next millennium...
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/2cb2a054ed1238aa525837826925de4158255ea9trivial: remove warnings in pfilter.c2015-10-27T08:31:04ZAlessandro Rubinirubini@gnudd.com
In this commit:
<a href="/project/wrpc-sw/commit/40b87d1c8552e35686730fc9f7e20df682ff3f10" data-original="40b87d1" data-link="false" data-link-reference="false" data-project="10762" data-commit="40b87d1c8552e35686730fc9f7e20df682ff3f10" data-reference-type="commit" data-container="body" data-placement="bottom" title="trivial: remove debug prints from pfilter" class="gfm gfm-commit has-tooltip">40b87d1c</a> trivial: remove debug prints from pfilter
I made an error. By defining pfilter_dbg to nothing the arguments remained,
a a parens-enclosed comma expression with no effects. This fixes the
mishap and the related compiler warnings.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/14cbd45a995076a0ca9e08e64db949f7517c756bdoc: documented new 'stat' behaviour2015-10-26T08:45:29ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/c724961948ee155d964266ce16249820299bfee7Merge branch 'stats-changes'2015-10-15T09:50:51ZAlessandro Rubinirubini@gnudd.comhttps://ohwr.org/project/wrpc-sw/commit/40b87d1c8552e35686730fc9f7e20df682ff3f10trivial: remove debug prints from pfilter2015-10-15T09:49:52ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/aa95124d481ff16eb98ba18ddd3aaf03076d3ae4gui: print a new status screen whenever the wr servo runs2015-10-15T09:49:52ZAlessandro Rubinirubini@gnudd.com
The gui is timely: it refreshes every that many seconds, but I'd
better see a change immediated when it happens. This commit
introduces monitoring of the wr-servo update count, so if anything
changed an information scree is dumped.
This is different from stats (two commits ago), because we want to
refresh timely in any case, so the user sees the thing is active.
You can verify the effect of the commit after "refresh 4": timely
refresh is now slower than servo updated and you'll see how gui
updates are synced with the ptp protocol.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/684fa5cda8d085316ffa26cafd427b9c3ea8cd5astat: always print one line when turning stats on2015-10-15T09:49:52ZAlessandro Rubinirubini@gnudd.com
With the new "only print if sth happens" way, sometimes stats is
just silent forever. This happens if we are master or if no slave
is active (well, and during initial setting up the wr link).
So now typing "stat" or "stat on" will turn on stats and print a line
of statistics, every time -- or the line "statistics now off".
This happens by changing the internal status of monitor_ppsi.c,
now exported to the cmd_stat.c.
This is the result on a master system:
wrc# stat
lnk:1 rx:0 tx:3 lock:1 sv:0 ss:'' aux:1 sec:5 [...]
wrc#
wrc#
wrc# stat
statistics now off
wrc#
wrc#
wrc# stat
lnk:1 rx:0 tx:11 lock:1 sv:0 ss:'' aux:1 sec:8 [...]
wrc#
wrc#
And this is what happens when we become slave:
wrc# mode slave
Locking PLL
wrc# ptp start
Slave Only, clock class set to 255
wrc# lnk:1 rx:57 tx:60 lock:1 sv:1 ss:'SYNC_SEC' aux:1 sec:49 [...]
lnk:1 rx:70 tx:64 lock:1 sv:1 ss:'SYNC_NSEC' aux:1 sec:1444901411 [...]
lnk:1 rx:77 tx:66 lock:1 sv:1 ss:'SYNC_PHASE' aux:1 sec:1444901414 [...]
lnk:1 rx:83 tx:68 lock:1 sv:1 ss:'WAIT_OFFSET_STABLE' aux:1 sec:1444901416 [...]
lnk:1 rx:87 tx:69 lock:1 sv:1 ss:'WAIT_OFFSET_STABLE' aux:1 sec:1444901417 [...]
lnk:1 rx:90 tx:70 lock:1 sv:1 ss:'TRACK_PHASE' aux:1 sec:1444901418 [...]
lnk:1 rx:94 tx:71 lock:1 sv:1 ss:'TRACK_PHASE' aux:1 sec:1444901419 [...]
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/a9114d225c8277408dc341879aab495a3580c1d9stat: only print statistics when something happened2015-10-15T09:49:52ZAlessandro Rubinirubini@gnudd.com
This change monitors the update_count of wr_servo, and only prints
a statistics line when something happens.
This means we won't have long "TRACK_PHASE" listings when the master
is dead. Moreover, we see changes when they happen, not at a random
time during the next second.
The bad side of the thing is that if nothing happens in the wr servo,
nothing is ever printed. But see next commit.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/67c9e10fc522fd0bccf018372c7c147e0a00c361cmd_stat: ack the user when turning off stat reporting2015-10-15T09:49:52ZAlessandro Rubinirubini@gnudd.com
If we are master (or slave with no master running) the next commit
makes stats completely silent (nothing happens: nothing printed).
A user typing "stat" won't know if it turned them on or off. So
turning on is now printed:
wrc# stat
wrc#
wrc#
wrc# stat
statistics now off
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/290fc745bbe8c9b71ca841a42229a4f8cc9302e8gui and stat: trivial: run immediately after command, not 1s later2015-10-15T09:49:52ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/3bc3b28a77063dbec22a639fb73b525d2221e0c9cmd_stat: run stat printing as a background process2015-10-15T09:49:52ZAlessandro Rubinirubini@gnudd.com
"stat" enables statistics, without interrupting shell interaction.
Thus, there is no "esc to terminate" any more.
Another "stat" command with turn stats off. As an alternative, "stat on"
and "stat off" is supported.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/d5054a3359ec146bd6ff61ad9289cf6007b0cfdctrivial: drop unused argument to wrc_log_stats2015-10-15T09:49:52ZAlessandro Rubinirubini@gnudd.com
The function was only called with "0" as argument. Drop it.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/a7f92ab10176f1b46c3a61ad10213f6e959814a5Revert "ppsi: pick new master and act accordingly"2015-10-15T08:30:42ZAlessandro Rubinirubini@gnudd.com
This reverts commit <a href="/project/wrpc-sw/commit/03062ea30b5fa5bcfb9ab9471ca85e4fadb83592" data-original="03062ea30b5fa5bcfb9ab9471ca85e4fadb83592" data-link="false" data-link-reference="false" data-project="10762" data-commit="03062ea30b5fa5bcfb9ab9471ca85e4fadb83592" data-reference-type="commit" data-container="body" data-placement="bottom" title="ppsi: pick new master and act accordingly" class="gfm gfm-commit has-tooltip">03062ea3</a>.
The patch is wrong, because it duplicates
<a href="/project/wrpc-sw/commit/9491e61b7e31f02a971205d2aa4dd679b3a604b8" data-original="9491e61" data-link="false" data-link-reference="false" data-project="10762" data-commit="9491e61b7e31f02a971205d2aa4dd679b3a604b8" data-reference-type="commit" data-container="body" data-placement="bottom" title="ppsi: pick new master and fix building accordingly" class="gfm gfm-commit has-tooltip">9491e61b</a> ppsi: pick new master and fix building accordingly
which does the "fixing" in a more elegant way. With both in history,
we now have
./ppsi/include/generated/autoconf.h:13:0: warning:
"CONFIG_VLAN_ARRAY_SIZE" redefined
generated/autoconf.h:14:0: note: this is the previous definition
Besides, the reverted commit was not even using new ppsi master (we
did it before this commit).
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/05aa8ac5f039aa1165c0aa965fc61c556f6fe9f3Merge commit '70b42d0d' (whose cod is already included)2015-10-13T11:31:10ZAlessandro Rubinirubini@gnudd.com
Commit <a href="/project/wrpc-sw/commit/70b42d0de16564fc4cfabcd72d5ed294451ca68f" data-original="70b42d0d" data-link="false" data-link-reference="false" data-project="10762" data-commit="70b42d0de16564fc4cfabcd72d5ed294451ca68f" data-reference-type="commit" data-container="body" data-placement="bottom" title="tools: change of fucntions declaration" class="gfm gfm-commit has-tooltip">70b42d0d</a> is currently proposed_master, so by our agreements with
GSI we can't remove it from history. The change itself is already
in master (but with typos fixed in the commit message). So let's
pin the commit by merging, even if it will appear twice in the history.https://ohwr.org/project/wrpc-sw/commit/49d5fe999d257d679d0437ae4cf96b2b8aba65b6Merge branch 'pfilter-cleanup'2015-10-13T11:23:25ZAlessandro Rubinirubini@gnudd.comhttps://ohwr.org/project/wrpc-sw/commit/808ffdd2159004ccaa13318df5c6bf39b2cd1bbdpfilter: trivial: apply bits from be2bd234 (cleanup of prototypes)2015-10-13T11:21:41ZAlessandro Rubinirubini@gnudd.com
This just adds "void" in prototypes. I did the pfilter on a different
branch, and lost these changes of commit <a href="/project/wrpc-sw/commit/be2bd2343b0266fd557a085f86f89b0a62d5d22f" data-original="be2bd234" data-link="false" data-link-reference="false" data-project="10762" data-commit="be2bd2343b0266fd557a085f86f89b0a62d5d22f" data-reference-type="commit" data-container="body" data-placement="bottom" title="general cleanup of wrong prototypes" class="gfm gfm-commit has-tooltip">be2bd234</a> wyhile moving pfilter
generation to tools/
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/f60f33c5fd0520b13aecafd8fef431f2c1bdc8e5dev/ep_pfilter: use the rules that we pass at build-time2015-10-13T11:20:18ZAlessandro Rubinirubini@gnudd.com
Use the rules from the array we are passed in the object file.
We'll use the feature when enabling vlans: at that point we'll have
two sets to choose from, according to run-time configuration.
Using the build-time configuration avoids the hairy ifdef and saves
almost 1kB of binary size.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/05d62aea85ff153cb8fdb9d40ee9ff9458d51e51tools/pfilter-builder: removed debug prints, errors to stderr2015-10-13T08:57:17ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/d52fdb877f52ba79ebbf9da718d6ca9dce18187btools/pfilter-builder: completed2015-10-13T08:57:17ZAlessandro Rubinirubini@gnudd.com
This changes pfilter-builder.c so it really build in user space, but removing
register setting and creating output files instead.
Running this program creates 3 files, that correspond to the previous
three #ifdef conditions. The files are:
rules-plain.bin this is used for the no-etherbone configuration
rules-ebone.bin etherbone setup
rules-e+nic.bin etherbon plus 7solution's wr-nic packet filter
The files begin with a magix 0x11223344 word, that allows the soft-core
to fix any endianness difference (so no hairy mishaps are expected when
switching to a different soft-core). Then the 40-bit command words are
saved as 64-bit vaules, LSB-first. The output file is thus an odd number
of words and no 64-bit alignment is required.
The first three instructions of the packet filter are used to compare
the destination mac address of the frame. We now use a fake mac address,
and the LM32 code will change it while programming the binary.
Please look at this commit while ignoring white-space, as it changes
indentation while turning #ifdef/#else into if()/else .
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/c993089297ca96460fab751c2223882257127620tools/pfilter-builder.c: currently a copy of ep_pfilter.c2015-10-13T08:56:02ZAlessandro Rubinirubini@gnudd.com
We are going to have a user-space tool to build the packet filter
images. The first step is copying dev/ep_pfilter.c, so we can
"git diff" the changes. At this point the file is not
even built.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/76d2f062b711e324c9d0af37217ddc00badc48c4tools: trivial: remove an ancient warning2015-10-13T08:56:02ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/c130bf6dec1c56a84bd67b2917f298ef8351ab39Makefile: simplify two rules2015-10-13T08:56:02ZAlessandro Rubinirubini@gnudd.com
Simplify access to $CONFIG_RAMSIZE. Actually, the previous way
was not working for me, as my $SHELL is not bash.
The bug is uncovered by the next commit, because the "-s" argument
to genramvhd has always been wrong for me, but I didn't notice
(so maybe the "-s" argument has no effect? I can't tell at this point)
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/ae39d3385839a31c73836fad4732e9915fc07035pfilter: trivial: change comparison order2015-10-13T08:56:02ZAlessandro Rubinirubini@gnudd.com
If we compare for the local MAC first, it's easier to patch
the mac address at run time.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/54eb22f75b793a513a6bd7fdec281758deb42dbfpfilter: add documentation about the final routing2015-10-13T08:56:01ZAlessandro Rubinirubini@gnudd.com
We now explain how the class bits are used after the pfilter is over.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>
Acked-by: <span data-trailer="Acked-by:" data-user="9300"><a href="https://ohwr.org/greg.d" title="grzegorz.daniluk@cern.ch"><img alt="Grzegorz Daniluk's avatar" src="https://secure.gravatar.com/avatar/50dbd6318323ed7f70cc74578bdeca81?s=32&d=identicon" class="avatar s16 avatar-inline" title="Grzegorz Daniluk"></a><a href="https://ohwr.org/greg.d" title="grzegorz.daniluk@cern.ch">Grzegorz Daniluk</a> <<a href="mailto:grzegorz.daniluk@cern.ch" title="grzegorz.daniluk@cern.ch">grzegorz.daniluk@cern.ch</a>></span>https://ohwr.org/project/wrpc-sw/commit/e82ea89d003824fa84dd3ba1a1b703d3be829482pfilter: remove assignment to registers2015-10-13T08:56:01ZAlessandro Rubinirubini@gnudd.com
There is no need to assign register names to numbers explicitly,
because there's always the risk to make errors.
This also adds a build-time check for any overflow of the 22 registers:
if we allocate more than 22, it won't build.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/8c2638e0b4410dc2efe01daa494009df2eb4e2a5pfilter: comment-only changes2015-10-13T08:56:01ZAlessandro Rubinirubini@gnudd.com
This removes the register numbers from comments, and rewords
comments in general to match the fact that registers are now named.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/8dd136241c881fcb99a18109102a815a87689514pfilter: avoid reusing registers, allocate two new ones2015-10-13T08:56:01ZAlessandro Rubinirubini@gnudd.com
The current code was reusing R10 and R11 for a different role.
However, we have several free registers, so this allocates two new
more, by giving them a meaningful name.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/5500bfaa5370e255198c597ead3103b384a11612pfilter: use R_TMP, not R12 or R20, for temporary storage2015-10-13T08:56:01ZAlessandro Rubinirubini@gnudd.com
Uses of R20 and R12 are temporaries, and very local. Thus,
we can reuse R14, already blessed R_TMP.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/8bfd46c23762909553b359fd9a2f2c6b4dab511apfilter: don't reuse R6 for a different role2015-10-13T08:56:01ZAlessandro Rubinirubini@gnudd.com
The existing code used R6 both for ARP and for ETHERBONE. Allocate a
new register, since we have plenty. This clarifies the code (by using
proper symbolic name) but changes the generated binaries.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/15bd1e3dc28e7c296e9d2b22aabc95f5c9a40670pfilter: name registers in a symbolic way2015-10-13T08:56:01ZAlessandro Rubinirubini@gnudd.com
This commit is not changing the generated code at all (the
bits generated are exactly the same as in the previous commit),
in all three cases of #ifdef.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/300a09f591e1fcbc676cd2ae911348db8d95df18pfilter: name registers, don't use numbers2015-10-13T08:56:01ZAlessandro Rubinirubini@gnudd.com
By naming registers the code is much more readable in my opinion.
And we avoid, in future modifications, to mistake a frame offset for
a register.
The enumeration of names starts from 1024 to deny use of simple
numbers. Also, the enumeration is verified to be exactly 32 names,
by raising a build error if not.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/f77d8824d8130840c22a6dd50283c7cddb65292ftrivial: print the filter table in hex2015-10-13T08:56:01ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/92fc54a4c970e2f5ea1d672ef5a470d17d1dee17trivial: pfilter: remove trailing blanks2015-10-13T08:56:01ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/03062ea30b5fa5bcfb9ab9471ca85e4fadb83592ppsi: pick new master and act accordingly2015-10-13T08:56:01ZAlessandro Rubinirubini@gnudd.com
"act accordingly" means pre-including ppsi/...autoconf.h within
CFLAGS, or we miss CONFIG_MAX_VLANS_PER_PORT, used in defining the
ppsi local data structure.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/f159dff2a2e63d70d797e8003edf17185a046bc3tools: trivial: change of function declarations2015-10-13T08:56:01ZC.Pradosc.prados@gsi.dehttps://ohwr.org/project/wrpc-sw/commit/fc7febc7fc6fb0ee9ffd86a4b8838f7eadcd630fppsi: new master, with fixed UDP for wrs2015-10-13T08:55:37ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>