1. 15 May, 2013 1 commit
  2. 09 May, 2013 1 commit
  3. 08 May, 2013 3 commits
  4. 03 May, 2013 1 commit
  5. 23 Apr, 2013 6 commits
  6. 08 Apr, 2013 1 commit
  7. 02 Apr, 2013 2 commits
  8. 21 Mar, 2013 6 commits
  9. 20 Mar, 2013 3 commits
    • Alessandro Rubini's avatar
      arch-wrpc: update wrc_ptp_ppsi.c · 59eb85c3
      Alessandro Rubini authored
      This new file needs some updates over what we imported from wrpc-sw,
      because we now have pp_globals (in preparation for multi-link, thanks
      Aurelio).
      
      The commit also makes a little order in the inclusions of this file,
      removing unneeded stuff and grouping hardware-related headers.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      59eb85c3
    • Alessandro Rubini's avatar
      arch-wrpc: add material to wrpc.h · de98570d
      Alessandro Rubini authored
      These few lines are a copy of "wrc_ptp.h" as found in ptp-noposix.
      They are added here because they are the prototypes of now-local
      functions, and little more.
      
      Including the file from wrpc-sw would have required another -I
      directory, and I'd better not.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      de98570d
    • Alessandro Rubini's avatar
      arch-wrpc: wrc_ptp_ppsi.c copied from wrpc-sw · 66b59234
      Alessandro Rubini authored
      This file comes from commit e00d99f of wrpc-sw.  It used to live there
      as an alternative to wrc_ptp_noposix.c, as a top-level entry point to
      the ptp engine.
      
      However, ppsi is quite a moving target these months, and most
      improvements in modularity of ppsi require a change in the top-level
      file (like we change the main and startup files in the other
      architectures).
      
      Thus, this commit brings the file into ppsi (and wrpc-sw will remove
      it when using this version of ppsi as submodule) so we can be work
      on this repository and build-test everything with no effort, saving us
      from always committing to wrpc-sw as well.
      
      Note: this commit copies the file unchanged, and doesn't even try to
      build it; later commits make the required adjustments to finally build
      it.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      Acked-by: Aurelio Colosimo's avatarAurelio Colosimo <aurelio@aureliocolosimo.it>
      66b59234
  10. 14 Mar, 2013 1 commit
    • Alessandro Rubini's avatar
      arch-bare-* and lib-bare: network functions now dump if level is 2 · a433089e
      Alessandro Rubini authored
      Like what I did in two commits ago, now if debug level for "frames" is
      2 or more, net_ops->send and net_ops->recv now dump the data to
      stdout. The format is the same of tools/ptpdump, but the time is
      not showing the local time, as we miss localtime() and I don't want
      to waste time recoding it.
      
      This is an example of a bare-i386 slave requesting its master:
      
        send: TIME: (1363278286 - 0x5141f9ce) 1363278286.52969000
        send: ETH: 88f7 (00:25:11:86:1f:d2 -> 01:1b:19:00:00:00)
        send: VERSION: 2 (type 1, len 44, domain 0)
        send: FLAGS: 0x0002 (correction 0x00000000)
        send: PORT: 00-25-11-ff-fe-86-1f-d2-00-01
        send: REST: seq 2, ctrl 1, log-interval 127
        send: MESSAGE: (E) DELAY_REQ
        send: MSG-DELAY_REQ: 1363278286.052689000
        send: DUMP: payload (size 44)
        send: DUMP: 81 02 00 2c  00 00 02 00  00 00 00 00  00 00 00 00
        send: DUMP: 00 00 00 00  00 25 11 ff  fe 86 1f d2  00 01 00 02
        send: DUMP: 01 7f 00 00  51 41 f9 ce  03 23 f8 68
        diag-frames-1-eth0: SENT 44 bytes at 1363278286.052969000 (delay_req)
      
      This is a bare-i386 master receiving the same frame:
      
        recv: TIME: (1363278286 - 0x5141f9ce) 1363278286.92899000
        recv: ETH: 88f7 (00:25:11:86:1f:d2 -> 01:1b:19:00:00:00)
        recv: VERSION: 2 (type 1, len 44, domain 0)
        recv: FLAGS: 0x0002 (correction 0x00000000)
        recv: PORT: 00-25-11-ff-fe-86-1f-d2-00-01
        recv: REST: seq 2, ctrl 1, log-interval 127
        recv: MESSAGE: (E) DELAY_REQ
        recv: MSG-DELAY_REQ: 1363278286.052689000
        recv: TLV: too short (46 - 44 = 2)
        recv: DUMP: payload (size 46)
        recv: DUMP: 81 02 00 2c  00 00 02 00  00 00 00 00  00 00 00 00
        recv: DUMP: 00 00 00 00  00 25 11 ff  fe 86 1f d2  00 01 00 02
        recv: DUMP: 01 7f 00 00  51 41 f9 ce  03 23 f8 68  00 00
        diag-frames-1-eth0: RECV 46 bytes at 1363278286.092899000 (type 1)
      
      And this is tools/ptprump running on the master, for the same frame:
      
        TIME: (1363278286 - 0x5141f9ce) 17:24:46.092814
        ETH: 88f7 (00:25:11:86:1f:d2 -> 01:1b:19:00:00:00)
        VERSION: 2 (type 1, len 44, domain 0)
        FLAGS: 0x0002 (correction 0x00000000)
        PORT: 00-25-11-ff-fe-86-1f-d2-00-01
        REST: seq 2, ctrl 1, log-interval 127
        MESSAGE: (E) DELAY_REQ
        MSG-DELAY_REQ: 1363278286.052689000
        TLV: too short (46 - 44 = 2)
        DUMP: payload (size 46)
        DUMP: 81 02 00 2c  00 00 02 00  00 00 00 00  00 00 00 00
        DUMP: 00 00 00 00  00 25 11 ff  fe 86 1f d2  00 01 00 02
        DUMP: 01 7f 00 00  51 41 f9 ce  03 23 f8 68  00 00
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      a433089e
  11. 08 Mar, 2013 1 commit
  12. 07 Mar, 2013 2 commits
  13. 05 Mar, 2013 1 commit
  14. 04 Mar, 2013 5 commits
  15. 02 Mar, 2013 3 commits
    • Alessandro Rubini's avatar
      timeout: now calc_timeout() is part of the time_ops · afa607df
      Alessandro Rubini authored
      By moving calc_timeout into the time functions, we simplify
      the split-out of ./time-<arch> as a separate subdirectory.
      
      As a side effect, calc_timeout disappears from arch-wrpc, and
      wrpc-sw needs to be adapted to this commit, to provide it
      inside its own time_ops.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      afa607df
    • Alessandro Rubini's avatar
      arch-wrpc: removed crt0 and leftover pieces · f42935ff
      Alessandro Rubini authored
      We are not even trying to build the complete executable here, so
      remove crt0.S and any references to it.
      
      I forgot these pieces in commit
         arch-spec: removed unused source files
      which happened 101 commits ago.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      f42935ff
    • Alessandro Rubini's avatar
      kill timer: implement timeout · 4b07d444
      Alessandro Rubini authored
      The timer implementatin was incredibly complex.  Now there is no such
      thing as a timer in ptp. We only have timeouts.
      
      A timeout is a point in time. We calculate; we can be earlier; we
      can be later. The only thing which is arch-specific is calculating.
      
      This replaces every "timer" operation with the equivalent "timeout"
      one. All stuff is renamed to avoid confusion between "time" and
      "timer".
      
      Unfortunately, the resulting program as of this commit is not working.
      the pdelay_request timeout happens continuously, I'm sure I've exposed
      a latent bug, which I'm now going to fix.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      4b07d444
  16. 28 Feb, 2013 1 commit
    • Alessandro Rubini's avatar
      WR: remove used fields in TimeInternal · e441b48b
      Alessandro Rubini authored
      The three "raw" fields claim to exist for debugging, but since we
      have several TimeInternal structures around they cost quite some space.
      The fields were only copied to TimeInternal from network frames,
      and there is not explicit code to dump them.
      
      Thus, this commit removes them but leaves the code in place, so it can
      be re-enabled if the need arises. (I use the ugly "#if 0").
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      e441b48b
  17. 27 Feb, 2013 2 commits