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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D36CBC63797 for ; Tue, 17 Jan 2023 06:32:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=3ow1fCrD+zOWtfP3/Gt028lm73Y+Br7BqZhWSBeKjwI=; b=IPAn82VRC1Vgiuz7F8ob1kBdZi 84KsJ0H4Gk/BIrPvoMtPDBJPs++ccPyRJOh5FbKugf9OElznDauv+qnPDhwDXh361WI72XYUy4A+c n+/0xcirw5TLcbURlAHViCuFQ0I4VvJP5Enc79GOvGpBUkEX9cpgHxxDxnT62txwIz32/IO+I3Gw6 h6ybPv0v+nhb3BKV5jmFvzJfBi5JLUcCWHmzwKJ7zL3AB5O1YMcygxyeXT18/9DC7SMKGWIbwVFEZ Ug9hBmWVvbnMO2mynk2nFKWkJo/dBTalkUcSgfMLwQ06wrwX9piKrHgBUPmnYeRRFBcDDaLKPMsVf E5D5uWAg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHfW1-00D49y-B1; Tue, 17 Jan 2023 06:32:13 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHfVw-00D499-BA for linux-nvme@lists.infradead.org; Tue, 17 Jan 2023 06:32:10 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 8B64E3200908; Tue, 17 Jan 2023 01:32:03 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 17 Jan 2023 01:32:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irrelevant.dk; h=cc:cc:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1673937123; x=1674023523; bh=3o w1fCrD+zOWtfP3/Gt028lm73Y+Br7BqZhWSBeKjwI=; b=w6hlmdA96VKRRoHZy7 Cv5WzXEZ+7QrFxyVeX4iFeZpTEMoL+KjDNdUlxRdAPIpSL3leK0E+TQTvhTekzy5 QeSci+Jsy6c+r7pTScp0STjgN9E9oCIyJwaCsvtnA1z0Egl2iGNNmhaCTh0KHDGr NYKs12WE1/sTESVnt9kZjmXHVGonrBAyDP+JXckOPS0XM7aq70Rzs3H+ZIuwY8CF Hc+aN3DbZ9wzt17z5FbVyUn2yHRpjJrq5JDDG32v7WSB8HwiF2wpt83hyl2xxQ5n c82R499M+xrgejd755SusFqJzRyz4lqjJPSJIeb2QqPfkeTIqLIAhLkEcFT5ovpZ xF7A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1673937123; x=1674023523; bh=3ow1fCrD+zOWtfP3/Gt028lm73Y+ Br7BqZhWSBeKjwI=; b=dUoULwzv1CMjGdIebJI7rLKglTgvjsMl7Gjag1f4XkDd Wh+0uDlqEgBsL2KnI+7OQXdcBG8rS9gJj1g9V+WyXuVtSjWS/IUsJQ1DZ/SS/7rd pwWYU/f/RBYLyuoeololB8J7qdIwwQkTTsR9/RIqYzg4RTtb4P7bPGnaa7nUD0Qh /BhYbW8hqUhbtSDiU+KC3TId7K5qlTecgNrlYVPuRYuF6bcQOgNnF93pj/fE7E5Z INBfDm0PCI27ybZKG59i0h1evmPfFCcAUtG7uzaM0J2LkefvYW861YxNadNo0Yt6 sZzE1I1eKUS+nflwEQzqHyWO5odeD47qNYMe5MZUmA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddthedgleelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtjeenucfhrhhomhepmfhlrghu shculfgvnhhsvghnuceoihhtshesihhrrhgvlhgvvhgrnhhtrdgukheqnecuggftrfgrth htvghrnhepjefgjeefffdvuefhieefhffggfeuleehudekveejvedtuddugeeigeetffff jeevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepih htshesihhrrhgvlhgvvhgrnhhtrdgukh X-ME-Proxy: Feedback-ID: idc91472f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 17 Jan 2023 01:32:01 -0500 (EST) Date: Tue, 17 Jan 2023 07:31:59 +0100 From: Klaus Jensen To: Christoph Hellwig Cc: 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: References: <20230117055819.GB13795@lst.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cUqTUeXB0r3Qvrag" Content-Disposition: inline In-Reply-To: <20230117055819.GB13795@lst.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230116_223209_091928_94B1B20A X-CRM114-Status: GOOD ( 17.47 ) X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org --cUqTUeXB0r3Qvrag Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jan 17 06:58, Christoph Hellwig wrote: > On Mon, Jan 16, 2023 at 10:57:11PM +0100, Klaus Jensen wrote: > > Hi, > >=20 > > 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. >=20 > This smells like your setup somehow doesn't wait for async driver > probe. Does the hack below work around it? >=20 > 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 =3D { > .remove =3D nvme_remove, > .shutdown =3D nvme_shutdown, > .driver =3D { > - .probe_type =3D PROBE_PREFER_ASYNCHRONOUS, > #ifdef CONFIG_PM_SLEEP > .pm =3D &nvme_dev_pm_ops, > #endif Good morning Christoph, Yep, the above works. My setup is a buildroot qemu_aarch64_virt_defconfig booting from an emulated nvme device: qemu-system-aarch64 -M "virt" -cpu "cortex-a53" -m 512M \ -nodefaults -nographic -snapshot -no-reboot \ -kernel images/Image \ -append "root=3D/dev/nvme0n1 console=3DttyAMA0,115200" \ -drive file=3Dimages/rootfs.ext2,format=3Draw,if=3Dnone,id=3Dd0 \ -device nvme,serial=3Ddefault,drive=3Dd0 \ -nic user,model=3Dvirtio \ -serial stdio --cUqTUeXB0r3Qvrag Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEUigzqnXi3OaiR2bATeGvMW1PDekFAmPGQN4ACgkQTeGvMW1P DekUlQgArSA3SHObjDm25ViUP7dge6sNgHpVj03FApy3trji+haPhfnLk7M8Uruo Qqw5rCbESeL3xVYSPdyzJRX/JsQDYaRnzs2EzH+yygD+6NmD+nIakOTx6u00Tiqh r/3fY+KBIc1B1VfGHFQbUMVHL2lye6tqdSiBUsvCmHmYLXJGcLUD+vXXhy8jGpU9 fglg63OMtZ9Dkf7iUVC5PL/RDAhgCUxhXmk5b0EIUIgr2zJUy7+xUC9hCNmcYjaz k6G2e0UFc6xbk/5N0svNPc0Q4PJ8Z0pT9ru1xvUNoHUHdYhtaeMkKdgogzo54m7w 5taBf7+AiPseaxTMjJKc5GXBdqTFZQ== =KGuL -----END PGP SIGNATURE----- --cUqTUeXB0r3Qvrag--