Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5918688rwb; Tue, 17 Jan 2023 21:37:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXtGzy4MMZi4MBRIELcyxXotCZpGR5JlIf2kxTQhojW0xpjX4AhMepgm8uetcIBQ+iKcPwPo X-Received: by 2002:a50:ee09:0:b0:48c:bd9b:1fa4 with SMTP id g9-20020a50ee09000000b0048cbd9b1fa4mr5864027eds.10.1674020275699; Tue, 17 Jan 2023 21:37:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674020275; cv=none; d=google.com; s=arc-20160816; b=Tv6YBdVUIwcNGU0i+oQzXphqVpQemEuibxPsDXwSS+TWyATfHE+M8tBVdeFYDZC5YR +a2O/e3EvEuYvN2mCgdh8EmfDUzfMZCHlgOBAMTNLV+whjLb5J50LPaf4TUwRblIdXKm nRxJNGlSqiXQqMrSlMK5WU09vWjDdQXiSr+Nv5/4TTvKoR9AC6pCx5VQNMtcpJjek8Gs mY++gBWqtd22OMgchJhW/dCdRa0IynKz/wabeuLxfZQ/gLegrHA4yT2kdi7trrCiwtwK 1RW+5yqPNzZ6Dcn0IC9aapvAPgTd80x9DKpBIna+ryFyqPQTtsWwh9rsBKDc2RzKKRNz ZRyw== 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=F/VERFlewyBndmKXD50t1bXMXQuHPnE/gbvcvqC1DXI=; b=unnNBSXIeWoV3x9Qcakm5N85HmNx+sEp/jqze1GV5SihcIdl70zc9xfbnYT0fZDoGS vHymd55Ri1uyDeVI+oXuX8THT0aDfoylt6P/ZePGMKP2I30pQjFpVCdlL+KfEezCkxJQ 2A5dlUFo1LKhe4Qp8ieu/NAs/rzTwMGmEQYms52jo8Pdixvlf85QHXGzFxqDmFztXkzg +oLxJknPPQqGmDbeOAXWCzRKmFNOQvWo4tBuwkncs+WBncb7Occswutj8jvfmS5fgPPO V7+KgHPnnDPbbV6GD2I+rqfE37bdev1XsFJUR6yv4LPD/dkZ53Iuw/1AUSgbHOuLt0ns Dtrw== 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 l8-20020a056402124800b0049b3070916esi5804364edw.387.2023.01.17.21.37.44; Tue, 17 Jan 2023 21:37:55 -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 S229528AbjARFZ3 (ORCPT + 46 others); Wed, 18 Jan 2023 00:25:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbjARFYz (ORCPT ); Wed, 18 Jan 2023 00:24:55 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D824C50871 for ; Tue, 17 Jan 2023 21:24:54 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 74CF167373; Wed, 18 Jan 2023 06:24:50 +0100 (CET) Date: Wed, 18 Jan 2023 06:24:50 +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: <20230118052450.GA24742@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230114-apple-nvme-suspend-fixes-v6.2-v2-1-9157bf633dba@jannau.net> 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 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. */