* inverting order of NVMe pci enable/disable device during boot/shutdown? Failing release.
@ 2019-08-07 21:04 Jeff Johnson
2019-08-07 21:30 ` Keith Busch
0 siblings, 1 reply; 4+ messages in thread
From: Jeff Johnson @ 2019-08-07 21:04 UTC (permalink / raw)
Greetings,
Is there a way to invert the order of PCI device enable/disable during
boot or shutdown?
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.
Thanks!
--Jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
* inverting order of NVMe pci enable/disable device during boot/shutdown? Failing release.
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
2019-08-07 21:36 ` Jeff Johnson
0 siblings, 1 reply; 4+ messages in thread
From: Keith Busch @ 2019-08-07 21:30 UTC (permalink / raw)
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?
^ permalink raw reply [flat|nested] 4+ messages in thread
* inverting order of NVMe pci enable/disable device during boot/shutdown? Failing release.
2019-08-07 21:30 ` Keith Busch
@ 2019-08-07 21:36 ` Jeff Johnson
2019-08-07 21:54 ` Jeff Johnson
0 siblings, 1 reply; 4+ messages in thread
From: Jeff Johnson @ 2019-08-07 21:36 UTC (permalink / raw)
On Wed, Aug 7, 2019@2:33 PM Keith Busch <kbusch@kernel.org> wrote:
> Do you require all 24 slots be populated to observe the failure, or can
> you repro with fewer?
I have not tried with partially depopulating the JBOD but I'll attempt
it now and report back. It always occurs on the final one or two
endpoint devices (SSDs) to disable/release during the shutdown
process.
--Jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
* inverting order of NVMe pci enable/disable device during boot/shutdown? Failing release.
2019-08-07 21:36 ` Jeff Johnson
@ 2019-08-07 21:54 ` Jeff Johnson
0 siblings, 0 replies; 4+ messages in thread
From: Jeff Johnson @ 2019-08-07 21:54 UTC (permalink / raw)
On Wed, Aug 7, 2019 at 2:36 PM Jeff Johnson
<jeff.johnson@aeoncomputing.com> wrote:
>
> On Wed, Aug 7, 2019@2:33 PM Keith Busch <kbusch@kernel.org> wrote:
> > Do you require all 24 slots be populated to observe the failure, or can
> > you repro with fewer?
>
> I have not tried with partially depopulating the JBOD but I'll attempt
> it now and report back. It always occurs on the final one or two
> endpoint devices (SSDs) to disable/release during the shutdown
> process.
Depopulated chassis down to 18 NVMe SSDs from 24. All 18 were
functional with good status, negotiated speed and width. All SSDs
visible to kernel.
After shutdown `sync ; poweroff` the next to last drive in the
shutdown disable/release order was left in a polling state
(G1/0width).
Host: Intel Xeon (Sky Lake SP), UEFI, VMD enabled, CentOS 7.6,
3.10.0-957.21.3.el7 (with DPC enabled)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-08-07 21:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2019-08-07 21:36 ` Jeff Johnson
2019-08-07 21:54 ` Jeff Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox