mbox series

[0/7] mpt3sas: Hot-Plug Surprise removal support on IOC.

Message ID 1535599593-4739-1-git-send-email-suganath-prabu.subramani@broadcom.com (mailing list archive)
Headers show
Series mpt3sas: Hot-Plug Surprise removal support on IOC. | expand

Message

Suganath Prabu S Aug. 30, 2018, 3:26 a.m. UTC
Posting below set of patches to support PCIe Hot Plug surprise removal,
and few defect fixes.

This is NOT the normal PCIe Hot Plug support, whereby the user informs the
OS that a hot removal is desired, the OS does an orderly shutdown of the driver
on the device, special hot plug circuitry removes power from the PCIe slot,
then the user can remove the device and replace it
(where orderly bring-up of the device is done).

With a true surprise removal (just removing HBA from a slot)
there is a possibility to get all kinds of PCIe transaction errors,
Below patches addresses those issues and remove HBA without bringing
the system down.

For surprise removal detection, driver does a PCI
read of IOC's vendor field in IOC's PCI configuration space.
If the read value is 0xFFFFFFFF this indicates that the device
might have hot removed and the device will be removed from driver.

Suganath Prabu S (7):
  mpt3sas: Introduce mpt3sas_base_pci_device_is_unplugged
  mpt3sas: Add HBA hot plug watchdog thread.
  mpt3sas: Seperate out      mpt3sas_wait_for_ioc_to_operational
  mpt3sas: Introdude  _scsih_get_shost_and_ioc.
  mpt3sas: Fix Sync cache command failure during driver      unload.
  mpt3sas: Fix driver modifying NVRAM/persistent data.
  mpt3sas: Bump driver version to 27.100.00.00.

 drivers/scsi/mpt3sas/mpt3sas_base.c      | 247 ++++++++++++++++++++++++++-----
 drivers/scsi/mpt3sas/mpt3sas_base.h      |  17 ++-
 drivers/scsi/mpt3sas/mpt3sas_config.c    |  32 +---
 drivers/scsi/mpt3sas/mpt3sas_ctl.c       |  26 +---
 drivers/scsi/mpt3sas/mpt3sas_scsih.c     | 188 ++++++++++++++++++++---
 drivers/scsi/mpt3sas/mpt3sas_transport.c |  82 +++-------
 6 files changed, 413 insertions(+), 179 deletions(-)