All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH v3 0/6] mpt3sas: Hot-Plug Surprise removal support on IOC.
       [not found] <1537770916-16337-1-git-send-email-suganath-prabu.subramani@broadcom.com>
@ 2018-09-25  8:38 ` Andy Shevchenko
       [not found] ` <1537770916-16337-2-git-send-email-suganath-prabu.subramani@broadcom.com>
  1 sibling, 0 replies; 5+ messages in thread
From: Andy Shevchenko @ 2018-09-25  8:38 UTC (permalink / raw)
  To: Suganath Prabu Subramani, Lukas Wunner, linux-pci
  Cc: linux-scsi, Sathya Prakash, Sreekanth Reddy

On Mon, Sep 24, 2018 at 9:36 AM Suganath Prabu S
<suganath-prabu.subramani@broadcom.com> 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.
>

AFAIR Lukas asked you to Cc new versions to Linux PCI mailing list
and, if I'm not mistaken, to him.

> V1 changes:
> In Patch 0001 - unlock mutex, if active reset is in progress.
>
> V2 changes:
> Replaced mpt3sas_base_pci_device_is_unplugged with
> pci_device_is_present.
>
> V3 Change Set:
> Simplified function "mpt3sas_base_pci_device_is_available" and
> made inline
>
> Suganath Prabu S (6):
>   mpt3sas: Introduce      mpt3sas_base_pci_device_is_available
>   mpt3sas: Separate 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      | 135 +++++++++++++++-------
>  drivers/scsi/mpt3sas/mpt3sas_base.h      |  11 +-
>  drivers/scsi/mpt3sas/mpt3sas_config.c    |  32 +-----
>  drivers/scsi/mpt3sas/mpt3sas_ctl.c       |  26 +----
>  drivers/scsi/mpt3sas/mpt3sas_scsih.c     | 189 +++++++++++++++++++++++++++----
>  drivers/scsi/mpt3sas/mpt3sas_transport.c |  82 +++-----------
>  6 files changed, 298 insertions(+), 177 deletions(-)
>
> --
> 1.8.3.1
>


-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v3 1/6] mpt3sas: Introduce mpt3sas_base_pci_device_is_available
       [not found]   ` <CAHp75Vd7eLgK59DdmVCE7jZgnkpGq0+21DqU=f6PghdvpUEzuA@mail.gmail.com>
@ 2018-09-25  9:46     ` Suganath Prabu Subramani
  2018-09-25  9:51       ` Andy Shevchenko
  0 siblings, 1 reply; 5+ messages in thread
From: Suganath Prabu Subramani @ 2018-09-25  9:46 UTC (permalink / raw)
  To: andy.shevchenko
  Cc: linux-scsi, Sathya Prakash, Sreekanth Reddy, Christoph Hellwig,
	lukas, linux-pci

Hi Andy,

I forgot to add Lukas in last patch CC list, But i have sent a note
regarding the updated patch to him.
 Also added linux-pci

On Tue, Sep 25, 2018 at 2:10 PM Andy Shevchenko
<andy.shevchenko@gmail.com> wrote:
>
> On Mon, Sep 24, 2018 at 9:36 AM Suganath Prabu S
> <suganath-prabu.subramani@broadcom.com> wrote:
> >
> > * Driver uses "pci_device_is_present" to check whether
> > If Hot unplugged:
> > the outstanding IOs with 'DID_NO_CONNECT' before removing the drives
> > attached to the HBA.
> > "DID_NO_CONNECT" status and free the smid, if driver detects that
> > HBA is hot unplugged.
> >
> > * In the hard reset flush out all the outstanding IOs even if diag reset
> > fails and also if driver detects that HBA is hot unplugged.
>
> > +       if (!mpt3sas_base_pci_device_is_available(ioc)) {
>
> > +               pr_err(MPT3SAS_FMT
> > +                   "%s: pci error recovery reset or"
> > +                   " pci device unplug occurred\n",
>
> This should be just one line.
Above line crosses over 80 characters, so it is in two lines.
>
> > +                   ioc->name, __func__);
> > +               return;
> > +       }
>
> --
> With Best Regards,
> Andy Shevchenko

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v3 1/6] mpt3sas: Introduce mpt3sas_base_pci_device_is_available
  2018-09-25  9:46     ` [PATCH v3 1/6] mpt3sas: Introduce mpt3sas_base_pci_device_is_available Suganath Prabu Subramani
@ 2018-09-25  9:51       ` Andy Shevchenko
  2018-09-25 10:29         ` Suganath Prabu Subramani
  0 siblings, 1 reply; 5+ messages in thread
From: Andy Shevchenko @ 2018-09-25  9:51 UTC (permalink / raw)
  To: Suganath Prabu Subramani
  Cc: linux-scsi, Sathya Prakash, Sreekanth Reddy, Christoph Hellwig,
	Lukas Wunner, linux-pci

On Tue, Sep 25, 2018 at 12:46 PM Suganath Prabu Subramani
<suganath-prabu.subramani@broadcom.com> wrote:

> > > +               pr_err(MPT3SAS_FMT
> > > +                   "%s: pci error recovery reset or"
> > > +                   " pci device unplug occurred\n",
> >
> > This should be just one line.
> Above line crosses over 80 characters, so it is in two lines.

For years there is no such requirement for string literals.
Please, don't split string literals in ugly way like this.

-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v3 1/6] mpt3sas: Introduce mpt3sas_base_pci_device_is_available
  2018-09-25  9:51       ` Andy Shevchenko
@ 2018-09-25 10:29         ` Suganath Prabu Subramani
  2018-09-25 13:34           ` Andy Shevchenko
  0 siblings, 1 reply; 5+ messages in thread
From: Suganath Prabu Subramani @ 2018-09-25 10:29 UTC (permalink / raw)
  To: andy.shevchenko
  Cc: linux-scsi, Sathya Prakash, Sreekanth Reddy, Christoph Hellwig,
	lukas, linux-pci

On Tue, Sep 25, 2018 at 3:22 PM Andy Shevchenko
<andy.shevchenko@gmail.com> wrote:
>
> On Tue, Sep 25, 2018 at 12:46 PM Suganath Prabu Subramani
> <suganath-prabu.subramani@broadcom.com> wrote:
>
> > > > +               pr_err(MPT3SAS_FMT
> > > > +                   "%s: pci error recovery reset or"
> > > > +                   " pci device unplug occurred\n",
> > >
> > > This should be just one line.
> > Above line crosses over 80 characters, so it is in two lines.
>
> For years there is no such requirement for string literals.
Below is the one i was mentioning,
WARNING: line over 80 characters
#30: FILE: drivers/scsi/mpt3sas/mpt3sas_base.c:6861:
+ pr_err(MPT3SAS_FMT "%s: pci error recovery reset or pci device
unplug occurred\n", ioc->name, __func__);

Warning comes for both characters over 80 chars and string split.
Do you want us to ignore warning and repost like above in single line ?
> Please, don't split string literals in ugly way like this.
>
> --
> With Best Regards,
> Andy Shevchenko

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v3 1/6] mpt3sas: Introduce mpt3sas_base_pci_device_is_available
  2018-09-25 10:29         ` Suganath Prabu Subramani
@ 2018-09-25 13:34           ` Andy Shevchenko
  0 siblings, 0 replies; 5+ messages in thread
From: Andy Shevchenko @ 2018-09-25 13:34 UTC (permalink / raw)
  To: Suganath Prabu Subramani
  Cc: linux-scsi, Sathya Prakash, Sreekanth Reddy, Christoph Hellwig,
	Lukas Wunner, linux-pci

On Tue, Sep 25, 2018 at 1:29 PM Suganath Prabu Subramani
<suganath-prabu.subramani@broadcom.com> wrote:
>
> On Tue, Sep 25, 2018 at 3:22 PM Andy Shevchenko
> <andy.shevchenko@gmail.com> wrote:
> >
> > On Tue, Sep 25, 2018 at 12:46 PM Suganath Prabu Subramani
> > <suganath-prabu.subramani@broadcom.com> wrote:
> >
> > > > > +               pr_err(MPT3SAS_FMT
> > > > > +                   "%s: pci error recovery reset or"
> > > > > +                   " pci device unplug occurred\n",
> > > >
> > > > This should be just one line.
> > > Above line crosses over 80 characters, so it is in two lines.
> >
> > For years there is no such requirement for string literals.
> Below is the one i was mentioning,
> WARNING: line over 80 characters
> #30: FILE: drivers/scsi/mpt3sas/mpt3sas_base.c:6861:
> + pr_err(MPT3SAS_FMT "%s: pci error recovery reset or pci device
> unplug occurred\n", ioc->name, __func__);
>
> Warning comes for both characters over 80 chars and string split.
> Do you want us to ignore warning and repost like above in single line ?
> > Please, don't split string literals in ugly way like this.

I didn't tell anything about other parameters to be on the same line.
So, please, try again.

-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-09-25 13:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1537770916-16337-1-git-send-email-suganath-prabu.subramani@broadcom.com>
2018-09-25  8:38 ` [PATCH v3 0/6] mpt3sas: Hot-Plug Surprise removal support on IOC Andy Shevchenko
     [not found] ` <1537770916-16337-2-git-send-email-suganath-prabu.subramani@broadcom.com>
     [not found]   ` <CAHp75Vd7eLgK59DdmVCE7jZgnkpGq0+21DqU=f6PghdvpUEzuA@mail.gmail.com>
2018-09-25  9:46     ` [PATCH v3 1/6] mpt3sas: Introduce mpt3sas_base_pci_device_is_available Suganath Prabu Subramani
2018-09-25  9:51       ` Andy Shevchenko
2018-09-25 10:29         ` Suganath Prabu Subramani
2018-09-25 13:34           ` Andy Shevchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.