public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
From: <Austin.Bolen@dell.com>
To: <keith.busch@intel.com>, <Austin.Bolen@dell.com>
Cc: <keith.busch@linux.intel.com>, <yi.zhang@redhat.com>,
	<linux-block@vger.kernel.org>, <osandov@osandov.com>,
	<linux-nvme@lists.infradead.org>, <ming.lei@redhat.com>
Subject: Re: blktests block/019 lead system hang
Date: Wed, 13 Jun 2018 18:24:14 +0000	[thread overview]
Message-ID: <2bbfd07208a84856a2d4dcb833671a82@AUSX13MPC127.AMER.DELL.COM> (raw)
In-Reply-To: 20180613154415.GC5574@localhost.localdomain

On 6/13/2018 10:41 AM, Keith Busch wrote:=0A=
> Thanks for the feedback!=0A=
>=0A=
> This test does indeed toggle the Link Control Link Disable bit to simulat=
e=0A=
> the link failure. The PCIe specification specifically covers this case=0A=
> in Section 3.2.1, Data Link Control and Management State Machine Rules:=
=0A=
>=0A=
>   If the Link Disable bit has been Set by software, then the subsequent=
=0A=
>   transition to DL_Inactive must not be considered an error.=0A=
Forgot to mention... this PCIe requirement to not treat Link Disable =3D 1=
=0A=
as an error is a requirement on PCIe hardware and not from platform=0A=
side.  So if you want to test this PCIe spec requirement then you need a=0A=
way to ascertain whether PCIe hardware or platform is causing the=0A=
error.  Additionally, setting Link Disable is not what is causing the=0A=
error in this specific case.  The error is coming from a subsequent MMIO=0A=
that is causing UR since link is down.=0A=
=0A=
-Austin=0A=
=0A=
=0A=
> So this test should suppress any Suprise Down Error events, but handling=
=0A=
> that particular event wasn't the intent of the test (and as you mentioned=
,=0A=
> it ought not occur anyway since the slot is HP Surprise capable).=0A=
>=0A=
> The test should not suppress reporting the Data Link Layer State Changed=
=0A=
> slot status. And while this doesn't trigger a Slot PDC status, triggering=
=0A=
> a DLLSC should occur since the Link Status DLLLA should go to 0 when=0A=
> state machine goes from DL_Active to DL_Down, regardless of if a Suprise=
=0A=
> Down Error was detected.=0A=
>=0A=
> The Linux PCIEHP driver handles a DLLSC link-down event the same as=0A=
> a presence detect remove event, and that's part of what this test was=0A=
> trying to cover.=0A=
>=0A=
=0A=

      parent reply	other threads:[~2018-06-13 18:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <838678680.4693215.1527664726174.JavaMail.zimbra@redhat.com>
2018-05-30  7:26 ` blktests block/019 lead system hang Yi Zhang
2018-06-05 16:18   ` Keith Busch
2018-06-05 17:21     ` Keith Busch
2018-06-06  5:42       ` Yi Zhang
2018-06-06 14:28         ` Keith Busch
2018-06-12 23:41     ` Austin.Bolen
2018-06-13 15:44       ` Keith Busch
2018-06-13 17:17         ` Austin.Bolen
2018-06-13 18:24         ` Austin.Bolen [this message]

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=2bbfd07208a84856a2d4dcb833671a82@AUSX13MPC127.AMER.DELL.COM \
    --to=austin.bolen@dell.com \
    --cc=keith.busch@intel.com \
    --cc=keith.busch@linux.intel.com \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=ming.lei@redhat.com \
    --cc=osandov@osandov.com \
    --cc=yi.zhang@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox