Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1064044ybl; Wed, 14 Aug 2019 10:07:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+9z7ajbCGteANRXW4ep6A7KGuVcUt8zTAz0XWpnsAYBWHxuC+/R+qLsf3qpNsYXwfplfQ X-Received: by 2002:a62:1a45:: with SMTP id a66mr1024837pfa.142.1565802474818; Wed, 14 Aug 2019 10:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565802474; cv=none; d=google.com; s=arc-20160816; b=0BKx3yvsx5XDgwnRKqaYaOWN8dlJEGLQygq4wGJpWv+DzzcDvrQfrfFYAdZQ7dgOEt Z1DMhGM6TDCMRKIGRP+zEgCnAuR1CuZPAYf/SmoWwof5Pt95PC2f5IrBWbc10Q9tViWM k6IJF1jbGJ07YRj46BWP5g0xQiCdwnbz/+yzClkIcKCfmRzqPkmoslT5sjBHq8GrUmdU GOOxyVMHyzO7FHnBz7/iq2MRsGFKaGUdHzC38lg6ZMmM2jPGRHj/OZkPwo6YwCNldFOY zH6ua/9iHmZFTlo1vAc3MaUnjkjrXDF8CvMocD5Tlz+7OkBLqaJiMW06xfwerxsoDQ+i d7fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lQ/I27g8RUIiDuHFnZCvEOTfQHngY08QLp2KfUxHMxA=; b=BB7CWAp/wOSmfkB+69GXE7qy/nSzZcP8p7h0SP8oLDmAMk3+91EeRjEeqIDmPfgZEB wdw08IyS6njoEs/ETUzRuA97ECT2t9pFZ3Ip3YYyJwz/qhfBTiUyzbIYqm4GWHZZw5z3 MPOrSxgwKhaiCYbGJFCf28K/TVEXQgOn54jn1Yuc3/bAWd6cXU5jTcNloqvFzg4KynYv llXDCnsVOlaqFAQh7vwRSGd78cVfZFGP1LMhKTluw+FEnemHEQTKs8HDFz32jfcTy+Wr yVy3eBdpBEZzd89aKU7pAAlIcKUZSKxG/zLUy2vBbmgoggei5FInjc1qD9LyXTOVkWth PR+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uJ7wT6PK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d34si250913pla.283.2019.08.14.10.07.38; Wed, 14 Aug 2019 10:07:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uJ7wT6PK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729640AbfHNRGW (ORCPT + 99 others); Wed, 14 Aug 2019 13:06:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:55416 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729632AbfHNRGT (ORCPT ); Wed, 14 Aug 2019 13:06:19 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F1CD821743; Wed, 14 Aug 2019 17:06:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802378; bh=bGyE73HnI4jBkU09mVeTINyrP01fTmlVirec7dN7Lok=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uJ7wT6PKCSiyx/52B+cr5rVjY9dvglmAqLLyKHRPfxngqNn8Ha3uayfFZqeMqJ87J f4lCPvYMdErdfmwoEena4+3M2l3vj4asu7L2R1HTtDbt3/qrz5whTEfV0KliD/LnTi ToNIO/R9aMCRqrqYnz9IltiI3jhl7kCMBnvee63c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Misha Nasledov , Christoph Hellwig , Sasha Levin Subject: [PATCH 5.2 103/144] nvme: ignore subnqn for ADATA SX6000LNP Date: Wed, 14 Aug 2019 19:00:59 +0200 Message-Id: <20190814165804.205571639@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165759.466811854@linuxfoundation.org> References: <20190814165759.466811854@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 08b903b5fd0c49e5f224a9bf085b6329ec3c55c0 ] The ADATA SX6000LNP NVMe SSDs have the same subnqn and, due to this, a system with more than one of these SSDs will only have one usable. [ 0.942706] nvme nvme1: ignoring ctrl due to duplicate subnqn (nqn.2018-05.com.example:nvme:nvm-subsystem-OUI00E04C). [ 0.943017] nvme nvme1: Removing after probe failure status: -22 02:00.0 Non-Volatile memory controller [0108]: Realtek Semiconductor Co., Ltd. Device [10ec:5762] (rev 01) 71:00.0 Non-Volatile memory controller [0108]: Realtek Semiconductor Co., Ltd. Device [10ec:5762] (rev 01) There are no firmware updates available from the vendor, unfortunately. Applying the NVME_QUIRK_IGNORE_DEV_SUBNQN quirk for these SSDs resolves the issue, and they all work after this patch: /dev/nvme0n1 2J1120050420 ADATA SX6000LNP [...] /dev/nvme1n1 2J1120050540 ADATA SX6000LNP [...] Signed-off-by: Misha Nasledov Signed-off-by: Christoph Hellwig 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 7fbcd72c438f6..f9959eaaa185e 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -2959,6 +2959,8 @@ static const struct pci_device_id nvme_id_table[] = { .driver_data = NVME_QUIRK_LIGHTNVM, }, { PCI_DEVICE(0x1d1d, 0x2601), /* CNEX Granby */ .driver_data = NVME_QUIRK_LIGHTNVM, }, + { PCI_DEVICE(0x10ec, 0x5762), /* ADATA SX6000LNP */ + .driver_data = NVME_QUIRK_IGNORE_DEV_SUBNQN, }, { PCI_DEVICE_CLASS(PCI_CLASS_STORAGE_EXPRESS, 0xffffff) }, { PCI_DEVICE(PCI_VENDOR_ID_APPLE, 0x2001) }, { PCI_DEVICE(PCI_VENDOR_ID_APPLE, 0x2003) }, -- 2.20.1