Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3491243ioa; Tue, 26 Apr 2022 04:45:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz10WRZ/43qvdNLVOtVfcJf/T0lnwZaPpjNG1DBcXGs+nF36i7gJ9+f2CA+s/QttQ8eQ5oC X-Received: by 2002:a05:6402:1e8d:b0:426:9:6ec with SMTP id f13-20020a0564021e8d00b00426000906ecmr1215511edf.55.1650973513669; Tue, 26 Apr 2022 04:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650973513; cv=none; d=google.com; s=arc-20160816; b=Px2h/3VJJPgikRoWbD9Rb23wvVm7qCnMBqGp69u8LGQtcPEFdTmHgdd77jlSD475Yc 8pOfCgpVfUwjztraafB4H7bYP2L4nC1wQovH8KtB2RaV9qoekaoOrAljHdialV7fOQGq YCDTZb26MoyXfRjLnNHr6V/El0QWIfl3CoiImlauNfxulB1kifI3IvZsmPBvD2j0991a xz+6HDZMNjURN4II3EVs3VDiTKNz1NdqA7Z4Msj/+h+ida/16CMHluaikXcsxA/EdMkz kVKqRjmkzIPxeY8hEFzNsjkXTChrMJ6qiNLtBTI8I7ofYlh/HBnSBobu+yHvhia+sgYw nWtw== 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=LcvLgBpKIOV6Jd9H2spDW9m+7vA3gPEDi8b60dCavqE=; b=JNJFYCO0iMvL0cSWY+RA1pLQs7xsJqf8Afwm/k0RK2fmKI1SQZ/U3nsISXlSd7GLHR jExC212eVGpvUN8Nn3nVCMih0+UWTq1U7UoLDiLbZ/VlPLjZVNrmEYpuJ7Ww0HapemvK fVqUSzr5qHMujGk/jh4XRYbnQd/tpib0UbIaGOVk2448w+urUuSaZO/dqq8t/gvAW9x9 79fSdTSG/u3FXlhtKPzk1rtNwqSrogL+URs7dpjcg/M7ptAdZJj5YWY9Z9s2LNrJ73i4 fQbaCU0xO6QRev5DbCkKcqwySOjDoS8M4r/X6plbpVoPGGoSjjTlw6Z8YSmOTFNk0rGG Y4lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=E4YGKBM1; 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 p26-20020a17090653da00b006f393afb98esi4554516ejo.509.2022.04.26.04.44.49; Tue, 26 Apr 2022 04:45:13 -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=E4YGKBM1; 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 S1346506AbiDZJLT (ORCPT + 99 others); Tue, 26 Apr 2022 05:11:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347215AbiDZIvO (ORCPT ); Tue, 26 Apr 2022 04:51:14 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AE4C175328; Tue, 26 Apr 2022 01:39:44 -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 ams.source.kernel.org (Postfix) with ESMTPS id 495C5B81CED; Tue, 26 Apr 2022 08:39:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B954C385A0; Tue, 26 Apr 2022 08:39:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650962382; bh=blG1BoqgDz4cY3SBTCFsQD2tkAE2zYDC7RKtOQpGP2s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E4YGKBM1vdSBv3dsILBgFeCbdkjuDU8SDAuEWR5Lu3jQvHLZgH7n3A8a5H6sFLuxO YarFR3/3PLQb0UNNp8A462S+NOZwP+NtQaHU5De00OKukFlh86adBrM/2Bfbs6W61k antUvKFZt4w/lcDTf2IfuzS+3Tm54aiAuwUvctUI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?=E9=87=91=E9=9F=AC?= , Christoph Hellwig , Keith Busch , Sasha Levin Subject: [PATCH 5.15 075/124] nvme-pci: disable namespace identifiers for the MAXIO MAP1002/1202 Date: Tue, 26 Apr 2022 10:21:16 +0200 Message-Id: <20220426081749.433897361@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220426081747.286685339@linuxfoundation.org> References: <20220426081747.286685339@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.7 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 autolearn=ham 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: Christoph Hellwig [ Upstream commit a98a945b80f8684121d477ae68ebc01da953da1f ] The MAXIO MAP1002/1202 controllers reports completely bogus Namespace identifiers that even change after suspend cycles. Disable using the Identifiers entirely. Reported-by: 金韬 Signed-off-by: Christoph Hellwig Reviewed-by: Keith Busch Tested-by: 金韬 Signed-off-by: Sasha Levin --- drivers/nvme/host/pci.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index b925a5f4afc3..61f01f5afdc1 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -3352,6 +3352,10 @@ static const struct pci_device_id nvme_id_table[] = { .driver_data = NVME_QUIRK_NO_DEEPEST_PS, }, { PCI_DEVICE(0x2646, 0x2263), /* KINGSTON A2000 NVMe SSD */ .driver_data = NVME_QUIRK_NO_DEEPEST_PS, }, + { PCI_DEVICE(0x1e4B, 0x1002), /* MAXIO MAP1002 */ + .driver_data = NVME_QUIRK_BOGUS_NID, }, + { PCI_DEVICE(0x1e4B, 0x1202), /* MAXIO MAP1202 */ + .driver_data = NVME_QUIRK_BOGUS_NID, }, { PCI_DEVICE(PCI_VENDOR_ID_AMAZON, 0x0061), .driver_data = NVME_QUIRK_DMA_ADDRESS_BITS_48, }, { PCI_DEVICE(PCI_VENDOR_ID_AMAZON, 0x0065), -- 2.35.1