Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4321134rwb; Mon, 16 Jan 2023 22:17:06 -0800 (PST) X-Google-Smtp-Source: AMrXdXtsVQb+Kh1q/pIbKd6VO0m+x17/+afFWtuuFjqeitXIdP7/ud6daCgHpT761xShTHCuWUQX X-Received: by 2002:a17:906:1918:b0:7ad:ca80:5669 with SMTP id a24-20020a170906191800b007adca805669mr1610113eje.64.1673936225835; Mon, 16 Jan 2023 22:17:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673936225; cv=none; d=google.com; s=arc-20160816; b=Ucx303rza/iQJJ/mZ0TkkR51cxd26flZRNULQ7PpptK1y+cU3RguEIDyuJxZ+4eLFu ImY54EyO/KI9xgzPQ2QuIQeGdwBI2Pl7o5FfZ1eh/ktbncLNYPDkzcyRD2KcXA4p/QQk YF5dQG9P8XUABUPkbbuZvSbZSo3k/jjoyvQdrRhVBMF2t/axpmGJb0lYdSFcixaHA8NR c1eONqaAp/ZdUPUswHdqnN2HTtfTq5/IMagMxbPq+7XZGjLqyiQubd1N3+1qECGYdQdp nKmbQCzjR+u+RRj+mpKAxieBfMFLuRjd953ycxFuFOEfw1Nl46uJIZ3tVYhEZD4mtqI5 XOlg== 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=EXIYO6rXhT1+VLu3//uM5Tl3Y+gAagv7iPCsQM7USgA=; b=OXr6lTVjtOFvUwfKesc9r0Uz2qpMbi87hNoe8uFmKFGyiVb+9veQz2Q+FOAFKTckUu lHR1pRXYYtwm5eF8/kEJSN6RPh9qElY7cJCAtO7ystC88Gi0tMT5oU54yxhMxW/BF36v uvJybihLwZ9O6i7B+Z6hIG6bqOamts5wf5TSqkY+tWqTsgDy2kHqNzzihJcnSVoFkh3r Rn8CP45SLRpBQAuhmkJEpiutybBPdEG2N/ferhi9/aYOVaYB7I5SuUjH6i6Ze8ZSv545 JsExnNFdRqcgK35G8XUmiRPVwkRdmG+VKDxpoECDYVxsIiXmI1BRzc5ka0HvGm/rLzFN OxRg== 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 ho13-20020a1709070e8d00b0084d44edc334si26637845ejc.204.2023.01.16.22.16.53; Mon, 16 Jan 2023 22:17:05 -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 S235543AbjAQF6j (ORCPT + 50 others); Tue, 17 Jan 2023 00:58:39 -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) 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 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