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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC1E1C433F5 for ; Tue, 14 Sep 2021 10:51:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A9F7860EE9 for ; Tue, 14 Sep 2021 10:51:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231876AbhINKwd (ORCPT ); Tue, 14 Sep 2021 06:52:33 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:34965 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230153AbhINKwc (ORCPT ); Tue, 14 Sep 2021 06:52:32 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id C474A5C0069; Tue, 14 Sep 2021 06:51:14 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 14 Sep 2021 06:51:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=K0U22i YdgaWPJNYzZWHJRK3jLpUaQw4t+41HSf01KMU=; b=Vf8j1Sqc4VqqlWcLbEaj6e OlwA80NMgML4FPQNtCOl/k0C8blxk68lpZv1yTNxoweFpLAU/oseEyGUTf+czHxL eTjLLJcmM6KYS/71/s4oBM+68gslak72kkYdGf5wyETyzlhsqPNiXkvYaCFHNUzV xyDcheXSCX5ysn7s9dz5kT2yoqhl90Hp+MEhhov0FfNdALacreTOolfgOlKE6LZo OJdnqLwCLint6ZF6L/8Ts8DOkbzQKt3AAA3wMds47X3zU5fPOg/wCDB4WeydkpCw 28juCdhN4KsvgNzL4drJwQ1JAPG6RRu1QfljsuEa7xm1lypSGMfSgvfRI8nHWhYg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudegledgfedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpeforghrvghk ucforghrtgiihihkohifshhkihdqifpkrhgvtghkihcuoehmrghrmhgrrhgvkhesihhnvh hishhisghlvghthhhinhhgshhlrggsrdgtohhmqeenucggtffrrghtthgvrhhnpefhfeff hfetgeffueekleehhfetkeetgedttdfhiedvteekjedufffgudeiffefjeenucffohhmrg hinhepghhithhhuhgsuhhsvghrtghonhhtvghnthdrtghomhenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrghrmhgrrhgvkhesihhnvhhish hisghlvghthhhinhhgshhlrggsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 14 Sep 2021 06:51:12 -0400 (EDT) Date: Tue, 14 Sep 2021 12:51:09 +0200 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: Jan Beulich Cc: Juergen Gross , Ingo Molnar , Borislav Petkov , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org, xen-devel , Mike Rapoport Subject: Re: Linux 5.13+ as Xen dom0 crashes on Ryzen CPU (ucode loading related?) Message-ID: References: <923de2f5-3d33-4c02-acec-739fdaf2ae05@suse.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9IO9vSHELR/sHIWS" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --9IO9vSHELR/sHIWS Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Date: Tue, 14 Sep 2021 12:51:09 +0200 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: Jan Beulich Cc: Juergen Gross , Ingo Molnar , Borislav Petkov , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org, xen-devel , Mike Rapoport Subject: Re: Linux 5.13+ as Xen dom0 crashes on Ryzen CPU (ucode loading related?) On Tue, Sep 14, 2021 at 10:39:10AM +0200, Jan Beulich wrote: > On 14.09.2021 09:14, Juergen Gross wrote: > > On 13.09.21 14:50, Marek Marczykowski-G=C3=B3recki wrote: > >> Hi, > >> > >> Since 5.13, the Xen (PV) dom0 crashes on boot, before even printing the > >> kernel version. > >> Test environment: > >> - Xen 4.14.2 > >> - AMD Ryzen 5 4500U (reported also on AMD Ryzen 7 4750U) > >> - Linux 5.13.13, confirmed also on 5.14 > >> > >> The crash happens only if the initramfs has earlycpio with microcode. > >> I don't have a serial console, but I've got a photo with crash message > >> (from Xen, Linux doesn't managed to print anything): > >> https://user-images.githubusercontent.com/726704/133084966-5038f37e-00= 1b-4688-9f90-83d09be3dc2d.jpg > >> > >> Transcription of some of it: > >> > >> mapping kernel into physical memory > >> about to get started > >> (XEN) Pagetable walk from ffffffff82810888: > >> (XEN) L4[0x1ff] =3D 0000000332815067 0000000000002815 > >> (XEN) L3[0x1fe] =3D 0000000332816067 0000000000002816 > >> (XEN) L2[0x014] =3D 0000000334018067 0000000000004018 > >> (XEN) L1[0x010] =3D 0000000332810067 0000000000002810 > >> (XEN) domain_crash_sync called from entry.S: fault at ffff82d0403= 3e790 x86_64/entry.S#domain_crash_page_fault > >> (XEN) Domain 0 (vcpu#0) crashed on cpu#0: > >> (XEN) ----[ Xen-4.14.2 x86_64 debug=3Dn Not tainted ]---- > >> (XEN) CPU: 0 > >> (XEN) RIP: e033:[<0000000000000000>] > >=20 > > The domain's run state seems to be completely clobbered. > >=20 > > Did you try to boot the kernel with "earlyprintk=3Dxen" to get some idea > > how far it progressed? >=20 > I guess without my "xen/x86: allow "earlyprintk=3Dxen" to work for PV Dom= 0" > "earlyprintk=3Dxen" would need to be accompanied by "console=3Dxenboot". I > have not tried whether this helps, this is merely a guess from having > looked at the code relatively recently. This boot was with "earlyprintk=3Dxen" already, but I didn't know about "console=3Dxenboot". Anyway, it seems it isn't relevant anymore. --=20 Best Regards, Marek Marczykowski-G=C3=B3recki Invisible Things Lab --9IO9vSHELR/sHIWS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAmFAfp0ACgkQ24/THMrX 1yxj3QgAklzrVFkqulCCimAJBOIO9E4Yn5L9JXT1DXGQ0RH446/gqRWmYU7+Atu2 6r4ZLfsYMIJm0FCKt3DTHvqFr9rWxbb1dOq4HVhLsid3Yp0zJZM39uhRUxKPopG3 rgmE7V7A98pX4RQIw9FGiMiFmUryiAwvMgUI9afdQ1RF71gQwwE1pH8tDgsmMV86 Te2ubFkmYakwszLdT4buG8Bwpc6s+rDcOzgIyruIgYLY20wNHEZm71TjNwqWUr8h h52671MMCj1/o9uTKPkiqHDSR6EUIwphTyDzKoAMCI5IdND+iIvSmjwqFj8idnNP ifatm5BSF9Knqy82Gt8CLJnTbkzBJg== =2izk -----END PGP SIGNATURE----- --9IO9vSHELR/sHIWS--