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 7B427C433EF for ; Thu, 7 Apr 2022 01:17:14 +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=cKTa1P/LJr1nQKlSIgCEYiekxnYtVs2koGMq6mGqWdY=; b=QJ3AyAH65KaIijyEnrATDyt1AA 7HB/7cuL7/IKg0BT+G7dMI8I6sVT/kF/Pdj05AJUHyyX5JleTd8nUNvj175ZxXGEgAPzlTAwfBxfA IdmdiikJq/Mh0GeoSJQ5vAK1aSMJ460Jitmh1BbTXnnDEsa691MYw1er0u/iZivaP3Ewg8x7unFFp pS7mznCvGtkRluW5NBpSLYKTd5XJ3T3KEOuD7B54Eo58nUlmykzvM075vhGlDCN85WMRCOlXM6fzQ mLqxulzXFmBcOeOviArrTpVKkah1bESjO9xCt/KpZtemBHKfganVW2HqGRKTWByu+GHIMN9qpEUKQ R8VBpycw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncGlo-008XVa-00; Thu, 07 Apr 2022 01:17:08 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncGi9-008VUO-BQ for linux-nvme@lists.infradead.org; Thu, 07 Apr 2022 01:13:23 +0000 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 CF761B82690; Thu, 7 Apr 2022 01:13:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E4A3C385A6; Thu, 7 Apr 2022 01:13:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649293998; bh=FcdRimxO9vNxWK12F69s1kl20V31UR0lT7zb1lonvp8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lTeqOnVXp18AMrJLKOSYTJ6EyKNAYYmi53MEPoW+FO7EOFHBs5EZW+ft3qosdMu0a LdLHAH3ulgOVoAsKlobuK23G9zFbx4YURtNojVi+YY6RzoJHXtGa9POiyi0NCu+1sT ipxnwaJ0I9ZjbxRhs7Z5lhpKTJtGoan5Vmx9zfDRZwHjwFh/4eXB3j3O1UfR5+OwNL OvIHmLBVeyS/MrM623iqLbk69WeHCqSlvoRXPX+r3TkrL9SHDeNJy7OfnSHU+PV/+2 H4JqvQAz0HuHnSR8xwFBLQB1QAWmeIaudqZruxlFVgeawmkU4HvMu6pNLyd/A0heY/ Ba2LrXF0nBN8A== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Monish Kumar R , Christoph Hellwig , Sasha Levin , kbusch@kernel.org, axboe@fb.com, sagi@grimberg.me, linux-nvme@lists.infradead.org Subject: [PATCH AUTOSEL 5.15 08/27] nvme-pci: add quirks for Samsung X5 SSDs Date: Wed, 6 Apr 2022 21:12:38 -0400 Message-Id: <20220407011257.114287-8-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220407011257.114287-1-sashal@kernel.org> References: <20220407011257.114287-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220406_181321_615244_C47A6FD9 X-CRM114-Status: GOOD ( 13.89 ) 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 From: Monish Kumar R [ Upstream commit bc360b0b1611566e1bd47384daf49af6a1c51837 ] Add quirks to not fail the initialization and to have quick resume latency after cold/warm reboot. Signed-off-by: Monish Kumar R Signed-off-by: Christoph Hellwig Signed-off-by: Sasha Levin --- drivers/nvme/host/pci.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index b925a5f4afc3..af2af69225ee 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -3372,7 +3372,10 @@ static const struct pci_device_id nvme_id_table[] = { NVME_QUIRK_128_BYTES_SQES | NVME_QUIRK_SHARED_TAGS | NVME_QUIRK_SKIP_CID_GEN }, - + { PCI_DEVICE(0x144d, 0xa808), /* Samsung X5 */ + .driver_data = NVME_QUIRK_DELAY_BEFORE_CHK_RDY| + NVME_QUIRK_NO_DEEPEST_PS | + NVME_QUIRK_IGNORE_DEV_SUBNQN, }, { PCI_DEVICE_CLASS(PCI_CLASS_STORAGE_EXPRESS, 0xffffff) }, { 0, } }; -- 2.35.1