1. 28 Jul, 2017 2 commits
    • Jakub Kicinski's avatar
      nfp: look for firmware image by device serial number and PCI name · 9511f298
      Jakub Kicinski authored
      We generally look up firmware by card type, but that doesn't allow
      users who have more than one card of the same type in their system
      to select firmware per adapter.
      
      Unfortunately user space firmware helper seems fraught with
      difficulties and to be on its way out.  In particular support for
      handling firmware uevents have been dropped from systemd and most
      distributions don't enable the FW fallback by default any more.
      
      To allow users selecting firmware for a particular device look up
      firmware names by serial and pci_name().  Use the direct lookup to
      disable generating uevents when enabled in Kconfig and not print
      any warnings to logs if adapter-specific files are missing.  Users
      can place in /lib/firmware/netronome files named:
      
      pci-${pci_name}.nffw
      serial-${serial}.nffw
      
      to target a specific card.  E.g.:
      
      pci-0000:04:00.0.nffw
      pci-0000:82:00.0.nffw
      serial-00-aa-bb-11-22-33-10-ff.nffw
      
      We use the full serial number including the interface id, as it
      appears in lspci output (bytes separated by '-').
      Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9511f298
    • Jakub Kicinski's avatar
      nfp: remove the probe deferral when FW not present · 26a8985f
      Jakub Kicinski authored
      We use a hack to defer probe when firmware was not pre-loaded
      or found on disk.  This helps in case users forgot to include
      firmware in initramfs, the driver will most likely get another
      shot at probing after real root is mounted.
      
      This is not for what EPROBE_DEFER is supposed to be used, and
      when FW is completely missing every time new device is probed
      NFP will reprobe spamming kernel logs.
      
      Remove this hack, users will now have to make sure the right
      firmware image is present in initramfs if nfp.ko is placed
      there or built in.
      Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      26a8985f
  2. 27 Jul, 2017 8 commits
  3. 26 Jul, 2017 19 commits
  4. 25 Jul, 2017 11 commits