1. 02 Mar, 2019 37 commits
  2. 01 Mar, 2019 3 commits
    • David S. Miller's avatar
      Merge branch 'nfp-control-processor-DMA-support-and-RJ45' · 699be715
      David S. Miller authored
      Jakub Kicinski says:
      
      ====================
      nfp: control processor DMA support and RJ45
      
      This series starts with adding support for reporting twisted pair
      media type in ethtool.
      
      Remaining patches add support for using DMA with the control/service
      processor.  Currently we always copy the command data into card's
      memory.  DMA support allows us to have the NSP read the data from
      host memory by itself.  Unfortunately, the FW loading and flashing
      cannot directly map the buffers for DMA because (a) the firmware
      ABI returns const buffers, and (b) the buffers may be vmalloc()ed
      in many mysterious/unmappable way.  So just bite the bullet -
      allocate new host buffer for the command and copy.
      
      As Dirk explains, the NSP now supports updating all FWs at once
      which means the max flashing time grew significantly.  He bumps
      the max wait to avoid timeouts.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      699be715
    • Dirk van der Merwe's avatar
      nfp: nsp: set higher timeout for flash bundle · 35697764
      Dirk van der Merwe authored
      The management firmware now supports being passed a bundle with
      multiple components to be stored in flash at once. This makes it
      easier to update all components to a known state with a single
      user command, however, this also has the potential to increase
      the time required to perform the update significantly.
      
      The management firmware only updates the components out of a bundle
      which are outdated, however, we need to make sure we can handle
      the absolute worst case where a CPLD update can take a long time
      to perform.
      
      We set a very conservative total timeout of 900s which already
      adds a contingency.
      Signed-off-by: default avatarDirk van der Merwe <dirk.vandermerwe@netronome.com>
      Reviewed-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      35697764
    • Jakub Kicinski's avatar
      nfp: nsp: allow the use of DMA buffer · 34541513
      Jakub Kicinski authored
      Newer versions of NSP can access host memory.  Simplest access
      type requires all data to be in one contiguous area.  Since we
      don't have the guarantee on where callers of the NSP ABI will
      allocate their buffers we allocate a bounce buffer and copy
      the data in and out.
      Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
      Reviewed-by: default avatarDirk van der Merwe <dirk.vandermerwe@netronome.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      34541513