Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp554426pxb; Tue, 14 Sep 2021 03:52:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjxorZjdDOzZxM5fiQOyHCSkaTqTTCCjI7X82ORDwzKbWo+2Y6Z4aByAlEvwY7aaqptNo/ X-Received: by 2002:a05:6e02:10c4:: with SMTP id s4mr8600780ilj.285.1631616725710; Tue, 14 Sep 2021 03:52:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631616725; cv=none; d=google.com; s=arc-20160816; b=ACmngZ0lwxutpGcqYSqYOpt4fBGiXpbGKamxS42VsUmWKJPnCe+R+5Wl9y6m5V2lNd bO1G1gS1fs9a0VBPvlV7j3saarbxn0HPqbOM95ND3nARC3H0ADCkaNm6gotOi89pW71K bS0U7JAu4BjyHyftKPO0cxhU7dyba61/+uvtflq0bh2wDatY2rIiF65fP+AdHEmVQPSF OZcB5uDtCFXYVcjXLV/uUzv/kv42MAsK+llmMpfoDmMZ79bNZrPO2F+fYy3IxH+kVVT/ Wcbk8xvPGkB2Sda7fsbDThRihcWIfFa8totOYN2p61IP4ExijD+iewysPoGrGYjID63w lILA== 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=K0U22iYdgaWPJNYzZWHJRK3jLpUaQw4t+41HSf01KMU=; b=KCZjFCor8HNjJ9uz+bhIHxSXChyD5ftCPG5lmNKBvT3vfFoEq4uk9tPkKN7QYaZWB8 SfR+K0XSVPpIs1zonC5qFji87uFFJNOli1d93JSO4hXTvwJwz6Pf53I7ZY8UgYpAT9ZA gijqWAy2wE5WZtqRW706kzMrE5Ekfodd/PQlHOY55gGpdhNYny4cBhyRweIGFVaYwmLg w/L1xhItEV33yfupt1Bl7PtgrF4rWnrMiwikBM4AYnJmmdtumz1duRceXFW0S+kxzycg nyHW1pT6zVjo+J++ZMaajK37u24Yo3k9hTi+EPYkT/LS1i8o1IQfbixORzl6nK9SAqOL ZyVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Vf8j1Sqc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m21si11614757jaj.19.2021.09.14.03.51.54; Tue, 14 Sep 2021 03:52:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Vf8j1Sqc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231843AbhINKwc (ORCPT + 99 others); Tue, 14 Sep 2021 06:52:32 -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--