Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp238133iol; Thu, 9 Jun 2022 02:57:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzidGAt2YqRS6lgqJPz6F9t5eUIMoCoLUVZ0RvnT+jLPSJoFBgkQZC0IJ03OvkVS/WAKKAv X-Received: by 2002:a17:907:1612:b0:711:e427:e9bc with SMTP id hb18-20020a170907161200b00711e427e9bcmr10859202ejc.55.1654768668175; Thu, 09 Jun 2022 02:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654768668; cv=none; d=google.com; s=arc-20160816; b=bwkUnq0m92gh7wAdeC1gZZGCVOdidPsr/o8JXcUdM/WS2mJgUP2yaMTPKRRXeu/ruZ 1uZLc1Lz+9BIw+TqvU5ObLG+YLRofW8cJxFTY6GYkgkhfLyKVTj+EbIOM/Iq7nFlo4/h E4Q8WmnqgtljvvnIYz7Hz7IJMI3uJc68Z6wUbHzJdB+n7BZPcIIYNy0NcuVurOjNl5dU h3O3L0jYAHBO3dkhTQwJ9gafb5CYWQmZCo/ZfqTL1ADYQw1hWq4VSIZB+c+L2UPhRMwJ +jypkG4lAVfqQK0fjb9WtbbOWGWmfuyt0zaJ162GeHK1SbIyfy4suviUEGiDQn5KFdOp ml0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XLQ8mMO0hzeJi8rzxsf9luStKEDEI8Zafy1QgR2AB2A=; b=mGnBhj4UZdDb5su5JVwML7uXcYlsa7kBvZ2zFrPitHkwlnlUP3tqxGJtsyN3hjqcit pO76m3f3w7rk4ggbGkKpoK+V1hsgIzPFE977faT5zxT2S8ThKvMIre2SBs4PFgHCOE50 cS05lYimYQWcUdLQtYwu7DG/tz3IkXBOXvU+qESZc3KACGXBHqhlynx3iZL6PjE5J81h UAoMP2hmkK6KqjiK1Lu2RlfYnpD7JAgUx/X8F3RPCdJfQ4moqDzNoEToknLiaE/vuKoV 1o/NfEDVNXVVhXNVGOF9gHzs/miKdZyOXOOTn+0VkJ/BLtzrI6MHjkf046Qpo6LtEhol zJ/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b="KWO6SD/+"; 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 x13-20020a05640226cd00b0042fadee7b8esi21412668edd.322.2022.06.09.02.57.22; Thu, 09 Jun 2022 02:57:48 -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="KWO6SD/+"; 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 S232694AbiFIJjC (ORCPT + 99 others); Thu, 9 Jun 2022 05:39:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242775AbiFIJjA (ORCPT ); Thu, 9 Jun 2022 05:39:00 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 444B73A724 for ; Thu, 9 Jun 2022 02:38:59 -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 E50D2B82C94 for ; Thu, 9 Jun 2022 09:38:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71CE7C34114; Thu, 9 Jun 2022 09:38:55 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="KWO6SD/+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1654767533; 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=XLQ8mMO0hzeJi8rzxsf9luStKEDEI8Zafy1QgR2AB2A=; b=KWO6SD/+lFHS9/dt8B1qD6KGi1uc18TwUSdHr8x8fDXwydBzf8WzB7SrX2t2wQPHZ7u2ig AwGmSU7A2YIpKbZTIRhmrT/3mDj0D/9tuVIaUYdc8zhps4iSGZJu9jUPR+h8IrTQYzwMxl vU6uRNynWcY3WJIJnd5zo7rUxOPcgHc= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id d6f35694 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 9 Jun 2022 09:38:53 +0000 (UTC) Date: Thu, 9 Jun 2022 11:38:47 +0200 From: "Jason A. Donenfeld" To: "R, Monish Kumar" Cc: "open list:NVM EXPRESS DRIVER" , Sagi Grimberg , "alan.adamson@oracle.com" , LKML , Yi Zhang , Keith Busch , "axboe@fb.com" , Christoph Hellwig , "Rao, Abhijeet" 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] Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 Hi Monish, On Thu, Jun 09, 2022 at 09:32:02AM +0000, R, Monish Kumar wrote: > Hi Jason, > > I would like to provide justification for this Samsung X5 SSD fix added. > We were facing SSD enumeration issue after cold / warm reboot with device > connected ends up with probe failures. > > When I debug on this issue, I could find that this device was not enumerating > once the system got booted. Moreover, we were facing this enumeration issue > specific to this device. > > Based on analysis, due to deep power state of the device fails to enumerate. > So, added the following quirks as a workaround fixe and it helps to enumerate the device after cold/warm reboot. If new Samsung X5 SSD's are working fine as expected, we can remove those > fix. FWIW, all of that should have been in the commit message. Also, "based on analysis" - what analysis exactly? I have no way of thinking more about the issue at hand other than, "Monish said things are like this in a lab". In any case, I believe the 970 ID predates that of the X5, and destroying battery on those laptops and introducing boot time delays isn't really okay. So let's just revert this until somebody can work out better how to differentiate drives that need a quirk from drives that don't need a quirk. I sent this in: https://lore.kernel.org/lkml/20220609084051.4445-1-Jason@zx2c4.com/ Jason