[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 1/2] x86/Intel: Sapphire Rapids Xeons also support PPIN
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Thu, 20 Jan 2022 15:16:35 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oEVB2y/I9AJv59oC5zCnIj1lphgp7QzAQDw4BT4hvyk=; b=C1Cge6HrMNd776vL2MgZIWKIj141aCvz5i1GqOvIBe9oD0rfdGSInOzFDACxdh5woB9GxCcTm4bMTrFFh24LNoVL2ujyJ1HWuwn+qfXN/fkzYorpupnuQelLecdbGkijrQksgrX8Ed5pa1IswWHUr5F4zsB3SunUfl9S1JVKlLsrGpMWbYvEnCwqXaeXgM3gcENEwCEw/9uc13iY5jl3KS53dRfdY2vEMUHrqNL2k81rJvbRbQeWLLkwtw90s0Qa0/bMaxqEIgjYKG1xti4xKNNDsW5dej7XNsv/qhMn5hyvRfPZnq42JJUt9wa3L+9550qfMcbBAwlYYFChOdVVpQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AcVhkpTDaC0R7RzKOEiuOZSFjifH29kVY+4EElnXEhj43OxirVrd6MYjAAMp3AsA/8FcUSbenEuvWCbkLZVWDx8XCnr66GkiZc9YJXByLpSQXSwSAbtQqg/Rn/cmS/5LjPX3HQXwJeNNq/ESJkphqEz6Gd8hr4OGuYbshkql2nz76+OypU2/gefEvDUb/CNeYSt87jMoXNBfMUM5P37Y0u8cLdiFPG2yjxMskCBGl4f2FK2rjHjucABZtg5GV3DpLssI7wQrggpilM1JMvbEC0mxkyaZ4hW0C8P3qLFSDA+GEa1uQaChrVvPyB9VxgBnHNuZ0zPCZB1rfKgCLzrcnQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Thu, 20 Jan 2022 14:16:44 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
This is as per Linux commit a331f5fdd36d ("x86/mce: Add Xeon Sapphire
Rapids to list of CPUs that support PPIN") just in case a subsequent
change making use of the respective new CPUID bit doesn't cover this
model.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---
It is unclear to me whether this change is actually made obsolete by the
subsequent one adding support for the respective new CPUID bit.
It also continues to be unclear for which CPU models, if any, the
PPIN_CAP bit in PLATFORM_INFO could be used in favor of a model check.
---
v2: New.
--- a/xen/arch/x86/cpu/mcheck/mce_intel.c
+++ b/xen/arch/x86/cpu/mcheck/mce_intel.c
@@ -873,6 +873,7 @@ static void intel_init_ppin(const struct
case 0x57: /* Knights Landing */
case 0x6a: /* Icelake X */
case 0x85: /* Knights Mill */
+ case 0x8f: /* Sapphire Rapids X */
if ( (c != &boot_cpu_data && !ppin_msr) ||
rdmsr_safe(MSR_PPIN_CTL, val) )
|