mbox series

[0/3] Gracefully handle FW faults during HBA initialization

Message ID 20210518051625.1596742-1-suganath-prabu.subramani@broadcom.com
Headers show
Series Gracefully handle FW faults during HBA initialization | expand

Message

Suganath Prabu S May 18, 2021, 5:16 a.m. UTC
During IOC initialization driver may observe some firmware faults.
Currently the driver is not handling the firmware faults gracefully,
most of the time the driver is terminating the IOC initialization
without trying to recover the IOC from the fault. Instead of terminating
the IOC initialization, driver has to try to recover the IOC at least
for one time before terminating the IOC initialization.

Suganath Prabu S (3):
  mpt3sas: Fix deadlock while cancelling the running FW  event
  mpt3sas: Handle FW faults during first half of IOC  init
  mpt3sas: Handle FWfault while second half of IOC Init

 drivers/scsi/mpt3sas/mpt3sas_base.c   | 261 ++++++++++++++++++--------
 drivers/scsi/mpt3sas/mpt3sas_base.h   |   8 +
 drivers/scsi/mpt3sas/mpt3sas_config.c |  18 +-
 drivers/scsi/mpt3sas/mpt3sas_scsih.c  | 174 +++++++++++++++--
 4 files changed, 368 insertions(+), 93 deletions(-)

Comments

Martin K. Petersen May 26, 2021, 3:39 a.m. UTC | #1
Suganath,

> During IOC initialization driver may observe some firmware faults.

> Currently the driver is not handling the firmware faults gracefully,

> most of the time the driver is terminating the IOC initialization

> without trying to recover the IOC from the fault. Instead of terminating

> the IOC initialization, driver has to try to recover the IOC at least

> for one time before terminating the IOC initialization.


Applied to 5.14/scsi-staging, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering
Martin K. Petersen June 1, 2021, 2:56 a.m. UTC | #2
On Tue, 18 May 2021 10:46:22 +0530, Suganath Prabu S wrote:

> During IOC initialization driver may observe some firmware faults.

> Currently the driver is not handling the firmware faults gracefully,

> most of the time the driver is terminating the IOC initialization

> without trying to recover the IOC from the fault. Instead of terminating

> the IOC initialization, driver has to try to recover the IOC at least

> for one time before terminating the IOC initialization.

> 

> [...]


Applied to 5.14/scsi-queue, thanks!

[1/3] mpt3sas: Fix deadlock while cancelling the running FW event
      https://git.kernel.org/mkp/scsi/c/e2fac6c44ae0
[2/3] mpt3sas: Handle FW faults during first half of IOC init
      https://git.kernel.org/mkp/scsi/c/19a622c39a9d
[3/3] mpt3sas: Handle FWfault while second half of IOC Init
      https://git.kernel.org/mkp/scsi/c/a0815c45c89f

-- 
Martin K. Petersen	Oracle Linux Engineering