From: kbusch@kernel.org (Keith Busch)
Subject: inverting order of NVMe pci enable/disable device during boot/shutdown? Failing release.
Date: Wed, 7 Aug 2019 15:30:40 -0600 [thread overview]
Message-ID: <20190807213039.GA26026@localhost.localdomain> (raw)
In-Reply-To: <CAFCYAsfsCH+swCmpubto9od6dmJFsw0i+VDri9U+GVyZkOqcWg@mail.gmail.com>
On Wed, Aug 07, 2019@02:04:32PM -0700, Jeff Johnson wrote:
> Greetings,
>
> Is there a way to invert the order of PCI device enable/disable during
> boot or shutdown?
There's no easy way to change that. It's not possible from the nvme
driver at least. Our shutdown notifications are initiated from the kernel,
so we don't control the device order at this level.
> I have an attached NVMe SSD chassis with 24 SSDs. I have discovered
> that on random host shutdowns that the last couple NVMe SSDs get left
> in a bad state after they are unregistered by the kernel. Out of 24
> SSDs all but the last one or two successfully remain at their
> negotiated speed and width after release. The last one, or sometimes
> two, SSDs to be released get stuck in a polling state (gen1, 0width)
> which will not clear or resolve unless the PCIe switch is reset.
>
> Multiple backplanes and moving SSDs doesn't change the fact that it is
> always the last one or two SSDs to release on host orderly shutdown.
>
> If I can swap the order of drive reserve/release on boot and shutdown
> then I could determine if the issue follows the physical path or the
> last drives in the release process.
Do you require all 24 slots be populated to observe the failure, or can
you repro with fewer?
next prev parent reply other threads:[~2019-08-07 21:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-07 21:04 inverting order of NVMe pci enable/disable device during boot/shutdown? Failing release Jeff Johnson
2019-08-07 21:30 ` Keith Busch [this message]
2019-08-07 21:36 ` Jeff Johnson
2019-08-07 21:54 ` Jeff Johnson
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=20190807213039.GA26026@localhost.localdomain \
--to=kbusch@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox