From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DBE6DC7EE2F for ; Wed, 31 May 2023 13:44:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8S8xVsqwUwA7NRbnivlDSnPAvgWVADLXrKn8Dy3X0hc=; b=y1BEOS7PKp42LU2FgRIb1PH31H Eg49NlQDUf/VNI5DH2D/cx49VQAWDzHv3DX/rBReA1qmNlTKXo1+DoDRPsG0FtYbWVZc0yusL1Y+O D/Pyso8rfrTMonooqSM/VVEY1nRs9PCKGH2qS0oLR/j7Gf2aIf97SeDSjDE9Gj/encXq1c4Bm3mOm XDKARGEOpgNXJGU8JDGjVoFDpm2DXa5MddLICV/ElvNxPzYacoyGuW963AXIZX7bGw3EHNu7H2t5+ lyK+AY2L9TsyoMK83whWXdfIEdcZ9ktzAsD7fa5O2n5/I+oe1XARZzRR1RJhuJd6prWiyhpRBMcg0 FzADaChQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q4M7c-000060-0B; Wed, 31 May 2023 13:44:16 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q4M7a-00004u-0s for linux-nvme@lists.infradead.org; Wed, 31 May 2023 13:44:15 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D039D636E2; Wed, 31 May 2023 13:44:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DA71C433EF; Wed, 31 May 2023 13:44:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685540653; bh=/JOOxuMTlDCRlc++y4DfjkT+ifoXix3oLh6NG6iiCjg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cD/t5nJqD59evdK0BOgVNUpM9nE9KArUlbMPeWGjOs07iDU5UCzl45oWHn3wKXhsZ uaCCjvr3ANs+mSyd7v+CbkolLAfIh/rCX0HUpnSwDgWqWIXWIYfw25Z0aNEiSwKJao GCLLI7/SzTo6S3qJI8uHsdoCckagO7VAcc63YzWdDGcbP5CBqDMSYsEGfXixRdPew0 poAcOnxRdgaisLXGI6gb6XfhL/V4CQxf6jd4KM368wxgkmbEzRkJg4qHinyUZslvhB WNPDneG8c8jVBaaIX4rQCCC6S+eYrqN6b5Yntq8PFJo6kDlWWbMwqsvBfu6kC5JJfd 6Wz66Xh49T1zA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Tatsuki Sugiura , Christoph Hellwig , Keith Busch , Sasha Levin , sagi@grimberg.me, linux-nvme@lists.infradead.org Subject: [PATCH AUTOSEL 5.15 24/24] NVMe: Add MAXIO 1602 to bogus nid list. Date: Wed, 31 May 2023 09:43:20 -0400 Message-Id: <20230531134320.3384102-24-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230531134320.3384102-1-sashal@kernel.org> References: <20230531134320.3384102-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230531_064414_344764_103B48DB X-CRM114-Status: GOOD ( 13.42 ) X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org From: Tatsuki Sugiura [ Upstream commit a3a9d63dcd15535e7fdf4c7c1b32bfaed762973a ] HIKSEMI FUTURE M.2 SSD uses the same dummy nguid and eui64. I confirmed it with my two devices. This patch marks the controller as NVME_QUIRK_BOGUS_NID. --------------------------------------------------------- sugi@tempest:~% sudo nvme id-ctrl /dev/nvme0 NVME Identify Controller: vid : 0x1e4b ssvid : 0x1e4b sn : 30096022612 mn : HS-SSD-FUTURE 2048G fr : SN10542 rab : 0 ieee : 000000 cmic : 0 mdts : 7 cntlid : 0 ver : 0x10400 rtd3r : 0x7a120 rtd3e : 0x1e8480 oaes : 0x200 ctratt : 0x2 rrls : 0 cntrltype : 1 fguid : 00000000-0000-0000-0000-000000000000 --------------------------------------------------------- --------------------------------------------------------- sugi@tempest:~% sudo nvme id-ns /dev/nvme0n1 NVME Identify Namespace 1: nguid : 00000000000000000000000000000000 eui64 : 0000000000000002 lbaf 0 : ms:0 lbads:9 rp:0 (in use) --------------------------------------------------------- Signed-off-by: Tatsuki Sugiura Reviewed-by: Christoph Hellwig Signed-off-by: Keith Busch Signed-off-by: Sasha Levin --- drivers/nvme/host/pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index c3acef6c32917..3b59c897fdcfa 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -3388,6 +3388,8 @@ static const struct pci_device_id nvme_id_table[] = { .driver_data = NVME_QUIRK_BOGUS_NID, }, { PCI_DEVICE(0x1e4B, 0x1202), /* MAXIO MAP1202 */ .driver_data = NVME_QUIRK_BOGUS_NID, }, + { PCI_DEVICE(0x1e4B, 0x1602), /* MAXIO MAP1602 */ + .driver_data = NVME_QUIRK_BOGUS_NID, }, { PCI_DEVICE(0x1cc1, 0x5350), /* ADATA XPG GAMMIX S50 */ .driver_data = NVME_QUIRK_BOGUS_NID, }, { PCI_DEVICE(0x1e49, 0x0021), /* ZHITAI TiPro5000 NVMe SSD */ -- 2.39.2