]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: detect and log info about pre-recovery mode
authorPiotr Kwapulinski <piotr.kwapulinski@intel.com>
Wed, 27 May 2020 21:12:04 +0000 (14:12 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 26 Jun 2020 05:25:13 +0000 (22:25 -0700)
commit8edd3ae306fa597dd21991678c8e809e7e9eeefd
tree9ac07de6e8544696ef317aef32434c7515940021
parent200e0aae30844f26004b7ff40ad66f98022ec4de
i40e: detect and log info about pre-recovery mode

Detect and log information about pre-recovery mode when firmware
transitions to a recovery mode.
When a firmware transitions to a recovery mode it stores a number
of unexpected EMP resets in one of its registers. The number of EMP
resets ranging from 0x21 to 0x2A indicates that FW transitions
to recovery mode. Use these values to emit log entry about transition
process. Previously the pre-recovery mode may not have been detected
and there was no log entry when NIC was in pre-recovery mode.

Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/i40e/i40e_register.h