[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251028-bogus-id-check-v1-1-c087a98b5466@kernel.org>
Date: Tue, 28 Oct 2025 13:54:56 +0100
From: Daniel Wagner <wagi@...nel.org>
To: Keith Busch <kbusch@...nel.org>, Christoph Hellwig <hch@....de>
Cc: John Meneghini <jmeneghi@...hat.com>, Bryan Gurney <bgurney@...hat.com>,
linux-nvme@...ts.infradead.org, linux-kernel@...r.kernel.org,
Daniel Wagner <dwagner@...e.de>, Daniel Wagner <wagi@...nel.org>
Subject: [PATCH] nvme: drop bogus nid quirk for multipath devices which
passed id test
From: Daniel Wagner <dwagner@...e.de>
Dell Express Flash NVMe P4610 reuse the Intel device id 0x0a54. The
Intel P4500/46000 device needs NVME_QUIRK_BOBUG_NID whereas the Dell
does not. Thus clear the quirk when the id check passes.
Link: https://bugzilla.kernel.org/show_bug.cgi?id=217981
Signed-off-by: Daniel Wagner <dwagner@...e.de>
---
Hi,
Obviously, using the correct IDs is really hard. There are at least two devices
which share a the device id and one needs the bogus id workaround the other
doesn't.
We discussed the idea to pass through configuration from the kernel command line
at ALPSS. I am not sure, how far we got with this yet. What about something like
this here?
Thanks,
Daniel
Signed-off-by: Daniel Wagner <wagi@...nel.org>
---
drivers/nvme/host/core.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 734ad725e6f4..881981c2a3b2 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -4005,6 +4005,13 @@ static int nvme_init_ns_head(struct nvme_ns *ns, struct nvme_ns_info *info)
memset(&info->ids.uuid, 0, sizeof(info->ids.uuid));
memset(&info->ids.eui64, 0, sizeof(info->ids.eui64));
ctrl->quirks |= NVME_QUIRK_BOGUS_NID;
+ } else {
+ /*
+ * If the device is a multipath device and the id check passes,
+ * the NVME_QUIRK_BOGUS_NID is not needed.
+ */
+ if (ns->ctrl->subsys->cmic & NVME_CTRL_CMIC_MULTI_CTRL)
+ ctrl->quirks &= ~NVME_QUIRK_BOGUS_NID;
}
mutex_lock(&ctrl->subsys->lock);
---
base-commit: 77a4fe6a06e265bd94d2b3cdc87fb3cde877a05b
change-id: 20251028-bogus-id-check-aa1dec56fff8
Best regards,
--
Daniel Wagner <wagi@...nel.org>
Powered by blists - more mailing lists