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 511E3C77B7D for ; Sat, 20 May 2023 12:24:10 +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=5dHCpkDW1H9xUjM2a6/MUYp1s+VuTHVCHhVdA6wMGqQ=; b=UWxvHQgmbgEmmQrbTZ0fx9FqZA eYuovCfBngSX8enkRKHMxRfe+4PP+zk+0cfKbd8QWF2rZXOT69LhXXl1rUFjTWVktL1RFAz0leeB8 N4kihnN//L+i8r26UgQjDIUHb+Jicb9fBwekB9UEw0hVb1MmftIeZvf98T4fkKm6gMe0n8JIfTbL2 t9IaTJia3hZh8B+xPpDxY6fhjPYF8+/XxC9X55I9wJC7QqVEUpYoWReTslLqbH/TNgJeWvIFA5mjw hegDt7q/ZpCnGK9bfmn9XwBmdbwcL28qhSlxR23h9APpmQbuUk9KMfJbOMb+ojZCzDKjDDCsA1IeW K+4/5k8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q0Lcz-001TrW-21; Sat, 20 May 2023 12:24:05 +0000 Received: from tempest.nemui.org ([106.185.149.25]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q0Lcw-001Tr0-2P for linux-nvme@lists.infradead.org; Sat, 20 May 2023 12:24:04 +0000 Received: by tempest.nemui.org (Postfix, from userid 1000) id 36F7B2084270; Sat, 20 May 2023 21:23:59 +0900 (JST) From: Tatsuki Sugiura To: Keith Busch Cc: Jens Axboe , Christoph Hellwig , Sagi Grimberg , linux-nvme@lists.infradead.org, sugi@nemui.org Subject: [PATCH] NVMe: Add MAXIO 1602 to bogus nid list. Date: Sat, 20 May 2023 21:23:50 +0900 Message-Id: <20230520122350.2232956-1-sugi@nemui.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <87ttw7i6p7.wl-sugi@nemui.org> References: <87ttw7i6p7.wl-sugi@nemui.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230520_052402_896501_0887CBB0 X-CRM114-Status: GOOD ( 11.38 ) 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 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 --- 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 7f25c0fe3a0b..ee234fd27896 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -3422,6 +3422,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(0x1dbe, 0x5236), /* ADATA XPG GAMMIX S70 */ -- 2.40.1