Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp546030rwb; Wed, 18 Jan 2023 22:37:06 -0800 (PST) X-Google-Smtp-Source: AMrXdXtAcKfqiK9FomjXamWk07xhdPjQmWYzzaBMcuM3H+RDhXhQGDhj5QS6QS8I7+vaB+Nz4uMQ X-Received: by 2002:a05:6a20:2d12:b0:b2:6191:fdef with SMTP id g18-20020a056a202d1200b000b26191fdefmr10133319pzl.43.1674110226610; Wed, 18 Jan 2023 22:37:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674110226; cv=none; d=google.com; s=arc-20160816; b=lLe0KRk+C/iuL5KJfSp8T8+9QDpChlpfoygXIXWbUDwswl+HUSr6xk2W6ewpp6Pq4V +/Bg/VR+/DOii5UtjOXxiayQ/+gm4/MPYG8U//n918ap7SNWG/UUXYLFS+x/Avu4Pmh4 2fWNP9/yUQzFeOAZt/iQ9T9O9rLBUiKC8HYdAZNvRqNT3UT/YIiQNozM6nIcxiaVpc0g 0jYiQsbrbtyw91igFmkf501Bgr2oVCHatPcTg6doDyxoQpxsIGtxvP3ASbHFZTdF9BbT sYCQsyP79T3A5WgTLDSE5cjmj07olu6lQmavpI+9i6w072P3OObEZmjnI0WP48z9I4WI PpwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=FUo5UlMqNon9N8bRN5lqdB/3h9o2bwf4pZEOMD+1dWw=; b=zCMmS/e/dAIGUlZIsS6lZNjqFqZuUtALjZnX9okJkJUFT5hG2X3YVdHbAit1Jjy1bV rLy+XyNOu6x9rhRWRlm0MHQcaLrHHXoGPSnLwLSGbQvfQFt+9wLCV8Tv/HQs22+5KI4D XBFjnqyMyzgJqnK9JrYli55s60DW9Yzi3ex1K7UKuaia57BZ2c3jYe114NdIpChODuKO BVMfV31AAkwD8mi2agY/nKX7bDOdbOxfFichCQLS4Hf0ElO0ArcgOYp3QrHKE0iM0Wd+ BJOGsdZN8pPCvP47Yg5In5tUDgRJKAjVhMg+xPXhD9zfW4Yz5Ge0y+lqajns26wn6qGA iNaw== 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 o25-20020a635a19000000b004b32ea60624si31844780pgb.118.2023.01.18.22.37.00; Wed, 18 Jan 2023 22:37:06 -0800 (PST) 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 S229593AbjASGP2 (ORCPT + 43 others); Thu, 19 Jan 2023 01:15:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230122AbjASGPA (ORCPT ); Thu, 19 Jan 2023 01:15:00 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D73F656FD for ; Wed, 18 Jan 2023 22:14:59 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 657DC67373; Thu, 19 Jan 2023 07:14:53 +0100 (CET) Date: Thu, 19 Jan 2023 07:14:52 +0100 From: Christoph Hellwig To: Janne Grunau Cc: Hector Martin , Sven Peter , Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , Alyssa Rosenzweig , Eric Curtin , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] nvme-apple: Reset controller during shutdown Message-ID: <20230119061452.GA17695@lst.de> References: <20230114-apple-nvme-suspend-fixes-v6.2-v2-0-9157bf633dba@jannau.net> <20230114-apple-nvme-suspend-fixes-v6.2-v2-1-9157bf633dba@jannau.net> <20230118052450.GA24742@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230118052450.GA24742@lst.de> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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 Folks, can you chime in if this comment makes sense? I'd really like to send the patches off to Jens before rc5. On Wed, Jan 18, 2023 at 06:24:50AM +0100, Christoph Hellwig wrote: > On Tue, Jan 17, 2023 at 07:25:00PM +0100, Janne Grunau wrote: > > + /* > > + * Always reset the NVMe controller on shutdown. The reset is > > + * required to shutdown the co-processor cleanly. > > + */ > > Hmm. This comment doesn't seem to match the discussion we had last > week. Which would be: > > /* > * NVMe requires a reset before setting up a controller to > * ensure it is in a clean state. For NVMe PCIe this is > * done in the setup path to be able to deal with controllers > * in any kind of state. For for Apple devices, the firmware > * will not be available at that time and the reset will > * time out. Thus reset after shutting the NVMe controller > * down and before shutting the firmware down. > */ ---end quoted text---