Skip to content
Snippets Groups Projects
  1. Mar 23, 2020
  2. Mar 20, 2020
    • Grzegorz Daniluk's avatar
      LPDC link stability fix - EP MDIO read race condition · f8febec6
      Grzegorz Daniluk authored
      Since driver reads periodically MDIO registers (timer function to check
      link state) and HAL reads periodically LPDC MDIO registers (through
      ioctl call) it happened once in a while that ioctl read operation would be
      interleaved with timer function. As a result HAL would get the value
      read from a different MDIO register than the one requested. This had
      caused occasional link restarts on LPDC ports.
      f8febec6
  3. Jan 22, 2020
  4. Jan 08, 2020
  5. Oct 11, 2019
  6. Jul 04, 2019
  7. Apr 10, 2019
    • baujc's avatar
      wr_clocksource: Fix bug with WR clock adjustment(ns) · 9e682679
      baujc authored and Adam Wujek's avatar Adam Wujek committed
      The previous fix didn't solved completelly this issue: Negative nano WR
      time adjustement generate a big jump of the monotonic clock used in
      PPSI.
      The current fix solves this issue.
      9e682679
    • baujc's avatar
      wr_clocksource: Fix bug due to clock adjustment · 55c9e91e
      baujc authored and Adam Wujek's avatar Adam Wujek committed
      The WR time adjustment was not taken into account in the driver. The
      side effect was a big jump sometime of the monotonic clock used in PPSI
      for the calculation of the timeouts. The side effect was that many
      timeouts were firing too early.
      The driver registration take now into account the adjustment and also
      the calculation of the offset in the read() call.
      55c9e91e
  8. Nov 20, 2018
  9. Sep 21, 2018
  10. Dec 15, 2016
  11. Dec 01, 2016
  12. Aug 11, 2016
  13. Jul 20, 2016
  14. Jul 07, 2016
  15. Apr 05, 2016
    • Tjeerd Pinkert's avatar
      kernel/wb-regs: Added address offsets to endpoint-mdio.h · 35a63cd9
      Tjeerd Pinkert authored and Adam Wujek's avatar Adam Wujek committed
      FIXME: I know that this is not the place to add these definitions
          they should be added/fixed in the .wb files.
      
      FIXME:
      - fixed #ifndef statement, the dash makes the compiler ignore the MDIO_WB
        part, which does not allow the file to be #included together with the
        endpoint-regs.h file. This should be done in the .wb file.
      
      FIXME:
      - added register address constants. This should be done in the .wb file
      
      Note: I have no idea how to do this, someone who knows could probably fix
          the issues raised here.
      35a63cd9
    • Tjeerd Pinkert's avatar
      kernel/wb-regs: fix alignment of line in Makefile · d314de17
      Tjeerd Pinkert authored and Adam Wujek's avatar Adam Wujek committed
      d314de17
  16. Feb 25, 2016
  17. Feb 24, 2016
  18. Jan 07, 2016
  19. Aug 24, 2015
    • Alessandro Rubini's avatar
      kernel/wr-nic: fix a memory leakage under heavy load · ce7eb8a2
      Alessandro Rubini authored and Adam Wujek's avatar Adam Wujek committed
      
      When the switch is loaded, some PTP outgoing frames get discarded, so we
      never get back the timestamp interrupt.  By round-robin'ing the slots,
      we get back to the "busy" one, which holds an skb structure that must be
      released.
      
      Without this freeing, the skb remains in the output queue of the
      socket, and after a while we get EAGAIN in send() because the buffer
      is full (400 frames, more or less). And the ptp port is stuck until we
      reopen the socket.
      
      This diagnosis exposed the fact that it's not an overflow of pending
      descriptors, so I change the message from
      
        descriptor overflow: tx timestamp pending
      
      to
      
        discarding tx frame that got no timestamp
      
      Finally, this is pr_warn, not pr_err as we now know it's expected.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      ce7eb8a2