nvme-pci: add NO APST quirk for Kioxia device
authorEnzo Matsumiya <ematsumiya@suse.de>
Sat, 6 Nov 2021 02:08:57 +0000 (23:08 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jun 2022 07:03:25 +0000 (09:03 +0200)
commit1057d42602cb610b06e6ac0495483254e4812d09
treeaa119046be1ff7e611c8cfefb8567aa86faa97cf
parent72fa0f65b56605b8a9ae9fba2082f2123f7fe017
nvme-pci: add NO APST quirk for Kioxia device

[ Upstream commit 5a6254d55e2a9f7919ead8580d7aa0c7a382b26a ]

This particular Kioxia device times out and aborts I/O during any load,
but it's more easily observable with discards (fstrim).

The device gets to a state that is also not possible to use
"nvme set-feature" to disable APST.
Booting with nvme_core.default_ps_max_latency=0 solves the issue.

We had a dozen or so of these devices behaving this same way in
customer environments.

Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/core.c