• Gavin Li's avatar
    net/mlx5: Increase FW pre-init timeout for health recovery · 37ca95e6
    Gavin Li authored
    Currently, health recovery will reload driver to recover it from fatal
    errors. During the driver's load process, it would wait for FW to set the
    pre-init bit for up to 120 seconds, beyond this threshold it would abort
    the load process. In some cases, such as a FW upgrade on the DPU, this
    timeout period is insufficient, and the user has no way to recover the
    host device.
    
    To solve this issue, introduce a new FW pre-init timeout for health
    recovery, which is set to 2 hours.
    
    The timeout for devlink reload and probe will use the original one because
    they are user triggered flows, and therefore should not have a
    significantly long timeout, during which the user command would hang.
    Signed-off-by: default avatarGavin Li <gavinl@nvidia.com>
    Reviewed-by: default avatarMoshe Shemesh <moshe@nvidia.com>
    Reviewed-by: default avatarShay Drory <shayd@nvidia.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
    37ca95e6
tout.h 1.23 KB