From patchwork Thu Oct 24 22:18:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Babu Moger X-Patchwork-Id: 13849789 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 lists.gnu.org (lists.gnu.org [209.51.188.17]) (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 C4AD2D1038E for ; Thu, 24 Oct 2024 22:19:55 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t46AZ-0006e2-D9; Thu, 24 Oct 2024 18:19:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t46AT-0006de-GS for qemu-devel@nongnu.org; Thu, 24 Oct 2024 18:18:57 -0400 Received: from mail-bn1nam02on20609.outbound.protection.outlook.com ([2a01:111:f403:2407::609] helo=NAM02-BN1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t46AP-0002SS-4Q for qemu-devel@nongnu.org; Thu, 24 Oct 2024 18:18:54 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=PyXYGVgLSIMtvDDaTkXkkYab6AKPVEkFcAAtuDGbMu2nBuPpwEjq9pyA90SeNvxxljgUA+PKb+spkIMFCIzeKt7nrql1nwY3FyISJWnSjgY83hV2Ijchi7r+FixF96u4ITHiHGqY0nMgnd3PvtXdAco38msF0bsiYF5uduRPJiiKIxRfXNeS943J+tmmEL36Rac6Q9LZdfTehXj/XpyXCM2HdsMsKTdBm0kW/dZEx5tZW8mJjpP4yltCVxo91intAKZ4biD3V0HdlnIpLrfUMN71GtmRTLSsZkv/vXJ5FxLb4Hz92tFgFuUCmNHY8rcoG5FCrHCKMvAGK6B4NyxnlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=EJxL3D/CIS42ofcUAq4sOG7znmn3Ca0nIeSCEzAQcR8=; b=Lg+fnF30Kf4bIQO5O6M3fu8CH8ChRDit39yldSvwuQyugszuFqjVEeYxQBW9CMtVWGrA0ljxeusHBCybBU6ggyzr6xsLtdDd5f0sIzUfvCxbyWj0dru6TQH528KBo4YdoatFag1hJSsUXnfMetOSGtgaxjYpxaYPW8byGBqRM85hUU4/rP5/o2K8+TbSmcei/puZiIOznwQzh8laH/VtxizPdBiddK+5bE82YCoTC3b1n2ujF5QGhXz/oq390OAcudQ++dUevwTZ1Jd8U3VrSybuZjgyVyLmeg7+rrsnGQo3XbWnS/+0YUmFvnSy9gu8PDzwj96YBiWbpHF9UfVNgw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=redhat.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EJxL3D/CIS42ofcUAq4sOG7znmn3Ca0nIeSCEzAQcR8=; b=ScWtA/WYZWFxlglA6c1fJsmBJJa2BNsqsWgzofjJhkJzkW/unZrvxVfkuFMbAoFA1wMscj/QzmEIqVHIm3pd253ENEzCxflWLeq3I96jt74plx/QROPn4wEJJ5KMeOX3qnbwl2iAmYaeuPuimqr2ZN5bmWdIQD2InEjM54/SJUc= Received: from BN9PR03CA0906.namprd03.prod.outlook.com (2603:10b6:408:107::11) by MN0PR12MB6152.namprd12.prod.outlook.com (2603:10b6:208:3c4::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.16; Thu, 24 Oct 2024 22:18:46 +0000 Received: from BN2PEPF000055DC.namprd21.prod.outlook.com (2603:10b6:408:107:cafe::6e) by BN9PR03CA0906.outlook.office365.com (2603:10b6:408:107::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.18 via Frontend Transport; Thu, 24 Oct 2024 22:18:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BN2PEPF000055DC.mail.protection.outlook.com (10.167.245.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8114.2 via Frontend Transport; Thu, 24 Oct 2024 22:18:45 +0000 Received: from bmoger-ubuntu.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 24 Oct 2024 17:18:45 -0500 From: Babu Moger To: CC: , Subject: [PATCH v3 2/7] target/i386: Add RAS feature bits on EPYC CPU models Date: Thu, 24 Oct 2024 17:18:20 -0500 Message-ID: <63d01f172cabd5a7741434fb923ed7e1447776ee.1729807947.git.babu.moger@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN2PEPF000055DC:EE_|MN0PR12MB6152:EE_ X-MS-Office365-Filtering-Correlation-Id: fb4b7468-c2a0-419e-89f1-08dcf479d392 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|376014|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: UsBrU5YkdhYury1W3E465AD8PcG1I9G6hOQNx0hWK5On/hdpcpuFGNlHhP5h7wBG+jdoLVZj3hTpFgrYgrrk9lD1h/5Qkh0FOc8I9ZWqwcTvg3NcTQdY1EJ9aAFPAMnB8wLCmysH87KbXqHduFW1+DQzQiUhE1OGUfp3W1PcU1ugpyOeVOq8Wr/AT2MaD96RO323ZmqDTtj0i1rOvYRIqMua6O5OS7gjP/2aQzpbj/FQ19pY7E1MAA4IHmxVfMuD6yFmiLLx7EGgAZxC/V1l9Wnhc8+4+85/uRPCX1EJA0NTFUAjNtfbbZAoEeC24E8Y4NC8lNFYc57Od+yt1MqkcGyrjjqRtiKkIYls5zmJvm3m96EMOh4aAIgmjVVZgTypv5cTM5Bp6aVict1mckjaeww3vTIPCJDUdwGgy6OnBDySj3VhhCvepqtGZQHExoVPUvyg7SLO8nKMKem1hrs/qeQWNmbapv4KgOD9rR0Tl+Jg4InHXumKJ8aExJuXbPRIKB7a8WILPug9UKkvFvjLx2XXgjEvSTcYHUS9ZS3Y9Vv4RUNS1qMBH+3nE8TOcUFMjL6VyhqvfMjgK/kfArfZ9bEcHVA2/f2uAhVHPjZTbqaZOjH1TmmrNzLVOLo+iotE7Bs+bsGEoJ1xwpUfe6Ei2tTADWfFkCWPtnu95BT7d3+KZfSOajtK5eUGbcL7rezMy4F+jzatRdXyK1luPPY0mA73e97ITwWERAF4+q8fH2qi7ScnZYr+gGSJFdEV/HEsBvyAheA/oSxU+DoyN6p8gJzisLN3bnA2g06ZPqEjONi5jsYcB3DLB+AuN4o6NEWlmrIX6hRf8mlUqrp/ZqlCQ1q6NlZsPxlSpFPujalBeDJh3JBkirg4HAWOwUaHf6hFPVZJ98+UlsLEVni5Svez6JvRQkdhmQ8XpkzrdPaN+9emAfj//648dGT5TSkEf0Iikb9wXWS0XFqd7BvQMiiPm9NLK2xBK1nyVvyU+q9yJvz5npCFvrFdRKLEPMd0IIoBhEf5DO2WpK+6vSmFT0FViHiM+qxGfv7vS2/VAO68+fe/OmmQRv89/4nK/uEDZCdf/VNgKJTx5ebPsOMyu2gUxe8aeh1TBpPXPM1S5p+GbYhROamoJAJKp2/G14VPaXtjAQ1oLrnLsdZtvD6kgqg4B7obLYWl0G+u63LvfWMRot4NlWvm1Yqw4aYzsu6mJhTSwx1+/epgragfcUEvX1uOZU+ARjjLI8VkKTh6UIrlC4YO5fyJ856GlEqM65tOFI715i+Z2bLr79n76686V7rCw2ssC+V/VBvbBLYbCd4fgp2Am+L22UTL3m+czx/qrSzgr9/Y8pPhzPVfowkBkCLfHpsrvBarLOOnnAmTCgKiI9iJ+W+XoztQ2i49u7DHJ6IsNLXldgdqT8LDiq0N8yrOBw== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(82310400026)(376014)(1800799024)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2024 22:18:45.6959 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fb4b7468-c2a0-419e-89f1-08dcf479d392 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN2PEPF000055DC.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB6152 Received-SPF: permerror client-ip=2a01:111:f403:2407::609; envelope-from=Babu.Moger@amd.com; helo=NAM02-BN1-obe.outbound.protection.outlook.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.263, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Add the support for following RAS features bits on AMD guests. SUCCOR: Software uncorrectable error containment and recovery capability. The processor supports software containment of uncorrectable errors through context synchronizing data poisoning and deferred error interrupts. McaOverflowRecov: MCA overflow recovery support. Reviewed-by: Zhao Liu Signed-off-by: Babu Moger --- v3: No changes v2: Added reviewed by from Zhao. --- target/i386/cpu.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 94faff83cd..e88859056a 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -4974,6 +4974,16 @@ static const X86CPUDefinition builtin_x86_defs[] = { }, .cache_info = &epyc_v4_cache_info }, + { + .version = 5, + .props = (PropValue[]) { + { "overflow-recov", "on" }, + { "succor", "on" }, + { "model-id", + "AMD EPYC-v5 Processor" }, + { /* end of list */ } + }, + }, { /* end of list */ } } }, @@ -5112,6 +5122,16 @@ static const X86CPUDefinition builtin_x86_defs[] = { { /* end of list */ } }, }, + { + .version = 5, + .props = (PropValue[]) { + { "overflow-recov", "on" }, + { "succor", "on" }, + { "model-id", + "AMD EPYC-Rome-v5 Processor" }, + { /* end of list */ } + }, + }, { /* end of list */ } } }, @@ -5187,6 +5207,16 @@ static const X86CPUDefinition builtin_x86_defs[] = { }, .cache_info = &epyc_milan_v2_cache_info }, + { + .version = 3, + .props = (PropValue[]) { + { "overflow-recov", "on" }, + { "succor", "on" }, + { "model-id", + "AMD EPYC-Milan-v3 Processor" }, + { /* end of list */ } + }, + }, { /* end of list */ } } },