• Yotam Gigi's avatar
    Add the mlxfw module for Mellanox firmware flash process · 410ed13c
    Yotam Gigi authored
    The mlxfw module is in charge of common logic needed to flash Mellanox
    devices firmware, which consists of:
     - Parse the Mellanox Firmware Archive version 2 (MFA2) format, which is
       the format used to store the Mellanox firmware. The MFA2 format file can
       hold firmware for many different silicon variants, differentiated by a
       unique ID called PSID. In addition, the MFA2 file data section is
       compressed using xz compression to save both file-system space and
       memory at extraction time.
     - Implement the firmware flash state machine logic, which is a common
       logic for Mellanox products needed to flash the firmware to the device.
    
    As the module is shared between different Mellanox products, it defines a
    set of callbacks to be implemented by the specific driver for hardware
    interaction.
    Signed-off-by: default avatarYotam Gigi <yotamg@mellanox.com>
    Reviewed-by: default avatarIdo Schimmel <idosch@mellanox.com>
    Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    410ed13c
mlxfw_mfa2.c 18 KB