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=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 1FE8CC2BA83 for ; Sun, 9 Feb 2020 23:07:36 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E0DD020820 for ; Sun, 9 Feb 2020 23:07:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="NGbj1VyV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E0DD020820 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=invisiblethingslab.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j0vfL-0003y6-Ox; Sun, 09 Feb 2020 23:07:03 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j0vfK-0003y1-3t for xen-devel@lists.xenproject.org; Sun, 09 Feb 2020 23:07:02 +0000 X-Inumbo-ID: e10a0e5c-4b90-11ea-a677-bc764e2007e4 Received: from out2-smtp.messagingengine.com (unknown [66.111.4.26]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id e10a0e5c-4b90-11ea-a677-bc764e2007e4; Sun, 09 Feb 2020 23:07:01 +0000 (UTC) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id EFBCA21AFB; Sun, 9 Feb 2020 18:07:00 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sun, 09 Feb 2020 18:07:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=l3rpnl+0+72OJimZKjhkdcsqdVMWt LiM1rfeoNt5m3o=; b=NGbj1VyVgZlaysuYKOaLntrLEPOQlJjeeUnzare3ocsih gI5+RinwcyOWUVeshM+WtbqNLp+VpQJsSfmC9qFy8l11SPJC2+ni3XgFYGA+s771 XQxolFaKdVge8qKRnh288ksuvIbqYf23H2ihLyImw9RsA8x3lPMw/iYE1beI3QlE JKcDt8c32UByxZAPJ7L1r8Qnj69JLYWWG2H6rgYKxiAhxUETtUWfUYYIud4hXZla DogOTcY0i1NZLnkf/WZCtkKv9jm0nlXcRtkKMsa1GBXmSfOaXQdvXBwZJDTCeqy8 yZ7sxRtgGcj+6SR5UrINqywnRXTGKuV2iJarlz8JQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrheelgddugeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugesghdtreertd dtjeenucfhrhhomhepofgrrhgvkhcuofgrrhgtiiihkhhofihskhhiqdfikphrvggtkhhi uceomhgrrhhmrghrvghksehinhhvihhsihgslhgvthhhihhnghhslhgrsgdrtghomheqne cukfhppeejjedrvdegfedrudekfedrvddtfeenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehmrghrmhgrrhgvkhesihhnvhhishhisghlvghthh hinhhgshhlrggsrdgtohhm X-ME-Proxy: Received: from mail-itl (unknown [77.243.183.203]) by mail.messagingengine.com (Postfix) with ESMTPA id 8F79C3280059; Sun, 9 Feb 2020 18:06:59 -0500 (EST) Date: Mon, 10 Feb 2020 00:06:55 +0100 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: xen-devel Message-ID: <20200209230655.GA32524@mail-itl> MIME-Version: 1.0 Subject: [Xen-devel] Xen fails to resume on AMD Fam15h (and Fam17h?) because of CPUID mismatch X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: zachm1996@gmail.com, Claudia Content-Type: multipart/mixed; boundary="===============5354225725348335112==" Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" --===============5354225725348335112== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline --6TrnltStXW4iwmi0 Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Xen fails to resume on AMD Fam15h (and Fam17h?) because of CPUID mismatch Hi, Multiple Qubes users have reported issues with resuming from S3 on AMD systems (Ryzen 2500U, Ryzen Pro 3700U, maybe more). The error message is: (XEN) CPU0: cap[ 1] is 7ed8320b (expected f6d8320b) If I read it right, this is: - OSXSAVE: 0 -> 1 - HYPERVISOR: 1 -> 0 Commenting out the panic on a failed recheck_cpu_features() in power.c makes the system work after resume, reportedly stable. But that doesn't sounds like a good idea generally. Is this difference a Xen fault (some missing MSR / other register restore on resume)? Or BIOS vendor / AMD, that could be worked around in Xen? --=20 Best Regards, Marek Marczykowski-G=C3=B3recki Invisible Things Lab A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAl5AkI8ACgkQ24/THMrX 1yyb9ggAk9n4G5bxD8j+t12GXNgYH+WBxGPKbZ3HcXR1O3xAQTsR7NyMtdFM5fKR DYfGhOX7qQSSCWrUrncGTtYKvepxaFL8G4RZKZM8MdK0oTCp4JzUNvOOmwMw7x+M 94rgewTyAxmXNRh25vbHFbRNeJVlhhFhsZEKq4AGm6YZsM2GKmEJcOTAVcl1l1+S 3fZbyQxX2CywMlhRH6Yi/7/2A/XPSpnndnQPJT+4bHbm8RFCTwI81R3wEVL5SP5c 7Jfqe8RdgKfcD8QLsodyQ5cEeyV7Z4oRdheY26RHEacpw5ajBFTT0ypXJcgwzLLp 8dA65OTIrJLHKl23eLotVdg3gGL3eQ== =Dggq -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0-- --===============5354225725348335112== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cHM6Ly9saXN0 cy54ZW5wcm9qZWN0Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL3hlbi1kZXZlbA== --===============5354225725348335112==--