Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2119985rwb; Thu, 19 Jan 2023 21:28:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXuk50wzBqvtKUwjsc3e51VEgoFfz3uwS2yHbCXFKCyGya9Oeu5W//zuozAmgxcddRaM6VxT X-Received: by 2002:a05:6a20:54a7:b0:b8:4c8a:df85 with SMTP id i39-20020a056a2054a700b000b84c8adf85mr19625853pzk.20.1674192528030; Thu, 19 Jan 2023 21:28:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674192528; cv=none; d=google.com; s=arc-20160816; b=LQzabsiV2sCn4kWGpUhf1bEi0HxHuBP8sw+1eQCmSvWvSrD6GQXL5Jx3NaKEnyX+AC t9juPO/GVwhDcy9uJ7Oq5X5vaSaD0YCq1CkbcAUeRZSHAfovFUrt+mSUqVx18OCpjpTw XktFeXtHXDtZ19M6GY3qW7BmQywuKn3SWFZtFzJxbxv9922ze1Zvvf3IF5mZ8EGR/PEV NF0DsKuuCRoYYFEhYEHdFgEI/ow/Gks+jReVaZEomh/G2Yz8tg09ZiHcHmVlLH1TFb/v Kba8d+Ir9qi/lees8UJqKfKhMDaHVP9GTGJOO6oRvtbLKoVZY7std9YS2oT///rslYMI 8EiA== 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=dIyPRgIDUhMiRlxzFHo4rUEdOiQaPuaFWtkL56o8cEk=; b=blbmpdzV09lmBpza1a61YFQhKwGUe0rUrB63A4zSDgiMXptv1RgBIArTesFDmSj0Rw wk6xOMbBG5TxRgYeIXKSqdCOmyq6LFA/LUbouJL7j7Rokn4uJGF+mr1/vhRDJ6pJiDX6 BEwpla9b4goYfjHc0FlS7Uh4vqrcWRSakICier5kRwfSznT6slrFfBlDvLFAY/U9sV2B UVm27ZcRd3KOXpelK75bE6VKrfTgiQ5JYIblKjbJi3FKm/48JSvrghCQszXQfynKTF/s 2jd71ZBaf+4fWPP8e3dX8TwnFD6Fy+o5FgAifv56njFJce9YUvsVm41L4oVW1EzAATXK qi8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CG5RdnFq; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s199-20020a632cd0000000b0047839aeb6e4si43635809pgs.363.2023.01.19.21.28.42; Thu, 19 Jan 2023 21:28:48 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CG5RdnFq; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231214AbjATFLe (ORCPT + 47 others); Fri, 20 Jan 2023 00:11:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230098AbjATFLE (ORCPT ); Fri, 20 Jan 2023 00:11:04 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0A7FC4E9E for ; Thu, 19 Jan 2023 20:59:10 -0800 (PST) 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 27FCFB8262B for ; Thu, 19 Jan 2023 16:49:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22A15C433D2; Thu, 19 Jan 2023 16:48:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674146939; bh=ay0Zt/DVdmWEpoJIkbEHkl5DZpvrjQjuK8WtoM45jMQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CG5RdnFqmkh/QFUyNL9Mv2Bx/eu+txGvUPxeOZjd+W7zzpbUMoLGYwaTFHeRsUYIq b1V0JdztzFFYGGWrTTTFssCj4AIjnTNG3jT+WRjRuokV4rb1ViWIK+kkHm3zQFhCV5 KrqtROjEoAmeSieRs87dKrQRrwpHjsX0Q92ishdFQkzeBfsJqDmv+R7viYtOTiuyDJ 9EtQ51C3c/vc7CRAlsb6XF7dOO60lklFruJQxzw8Ya11qbM6fXsLMVe7h3PZEuTB70 d5X5rqzCnRLDPRbKOkrvaQtERmScNffkh9qSkmHSTb/c9Yp4KuhnO5VA00Kgno/QYB fZ0BzHKeQlj9A== Date: Thu, 19 Jan 2023 09:48:56 -0700 From: Keith Busch To: Christoph Hellwig Cc: Klaus Jensen , Jens Axboe , Sagi Grimberg , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Rafael J. Wysocki" Subject: Re: regression on aarch64? panic on boot Message-ID: References: <20230117055819.GB13795@lst.de> <20230117063735.GA14468@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230117063735.GA14468@lst.de> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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:37:35AM +0100, Christoph Hellwig wrote: > On Tue, Jan 17, 2023 at 07:31:59AM +0100, Klaus Jensen wrote: > > Good morning Christoph, > > > > Yep, the above works. > > Context for the newly added: This is dropping the newly added > PROBE_PREFER_ASYNCHRONOUS in nvme, which causes Klaus' arm64 (but not > other boot tests) to fail. Any idea what could be going wrong there > probably in userspace? Prior to 6.2, the driver would do it's own async_schedule, and that async probe function would flush the first scan work. wait_for_device_probe() was then forced to wait for the scan_work to complete, which brings up the root device. We're not flushing the scan_work anymore from our probe, so this should fix it for 6.2: --- diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index b294b41a149a7..ff97426749976 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -3046,6 +3046,7 @@ static int nvme_probe(struct pci_dev *pdev, const struct pci_device_id *id) nvme_start_ctrl(&dev->ctrl); nvme_put_ctrl(&dev->ctrl); + flush_work(&dev->ctrl.scan_work); return 0; out_disable: --