Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp212252iol; Thu, 9 Jun 2022 02:15:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCzySr9d6MjFu7970B0zI8zGITLn7UF8K/7aW3IQJagQRf4Sea/gBXWF1kGggfTTO3jJlh X-Received: by 2002:a05:6402:c45:b0:433:406a:6ade with SMTP id cs5-20020a0564020c4500b00433406a6ademr1828610edb.7.1654766115216; Thu, 09 Jun 2022 02:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654766115; cv=none; d=google.com; s=arc-20160816; b=HFdm4Cb/1ppbxzuLdK7c6ptCtprh9xybluJImzZGLCJ3QGN4KpKketrnl0nTauqtYi H+oeNwfUCjItVVblHNZAZCFdFCWlhSInuiwhIZunE4n4p8697+eXV0ndoMnU/YtKgWUx dGqyQYahUri7Jigf3Zaem4tasE0Ycvnz4Fjn4tdu1/P998Jqgg5navLZziSVWW5Dqonh ZNOiWwc/0V8vfbAUH2cE/PMaLr6x4OO6+o4aSEqG/K6FScKcfeqFdIRbSZhEirzED8YV HHKyJQ8Q8D4GqlcxSPn/puoZvQK4ZkDP+Hz/AVJH+3MvrxShe9SUlT4+B+L4qplDqt0v 5D6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=fT4kfHBd0/oRv2uFCKoqenVhcKchfeKcVMd89ZZ/UXk=; b=gHw8jZ0HuAe9PCEiMMFoB4RQt4M84RzZykPUTLNvLsZToWQzJWllZ+IdsE3IkXoVUw DNc8P/zyZHCgnwHTcLdtL1+JdXmvQU6vs23eFxCIwWIYpif934gjDtSEW8Ed+oUjRHu0 lenaeS066JpYhBaQHPTREHKvDt3sYiraCjwmBFR81/TRoOkq6gKvbccmzXKqeYhs1TNZ 0baWzywiD15it2b6LUYy+kaTVpRvxTumpeFFiF8YR3rrUwWS4hKRgO72POQODgmcvlfY B2s63juB9QhcyUQezu2P79bTywvsuE4HubM1b8cUvNGne6hALsL0IEGaRtzMOLgl3BRb i6ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=oS5vlGJc; 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=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ka7-20020a170907990700b006fefea3ec2fsi5043637ejc.72.2022.06.09.02.14.49; Thu, 09 Jun 2022 02:15:15 -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=@zx2c4.com header.s=20210105 header.b=oS5vlGJc; 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=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241585AbiFIIeq (ORCPT + 99 others); Thu, 9 Jun 2022 04:34:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231685AbiFIIe3 (ORCPT ); Thu, 9 Jun 2022 04:34:29 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEBA21DE2F1 for ; Thu, 9 Jun 2022 01:34:28 -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 97D16B82C58 for ; Thu, 9 Jun 2022 08:34:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E57F6C34114 for ; Thu, 9 Jun 2022 08:34:25 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="oS5vlGJc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1654763664; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fT4kfHBd0/oRv2uFCKoqenVhcKchfeKcVMd89ZZ/UXk=; b=oS5vlGJcnsJeIcskWfzosweRKFkVlmspV4/ddozWtEzmxCJVCBcGuGPBxNJCJMybGGyYSA OEgAmfNGJpK9pgkeLYvMVWw4PcQo7zkBNrhIVTKlFs189n8270LLPzwv91b2Tq5uE/Y5aX R7DQZbE98rrydpJxsRFCiHgwldW8o4g= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 6e9930e9 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Thu, 9 Jun 2022 08:34:24 +0000 (UTC) Received: by mail-yb1-f180.google.com with SMTP id w2so40573280ybi.7 for ; Thu, 09 Jun 2022 01:34:23 -0700 (PDT) X-Gm-Message-State: AOAM530RijgUDqyjsqT7iIPcCdebkH7mL1iHgmV3Z3pQ37xgIO053d8c 1DjSaK0gwRXdHZzijOCl0itjDc7fVGh3vXTcnik= X-Received: by 2002:a25:bf85:0:b0:64a:422c:24e7 with SMTP id l5-20020a25bf85000000b0064a422c24e7mr38705591ybk.637.1654763662531; Thu, 09 Jun 2022 01:34:22 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Jason A. Donenfeld" Date: Thu, 9 Jun 2022 10:34:11 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: 2 second nvme initialization delay regression in 5.18 [Was: Re: [bug report]nvme0: Admin Cmd(0x6), I/O Error (sct 0x0 / sc 0x2) MORE DNR observed during blktests] To: monish.kumar.r@intel.com Cc: "open list:NVM EXPRESS DRIVER" , Sagi Grimberg , alan.adamson@oracle.com, LKML , Yi Zhang , Keith Busch , axboe@fb.com, Christoph Hellwig , abhijeet.rao@intel.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Hey again, Figured it out. 2.3 seconds to be exact... It looks like this is caused by: bc360b0b1611 ("nvme-pci: add quirks for Samsung X5 SSDs") https://lore.kernel.org/all/20220316075449.18906-1-monish.kumar.r@intel.com/ This commit doesn't have any justification and got applied without much discussion. Perhaps Monish could supply some more info about why this is needed here? FTR, I have no issues on my system when reverting that. Perhaps it should be reverted. (I can send a revert commit for that if necessary.) Looking further, however, the PCIe ID is said to be for a "Samsung X5", which Google says is a portable thunderbolt drive. Is the PCIe ID correct? On my system, this is the PCIe ID of a Samsung 970 EVO Plus. Is it possible that Monish copied and pasted the wrong PCIe ID? Or has Samsung *reused* the same PCIe ID on both devices? In which case, we'd need some additional data for that quirk to avoid the delay. Also note that this (potentially errant) commit has been backported to stable. Jason