Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1292736iog; Sat, 25 Jun 2022 05:49:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u/wexM6p6ZCqACpeQvubsvyx6FYAXUT2H5uRgNomFAVJTsY30c+q0mNTFY+Np32DUbrBZm X-Received: by 2002:a17:907:6d12:b0:711:d524:8c88 with SMTP id sa18-20020a1709076d1200b00711d5248c88mr3776336ejc.615.1656161368854; Sat, 25 Jun 2022 05:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656161368; cv=none; d=google.com; s=arc-20160816; b=f42lOVJcNl8PxZJSLwz+CEfSgAsbFdZgazNI1eDJKlQMWvpu+nsRYNpTFLD002Bf8l Hx5MF9nrkVspS/Jz1XdT+eslwv8HBsCmgln+I1qAi5vAf4mjtqDhoQtCN7tMxjjFtppv PEw6EFxCkhrZ/CqDZdiOHuNf8eMFdXyh8EQBpzVXim+Y6zD7WNCMA3gvZqDEp01jxCP5 nd+05v1awdKqMJ+xJ0ksxb61XD40A7DH7mN677lU1bqtzaRBNDv12XDLrpotMaRkgTW1 RMeQkWrsPDsG2393fkJgJwWRaKfyvsD8oXHx26ngsvCu46M+s3HJn7gZdmY0vzbC1Rum Dypw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=TNq/ADQUhhdDnVg0+75xr4EL0cHKTPjPXQtu5zb7BHo=; b=Z+pEm6A7/zfUsnCQvM1KX/t46jxYj67Ia1TRUuud0cbLnoRwC2sj3Hpv4xc2QxSGuo lsvozq20fPcGWd4ULpOWe7a/uF14K0zapD9WCg7ehKJko8Il9n8HfJaINJCSX/J+mZ3B vdZ9IcDRzvOw6fPUy+dYWfJlCPbtG1/7l6JuAnSj5yQM0bTx1cOAhRP9HgW4DXbGCWw3 EAo5aryGI8+Hk+QJ5mmzS+UyaLE5gxZ62yAUdjNEFUITK+lVnQz684jBFwFGFtrmz6Fe ne5T57BoOy0PKcyOUQBp/tnJq6intfMeq04wwfqQv2O4eiK07Sqd8MR9IfMIgeMqBX5k +J3A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i17-20020aa7c711000000b004358cd8c618si3367821edq.429.2022.06.25.05.49.03; Sat, 25 Jun 2022 05:49:28 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232852AbiFYMPQ (ORCPT + 99 others); Sat, 25 Jun 2022 08:15:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232499AbiFYMPP (ORCPT ); Sat, 25 Jun 2022 08:15:15 -0400 X-Greylist: delayed 273 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 25 Jun 2022 05:15:13 PDT Received: from mail2.sp2max.com.br (mail2.sp2max.com.br [138.185.4.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A86B92CC9B; Sat, 25 Jun 2022 05:15:13 -0700 (PDT) Received: from fedora.. (unknown [190.245.244.131]) (Authenticated sender: pablo@fliagreco.com.ar) by mail2.sp2max.com.br (Postfix) with ESMTPSA id D23157B092A; Sat, 25 Jun 2022 09:15:08 -0300 (-03) From: Pablo Greco Cc: Pablo Greco , stable@vger.kernel.org, Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] nvme-pci: add NVME_QUIRK_BOGUS_NID for ADATA XPG SX6000LNP (AKA SPECTRIX S40G) Date: Sat, 25 Jun 2022 09:15:02 -0300 Message-Id: <20220625121502.9092-1-pgreco@centosproject.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SP2Max-MailScanner-Information: Please contact the ISP for more information X-SP2Max-MailScanner-ID: D23157B092A.A1B74 X-SP2Max-MailScanner: Sem Virus encontrado X-SP2Max-MailScanner-SpamCheck: nao spam, SpamAssassin (cached, escore=-2.91, requerido 6, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_00 -1.90, T_SCC_BODY_TEXT_LINE -0.01) X-SP2Max-MailScanner-From: pgreco@centosproject.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: --- drivers/nvme/host/pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index d7b24ee17285..c9ebe6072498 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -3470,7 +3470,8 @@ static const struct pci_device_id nvme_id_table[] = { .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, }, -- 2.36.1