From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D7AEC3DA78 for ; Tue, 17 Jan 2023 05:58:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235265AbjAQF6k (ORCPT ); Tue, 17 Jan 2023 00:58:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235503AbjAQF6Y (ORCPT ); Tue, 17 Jan 2023 00:58:24 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB7E0222E5 for ; Mon, 16 Jan 2023 21:58:22 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 54EDA67373; Tue, 17 Jan 2023 06:58:19 +0100 (CET) Date: Tue, 17 Jan 2023 06:58:19 +0100 From: Christoph Hellwig To: Klaus Jensen Cc: Christoph Hellwig , Keith Busch , Jens Axboe , Sagi Grimberg , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: regression on aarch64? panic on boot Message-ID: <20230117055819.GB13795@lst.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 16, 2023 at 10:57:11PM +0100, Klaus Jensen wrote: > Hi, > > I'm getting panics when booting from a QEMU hw/nvme device on an aarch64 > guest in roughly 20% of boots on v6.2-rc4. Example panic below. This smells like your setup somehow doesn't wait for async driver probe. Does the hack below work around it? diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index b13baccedb4a95..f47e19c701d520 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -3508,7 +3508,6 @@ static struct pci_driver nvme_driver = { .remove = nvme_remove, .shutdown = nvme_shutdown, .driver = { - .probe_type = PROBE_PREFER_ASYNCHRONOUS, #ifdef CONFIG_PM_SLEEP .pm = &nvme_dev_pm_ops, #endif