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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



+Cc: Lukas (I think he might be interested to look at this)

On Fri, Aug 31, 2018 at 7:37 AM Suganath Prabu S
<suganath-prabu.subramani@xxxxxxxxxxxx> wrote:
>
> 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.
>
> V1 changes:
> In Patch 0001 - unlock mutex, if active reset is in progress.
>
> 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      | 248 ++++++++++++++++++++++++++-----
>  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, 414 insertions(+), 179 deletions(-)
>
> --
> 1.8.3.1
>


-- 
With Best Regards,
Andy Shevchenko



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux