scsi: mpt3sas: Transition IOC to Ready state during shutdown
authorSreekanth Reddy <sreekanth.reddy@broadcom.com>
Mon, 5 Jul 2021 14:59:50 +0000 (20:29 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 20 Jul 2021 01:57:15 +0000 (21:57 -0400)
commitfae21608c31ca987d9dfc0422ac9b5bd21c213a6
tree9201aca011fd9fd08132917c532fc0fd24266c4c
parent6d8e7e7c932162bccd06872362751b0e1d76f5af
scsi: mpt3sas: Transition IOC to Ready state during shutdown

The IOC firmware assumes that the host driver is still alive after shutdown
and continues to post events to host memory (due to faulty expander phy
links, etc). This leads to 0x2666 (a bus fault occurred during a host-IOC
memory access).

Perform an IOC soft reset as part of shutdown to disable event posting.

Link: https://lore.kernel.org/r/20210705145951.32258-1-sreekanth.reddy@broadcom.com
Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_base.c
drivers/scsi/mpt3sas/mpt3sas_base.h
drivers/scsi/mpt3sas/mpt3sas_scsih.c