1. 05 Jul, 2019 37 commits
  2. 04 Jul, 2019 3 commits
    • Shay Agroskin's avatar
      net/mlx5: Added devlink info callback · 8338d937
      Shay Agroskin authored
      The callback is invoked using 'devlink dev info <pci>' command and returns
      the running and pending firmware version of the HCA and the name of the
      kernel driver.
      
      If there is a pending firmware version (a new version is burned but the
      HCA still runs with the previous) it is returned as the stored
      firmware version. Otherwise, the running version is returned for this
      field.
      
      Output example:
      $ devlink dev info pci/0000:00:06.0
      pci/0000:00:06.0:
        driver mlx5_core
        versions:
            fixed:
              fw.psid MT_0000000009
            running:
              fw.version 16.26.0100
            stored:
              fw.version 16.26.0100
      Signed-off-by: default avatarShay Agroskin <shayag@mellanox.com>
      Reviewed-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
      Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      8338d937
    • Shay Agroskin's avatar
      net/mlx5: Added fw version query command · 9c86b07e
      Shay Agroskin authored
      Using the MCQI and MCQS registers, we query the running and pending
      fw version of the HCA.
      The MCQS is queried with sequentially increasing component index, until
      a component of type BOOT_IMG is found. Querying this component's version
      using the MCQI register yields the running and pending fw version of the
      HCA.
      
      Querying MCQI for the pending fw version should be done only after
      validating that such fw version exists. This is done my checking
      'component update state' field in MCQS output.
      Signed-off-by: default avatarShay Agroskin <shayag@mellanox.com>
      Reviewed-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
      Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      9c86b07e
    • Saeed Mahameed's avatar
      Merge branch 'mlx5-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux · e08a976a
      Saeed Mahameed authored
      Misc updates from mlx5-next branch:
      
      1) Add the required HW definitions and structures for upcoming TLS
         support.
      2) Add support for MCQI and MCQS hardware registers for fw version query.
      3) Added hardware bits and structures definitions for sub-functions
      4) Small code cleanup and improvement for PF pci driver.
      5) Bluefield (ECPF) updates and refactoring for better E-Switch
         management on ECPF embedded CPU NIC:
         5.1) Consolidate querying eswitch number of VFs
         5.2) Register event handler at the correct E-Switch init stage
         5.3) Setup PF's inline mode and vlan pop when the ECPF is the
              E-Swtich manager ( the host PF is basically a VF ).
         5.4) Handle Vport UC address changes in switchdev mode.
      
      6) Cleanup the rep and netdev reference when unloading IB rep.
      Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      
      i# All conflicts fixed but you are still merging.
      e08a976a