]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nvme: introduce NVME_QUIRK_IGNORE_DEV_SUBNQN
authorJames Dingwall <james@dingwall.me.uk>
Tue, 8 Jan 2019 17:20:51 +0000 (10:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:29:05 +0000 (10:29 +0100)
commitb9453f9bb66e864f8b7d7e112aea475bdd7a4e2b
tree4957e851cefa06b97718446a48156e17313f8559
parentcedcbfdde6d5e7336abc4592ac00846f78a9127a
nvme: introduce NVME_QUIRK_IGNORE_DEV_SUBNQN

[ Upstream commit 6299358d198a0635da2dd3c4b3ec37789e811e44 ]

If a device provides an NQN it is expected to be globally unique.
Unfortunately some firmware revisions for Intel 760p/Pro 7600p devices did
not satisfy this requirement.  In these circumstances if a system has >1
affected device then only one device is enabled.  If this quirk is enabled
then the device supplied subnqn is ignored and we fallback to generating
one as if the field was empty.  In this case we also suppress the version
check so we don't print a warning when the quirk is enabled.

Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: James Dingwall <james@dingwall.me.uk>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c