All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Dennis Dalessandro
	<dennis.dalessandro-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Tadeusz Struk
	<tadeusz.struk-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Subject: Re: [PATCH for-next 7/9] IB/core: Allow QP state transition from reset to error
Date: Sun, 23 Jul 2017 16:04:45 +0300	[thread overview]
Message-ID: <20170723130445.GG3259@mtr-leonro.local> (raw)
In-Reply-To: <1500812883.2610.7.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 4527 bytes --]

On Sun, Jul 23, 2017 at 08:28:03AM -0400, Doug Ledford wrote:
> On Sun, 2017-07-23 at 10:41 +0300, Leon Romanovsky wrote:
> > On Sun, Jul 23, 2017 at 10:39:05AM +0300, Leon Romanovsky wrote:
> > > On Tue, May 30, 2017 at 08:46:09AM +0300, Leon Romanovsky wrote:
> > > > On Mon, May 29, 2017 at 05:20:53PM -0700, Dennis Dalessandro
> > > > wrote:
> > > > > From: Tadeusz Struk <tadeusz.struk-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> > > > >
> > > > > Playing with IP-O-IB interface can trigger a warning message:
> > > > > "ib0: Failed to modify QP to ERROR state" to be logged.
> > > > > This happens when the QP is in IB_QPS_RESET state and the stack
> > > > > is trying to transition it to IB_QPS_ERR state in
> > > > > ipoib_ib_dev_stop().
> > > > >
> > > > > According to the IB spec, Table 91 - "QP State Transition
> > > > > Properties"
> > > > > it looks like the transition from reset to error is valid:
> > > > >
> > > > > Transition: Any State to Error
> > > > > Required Attributes: None
> > > > > Optional Attributes: None allowed
> > > > > Actions: Queue processing is stopped. Work Requests pending or
> > > > > in
> > > > > process are completed in error, when possible.
> > > > >
> > > > > This patch allows the transition and quiets the message.
> > > > >
> > > > > Reviewed-by: Dennis Dalessandro <dennis.dalessandro-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> > > > > Signed-off-by: Tadeusz Struk <tadeusz.struk-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> > > > > Signed-off-by: Dennis Dalessandro <dennis.dalessandro-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
> > > > > >
> > > > > ---
> > > >
> > > > Thanks,
> > > > Reviewed-by: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> > >
> > > Doug,
> > >
> > > After digging more with Erez's help, it looks like the sentence "it
> > > looks like the transition from reset to error is valid:" is not
> > > correct.
> > >
> > > According to the InfiniBandTM Architecture Release 1.3, Figure 126
> > > QP/EE Context
> > > State Diagram - transition to error from reset is not valid.
> > >
> > > The quote from the spec:
> > > "An error can be forced from any state, except Reset, with the
> > > Modify QP/EE Verb."
> > >
> > > I'll send revert patch along with proper fix.
> >
> > Ahh, it wasn't pushed to kernel.org, so no need to revert and you can
> > simply drop it.
>
> It *is* on kernel.org, and has already been pulled by Linus:

Thanks, I updated the trees and got it.

Also I prepared revert and patch and will send once it will finish our regression runs.
https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git/commit/?h=rdma-rc&id=b287b76e89503ef1d403cc5cc8bd74b035d25bfa
https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git/commit/?h=rdma-rc&id=5dc78ad1904db597bdb4427f3ead437aae86f54c

BTW, when will you post for-4.14 branch so we will be able to base our
submission queue for the -next?

Thanks

>
> commit ebc9ca43e1d52a85c72fc2d343f353386ed6c188
> Author: Tadeusz Struk <tadeusz.struk-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> Date:   Mon May 29 17:20:53 2017 -0700
>
>     IB/core: Allow QP state transition from reset to error
>
>     Playing with IP-O-IB interface can trigger a warning message:
>     "ib0: Failed to modify QP to ERROR state" to be logged.
>     This happens when the QP is in IB_QPS_RESET state and the stack
>     is trying to transition it to IB_QPS_ERR state in
> ipoib_ib_dev_stop().
>
>     According to the IB spec, Table 91 - "QP State Transition
> Properties"
>     it looks like the transition from reset to error is valid:
>
>     Transition: Any State to Error
>     Required Attributes: None
>     Optional Attributes: None allowed
>     Actions: Queue processing is stopped. Work Requests pending or in
>     process are completed in error, when possible.
>
>     This patch allows the transition and quiets the message.
>
>     Reviewed-by: Dennis Dalessandro <dennis.dalessandro-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>     Signed-off-by: Tadeusz Struk <tadeusz.struk-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>     Signed-off-by: Dennis Dalessandro <dennis.dalessandro-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>     Reviewed-by: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
>     Signed-off-by: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
>
> --
> Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
>     GPG KeyID: B826A3330E572FDD
>     Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD
>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2017-07-23 13:04 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-30  0:16 [PATCH for-next 0/9] IB/core, hfi1, rdmavt: patches for next 05/29/2017 Dennis Dalessandro
     [not found] ` <20170530000314.534.72983.stgit-9QXIwq+3FY+1XWohqUldA0EOCMrvLtNR@public.gmane.org>
2017-05-30  0:17   ` [PATCH for-next 1/9] IB/rdmavt: Remove duplicated functions Dennis Dalessandro
2017-05-30  0:18   ` [PATCH for-next 2/9] IB/hfi1: Ensure dd->gi_mask can not be overflowed Dennis Dalessandro
2017-05-30  0:18   ` [PATCH for-next 3/9] IB/hfi1: Fix spelling mistake in linkdown reason Dennis Dalessandro
2017-05-30  0:19   ` [PATCH for-next 4/9] IB/hfi1: Use QPN mask to avoid overflow Dennis Dalessandro
2017-05-30  0:19   ` [PATCH for-next 5/9] IB/hfi1: Remove subtraction of uninitialized value Dennis Dalessandro
2017-05-30  0:20   ` [PATCH for-next 6/9] IB/hfi1: Add error checking for buffer overrun in OPA aggregate Dennis Dalessandro
2017-05-30  0:20   ` [PATCH for-next 7/9] IB/core: Allow QP state transition from reset to error Dennis Dalessandro
     [not found]     ` <20170530002032.534.25061.stgit-9QXIwq+3FY+1XWohqUldA0EOCMrvLtNR@public.gmane.org>
2017-05-30  5:46       ` Leon Romanovsky
     [not found]         ` <20170530054609.GG17751-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-07-23  7:39           ` Leon Romanovsky
     [not found]             ` <20170723073905.GE3259-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-07-23  7:41               ` Leon Romanovsky
     [not found]                 ` <20170723074153.GF3259-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-07-23 12:28                   ` Doug Ledford
     [not found]                     ` <1500812883.2610.7.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-07-23 13:04                       ` Leon Romanovsky [this message]
     [not found]                         ` <20170723130445.GG3259-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-07-23 13:14                           ` Doug Ledford
     [not found]                             ` <10f7f884-8e65-b563-bdd8-7c2735906d14-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-07-23 13:18                               ` Leon Romanovsky
2017-05-30  0:21   ` [PATCH for-next 8/9] IB/hfi1: Modify handling of physical link state by Host Driver Dennis Dalessandro
2017-05-30  0:22   ` [PATCH for-next 9/9] IB/hfi1,qib: Do not send QKey trap for UD qps Dennis Dalessandro
2017-06-27 21:00   ` [PATCH for-next 0/9] IB/core, hfi1, rdmavt: patches for next 05/29/2017 Doug Ledford

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170723130445.GG3259@mtr-leonro.local \
    --to=leon-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
    --cc=dennis.dalessandro-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=tadeusz.struk-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.