Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1252805imw; Tue, 5 Jul 2022 06:28:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vPGrtKaY3OwfkW/2v62gjDzzV2gueQba3xZpENEa82R18MFEXXTtf5l1xXMbsd//39/+FK X-Received: by 2002:a17:902:8e85:b0:16a:380b:13a9 with SMTP id bg5-20020a1709028e8500b0016a380b13a9mr41436149plb.109.1657027714112; Tue, 05 Jul 2022 06:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657027714; cv=none; d=google.com; s=arc-20160816; b=v21i9HsARMPk2pLWY9uf1Bj/ae5do/DNGEgmYdfjTk8CvruskjmV5Pc7D4vw4GYjg1 lI+Gfc0cnmpGpv0qQySyeSgtux76COl63xmN1+91FWmiO7l1tMBk6Y8qfNLCRQX4UgCq vVCjF91n+cStqDnUyOPtYvXp6u4QZdznMX4wTnzeCx09rZ4u3Lm+cJL+idXcrkSsiZ9m kBghtPxgvn18nWC5qBhgFRZWUPiRAYLk+M5/iIsVJpS1GujRZInwUEu2ULx45gZmyDYl HG+DKUDI9y5piIzaGDU21PmSzmtb1gTVigSJkl5v6EQQHxLeZW7Bp2n5hwlP3Rpc/z3J ding== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PlcicyI6o2JzlQRDF+B6a0sDVwYSnkTOlk78PJj+JA0=; b=EKH8NydLbx9LhEGbpwLrGQ9kVi8nCvBQ4aXmuBzkQcqsttq7P4NIVpdyKO6QnINvj4 8NrJEqqSsiMOfMDDKfzc3hp/NgXClscLtH343qWxBfIPLE7ccdUnqzjf0i+5b5TFJ5Ug WkEmIfrZ5XNaWkmJE/aiOwzf1rfrdHLxuH5SkuEzGUDBXxVE4j5V0Bll06bXiQv64dtZ M7zEOVaIxIH6jM0gH1H7wRRrNWAnew+iEodvGho+vIreLKGhVYkNmYWNM0Pp7eyClvEB skqVVY7aDQyz12PynnT/Zx3d9nxlWLt3g5keTv+gVb/i1q1pgvHx8cAojRMAtTvTbbac SHzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BxsC9StS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13-20020a17090aeb0d00b001ef900e9d84si4543003pjz.17.2022.07.05.06.28.22; Tue, 05 Jul 2022 06:28:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BxsC9StS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237088AbiGEMWx (ORCPT + 99 others); Tue, 5 Jul 2022 08:22:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235706AbiGEMO1 (ORCPT ); Tue, 5 Jul 2022 08:14:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 206801B78D; Tue, 5 Jul 2022 05:11:43 -0700 (PDT) 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 7186F619B0; Tue, 5 Jul 2022 12:11:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86D1BC341D0; Tue, 5 Jul 2022 12:11:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657023102; bh=4VffuFBxs2+Cw1NgmCBgYbNd/PCK0ylS0ls8k/lR60A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BxsC9StSwC9Q79FevEVDmS8Xrj/jK0O6S61jVOy4zoYc4VVd1k2yMMxIWoHIlWfBW +oPPcG00ZwR8yvenPWm+91+mLU4XjzirlOBVgXmVjTXbSKZRcU0MOwNu+PtetvXhXS 4MI0zs0lAAedD3BiTT9Pjy0WRnE7XsfxjDkGhGok= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Pablo Greco , Keith Busch , Chaitanya Kulkarni , Christoph Hellwig Subject: [PATCH 5.15 08/98] nvme-pci: add NVME_QUIRK_BOGUS_NID for ADATA XPG SX6000LNP (AKA SPECTRIX S40G) Date: Tue, 5 Jul 2022 13:57:26 +0200 Message-Id: <20220705115617.815773044@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705115617.568350164@linuxfoundation.org> References: <20220705115617.568350164@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pablo Greco commit 1629de0e0373e04d68e88e6d9d3071fbf70b7ea8 upstream. ADATA XPG SPECTRIX S40G drives report bogus eui64 values that appear to be the same across drives in one system. Quirk them out so they are not marked as "non globally unique" duplicates. Before: [ 2.258919] nvme nvme1: pci function 0000:06:00.0 [ 2.264898] nvme nvme2: pci function 0000:05:00.0 [ 2.323235] nvme nvme1: failed to set APST feature (2) [ 2.326153] nvme nvme2: failed to set APST feature (2) [ 2.333935] nvme nvme1: allocated 64 MiB host memory buffer. [ 2.336492] nvme nvme2: allocated 64 MiB host memory buffer. [ 2.339611] nvme nvme1: 7/0/0 default/read/poll queues [ 2.341805] nvme nvme2: 7/0/0 default/read/poll queues [ 2.346114] nvme1n1: p1 [ 2.347197] nvme nvme2: globally duplicate IDs for nsid 1 After: [ 2.427715] nvme nvme1: pci function 0000:06:00.0 [ 2.427771] nvme nvme2: pci function 0000:05:00.0 [ 2.488154] nvme nvme2: failed to set APST feature (2) [ 2.489895] nvme nvme1: failed to set APST feature (2) [ 2.498773] nvme nvme2: allocated 64 MiB host memory buffer. [ 2.500587] nvme nvme1: allocated 64 MiB host memory buffer. [ 2.504113] nvme nvme2: 7/0/0 default/read/poll queues [ 2.507026] nvme nvme1: 7/0/0 default/read/poll queues [ 2.509467] nvme nvme2: Ignoring bogus Namespace Identifiers [ 2.512804] nvme nvme1: Ignoring bogus Namespace Identifiers [ 2.513698] nvme1n1: p1 Signed-off-by: Pablo Greco Reviewed-by: Keith Busch Reviewed-by: Chaitanya Kulkarni Cc: Signed-off-by: Christoph Hellwig Signed-off-by: Greg Kroah-Hartman --- drivers/nvme/host/pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -3342,7 +3342,8 @@ static const struct pci_device_id nvme_i .driver_data = NVME_QUIRK_NO_NS_DESC_LIST | NVME_QUIRK_IGNORE_DEV_SUBNQN, }, { PCI_DEVICE(0x10ec, 0x5762), /* ADATA SX6000LNP */ - .driver_data = NVME_QUIRK_IGNORE_DEV_SUBNQN, }, + .driver_data = NVME_QUIRK_IGNORE_DEV_SUBNQN | + NVME_QUIRK_BOGUS_NID, }, { PCI_DEVICE(0x1cc1, 0x8201), /* ADATA SX8200PNP 512GB */ .driver_data = NVME_QUIRK_NO_DEEPEST_PS | NVME_QUIRK_IGNORE_DEV_SUBNQN, },