Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8871711rwl; Tue, 10 Jan 2023 21:14:01 -0800 (PST) X-Google-Smtp-Source: AMrXdXs/sh6x96PnfvJFe92WtbgshxXmOFmlpsEXm3Bfnf4poUShc4lbCwrTaUky9RDy0Tt8mfE0 X-Received: by 2002:a17:906:6693:b0:7c1:8ba7:3182 with SMTP id z19-20020a170906669300b007c18ba73182mr68493376ejo.69.1673414041584; Tue, 10 Jan 2023 21:14:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673414041; cv=none; d=google.com; s=arc-20160816; b=qZ3rZoeQCz2lx9YSjrFz80OyF3AHqciEp9p/PlJV5MM20OvjSh/NaPtBn7MS49fe22 A16SRX7EkOl16RuRdAPkdORhu7a9Aluo9z4YmI/pKIi77IfxokDX2cX/V7ZsUKJmjc4t RZc9QzHvY0QXY0Xh6u3mpP7k6W6pTvV+OUWpyzLLgVP1j1d70pKUAFwpD91C5uoBQQ0p x9AsziDCr134KHDQpYzGRpV5QGYLXNGhLcsAYvjSFtX5ngZONnjYA0arbvQFVJrmWhJJ 3Vj0nezm7aeVqEbi51lzFYva2wR6QWSo4dN2Ll9Q+YAIrbJ6ymuhZydGdv97adNVrXyn mEMQ== 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=9JZ0wz7CTzxTiGMuroi1nJZu6AEB2HdsujhTS175WUw=; b=ez35NAmsBQE8CXrYOdnXUgEhz2IvyRjdJzJFb7ck9/DVq9wZgYeTE+FRMAtd4mdlKX 8WTiJ1X1Dd7Ugh9iox0PVFtJZOiiGDDCmyB8jrwJW42dmkzbYen6dMHoEmhKxntEOhuO 6QH2eC92VKE56py02EFMg5hZ+Dwmzg4jY5odyjQ3uQmSf1jSHvAw8eFOSEB43yCLbmV7 uP930MNrEFMeggMuicTcvZboxtwdFULrYt3DWoIVK/wfX18LaAFg9hgcCXCxpSjG+Tt/ P0YF3sxKxImnINmhPJMZuQGVrmMZzc8SNKwUvBWaz14jNd7M0HW1GmpfAVSO5R0zrils yZAA== 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 wt9-20020a170906ee8900b0084b8885984bsi14304473ejb.517.2023.01.10.21.13.48; Tue, 10 Jan 2023 21:14:01 -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 S229793AbjAKEu7 (ORCPT + 53 others); Tue, 10 Jan 2023 23:50:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230194AbjAKEuz (ORCPT ); Tue, 10 Jan 2023 23:50:55 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9F625F9F for ; Tue, 10 Jan 2023 20:50:36 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 53F5368BEB; Wed, 11 Jan 2023 05:50:32 +0100 (CET) Date: Wed, 11 Jan 2023 05:50:32 +0100 From: Christoph Hellwig To: Hector Martin Cc: Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , Eric Curtin , Janne Grunau , Sven Peter , Alyssa Rosenzweig , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] nvme: Handle shut down controllers during initialization Message-ID: <20230111045032.GA15520@lst.de> References: <20230111043614.27087-1-marcan@marcan.st> <20230111043614.27087-3-marcan@marcan.st> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230111043614.27087-3-marcan@marcan.st> 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 Wed, Jan 11, 2023 at 01:36:14PM +0900, Hector Martin wrote: > According to the spec, controllers need an explicit reset to become > active again after a controller shutdown. Check for this state in > nvme_enable_ctrl and issue an explicit disable if required, which will > trigger the required reset. I don't think this belongs into nvme_enable_ctrl. It seems like nvme-apple is missing the equivalent to the nvme_disable_ctrl call in nvme_pci_configure_admin_queue, though.