1. 13 Nov, 2019 1 commit
  2. 28 Oct, 2019 1 commit
  3. 17 Oct, 2019 2 commits
  4. 04 Sep, 2019 3 commits
  5. 29 Aug, 2019 3 commits
    • Ioana Radulescu's avatar
      dpaa2-eth: Add pause frame support · 8eb3cef8
      Ioana Radulescu authored
      
      
      Starting with firmware version MC10.18.0, we have support for
      L2 flow control. Asymmetrical configuration (Rx or Tx only) is
      supported, but not pause frame autonegotioation.
      
      Pause frame configuration is done via ethtool. By default, we start
      with flow control enabled on both Rx and Tx. Changes are propagated
      to hardware through firmware commands, using two flags (PAUSE,
      ASYM_PAUSE) to specify Rx and Tx pause configuration, as follows:
      
      PAUSE | ASYM_PAUSE | Rx pause | Tx pause
      ----------------------------------------
        0   |     0      | disabled | disabled
        0   |     1      | disabled | enabled
        1   |     0      | enabled  | enabled
        1   |     1      | enabled  | disabled
      
      The hardware can automatically send pause frames when the number
      of buffers in the pool goes below a predefined threshold. Due to
      this, flow control is incompatible with Rx frame queue taildrop
      (both mechanisms target the case when processing of ingress
      frames can't keep up with the Rx rate; for large frames, the number
      of buffers in the pool may never get low enough to trigger pause
      frames as long as taildrop is enabled). So we set pause frame
      generation and Rx FQ taildrop as mutually exclusive.
      
      Signed-off-by: default avatarIoana Radulescu <ruxandra.radulescu@nxp.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      8eb3cef8
    • Ioana Radulescu's avatar
      dpaa2-eth: Use stored link settings · cce62943
      Ioana Radulescu authored
      
      
      Whenever a link state change occurs, we get notified and save
      the new link settings in the device's private data. In ethtool
      get_link_ksettings, use the stored state instead of interrogating
      the firmware each time.
      
      Signed-off-by: default avatarIoana Radulescu <ruxandra.radulescu@nxp.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      cce62943
    • Ioana Radulescu's avatar
      dpaa2-eth: Remove support for changing link settings · f7fe7e3d
      Ioana Radulescu authored
      
      
      We only support fixed-link for now, so there is no point in
      offering users the option to change link settings via ethtool.
      
      Functionally there is no change, since firmware prevents us from
      changing link parameters anyway.
      
      Signed-off-by: default avatarIoana Radulescu <ruxandra.radulescu@nxp.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f7fe7e3d
  6. 10 Aug, 2019 1 commit
  7. 15 Jun, 2019 2 commits
  8. 12 Jun, 2019 3 commits
  9. 10 Jun, 2019 2 commits
  10. 26 May, 2019 3 commits
  11. 23 May, 2019 1 commit
    • Ioana Radulescu's avatar
      Revert "dpaa2-eth: configure the cache stashing amount on a queue" · 16fa1cf1
      Ioana Radulescu authored
      This reverts commit f8b99585
      
      .
      
      The reverted change instructed the QMan hardware block to fetch
      RX frame annotation and beginning of frame data to cache before
      the core would read them.
      
      It turns out that in rare cases, it's possible that a QMan
      stashing transaction is delayed long enough such that, by the time
      it gets executed, the frame in question had already been dequeued
      by the core and software processing began on it. If the core
      manages to unmap the frame buffer _before_ the stashing transaction
      is executed, an SMMU exception will be raised.
      
      Unfortunately there is no easy way to work around this while keeping
      the performance advantages brought by QMan stashing, so disable
      it altogether.
      
      Signed-off-by: default avatarIoana Radulescu <ruxandra.radulescu@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      16fa1cf1
  12. 21 May, 2019 1 commit
  13. 17 Apr, 2019 4 commits
  14. 26 Mar, 2019 2 commits
  15. 20 Mar, 2019 1 commit
  16. 04 Mar, 2019 2 commits
  17. 26 Feb, 2019 1 commit
  18. 06 Feb, 2019 4 commits
  19. 23 Jan, 2019 1 commit
  20. 19 Jan, 2019 2 commits