From: Paul Menzel <pmenzel@molgen.mpg.de>
To: Keith Busch <kbusch@kernel.org>, Jens Axboe <axboe@kernel.dk>,
Christoph Hellwig <hch@lst.de>, Sagi Grimberg <sagi@grimberg.me>
Cc: Paul Menzel <pmenzel@molgen.mpg.de>,
linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: [PATCH] nvme-pci: Add IGNORE_DEV_SUBNQN quirk for Phison E19
Date: Mon, 23 Nov 2026 23:40:18 +0100 [thread overview]
Message-ID: <20261123224020.134113-1-pmenzel@molgen.mpg.de> (raw)
The Phison E19 (198:5019) in a Dell XPS 13 9315 reports:
$ sudo nvme id-ctrl /dev/nvme0 | grep -E '^(vid|mn|fr|ver|subnqn) '
vid : 0x1987
mn : ESE2A044-512 NVMe Phison 512GB
fr : 19010008
ver : 0x10400
subnqn :
So every boot warns:
nvme nvme0: missing or invalid SUBNQN field.
and the kernel falls back to the generated NQN anyway:
$ cat /sys/class/nvme/nvme0/subsysnqn
nqn.2014.08.org.nvmexpress:19871987298E07241E4B00121487ESE2A044-512 NVMe Phison 512GB
Add NVME_QUIRK_IGNORE_DEV_SUBNQN, as for the Phison E16 (1987:5016), to
use the generated NQN without the warning. For this drive the subsystem
NQN stays the same.
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
---
drivers/nvme/host/pci.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 076603df01abb..ba5b1cdbb95e1 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -4398,7 +4398,8 @@ static const struct pci_device_id nvme_id_table[] = {
.driver_data = NVME_QUIRK_IGNORE_DEV_SUBNQN |
NVME_QUIRK_BOGUS_NID, },
{ PCI_DEVICE(0x1987, 0x5019), /* phison E19 */
- .driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, },
+ .driver_data = NVME_QUIRK_IGNORE_DEV_SUBNQN |
+ NVME_QUIRK_DISABLE_WRITE_ZEROES, },
{ PCI_DEVICE(0x1987, 0x5021), /* Phison E21 */
.driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, },
{ PCI_DEVICE(0x1b4b, 0x1092), /* Lexar 256 GB SSD */
--
2.54.0
reply other threads:[~2026-11-23 22:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261123224020.134113-1-pmenzel@molgen.mpg.de \
--to=pmenzel@molgen.mpg.de \
--cc=axboe@kernel.dk \
--cc=hch@lst.de \
--cc=kbusch@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=sagi@grimberg.me \
/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
all inboxes | Powered by JetHome®