From patchwork Mon Feb 26 20:15:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Ferguson X-Patchwork-Id: 20992 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2319468dyb; Mon, 26 Feb 2024 12:34:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVnGJIhes8DB5ApyqTJYXWbaw/KxISfiPzCN74V1g5WXs2frSt7e0ODFw8XS1f2X8Arqic5bmu/FnCNe01xoaMCwNk4vw== X-Google-Smtp-Source: AGHT+IG0LkgfxHTg863RIqAyb3MtKtcesZLPnQVXvRi/Pj/T5gKRNPueDwJv0be7uvIRXQ5NArD1 X-Received: by 2002:a05:6e02:11aa:b0:365:85c:58f8 with SMTP id 10-20020a056e0211aa00b00365085c58f8mr7851425ilj.13.1708979680122; Mon, 26 Feb 2024 12:34:40 -0800 (PST) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id m10-20020a634c4a000000b005dbcf14be2bsi4155600pgl.800.2024.02.26.12.34.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 12:34:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82283-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=kjGUb0D4; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-82283-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82283-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 04477B24949 for ; Mon, 26 Feb 2024 20:16:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 78EFE131737; Mon, 26 Feb 2024 20:16:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=os.amperecomputing.com header.i=@os.amperecomputing.com header.b="kjGUb0D4" Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2121.outbound.protection.outlook.com [40.107.94.121]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA2C7130E20; Mon, 26 Feb 2024 20:16:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.94.121 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708978579; cv=fail; b=eSnmpR3tTdvficQ9F9rt6HVspCrdqD06U2BZWMh/GWQCXpgrIvN0R7mio/cqc6ObM0muiL6KEK4mO/XmIEsTi5M4MnOKffVld2+bF4hFFcj3+Pq0lxvQAgXEQ9J1yOeOnT6SjWLd15lX+qHidM8Wu3NXFxfoD+sv/UYsNzw44Cc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708978579; c=relaxed/simple; bh=LuI8vtimLTlomzeAI0qh3T0yf5vcS1483iai0i15I6o=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=JH0llYDwXZt9im4DEyKk7lbs4Mxjnl1Yf+hT0xziWp0l6E7kUHKzWphy7MQZrTSJfPeVy9AKpbf6bMNBVhLOHjnvjjizI0jJChPlMx+cftLDkm2IQA5JPFR14ivjREmqfjtZqcCBbARcFtRwx7T+WQQYTGMoXJzfrXMcZYoz2GY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=os.amperecomputing.com; spf=pass smtp.mailfrom=os.amperecomputing.com; dkim=pass (1024-bit key) header.d=os.amperecomputing.com header.i=@os.amperecomputing.com header.b=kjGUb0D4; arc=fail smtp.client-ip=40.107.94.121 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=os.amperecomputing.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=os.amperecomputing.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i8pmSNRb9fCz63BoiuCuACEgoLu29YIns47648B7kT6y/6opYiphNMhPw/5c/yyzYecp75C9KrU6ICrXLoXQniBKBWMOp/8VGEzDSJ7hfkAjeNIzUkzigvQkZ/mrqo165YygxkcbiTbjX5oGKcfdA7FV62ZYI0WyBC4n/cl23Xp+1cCfzctz0Rwfjm5TvSRuccqy4j/XyOsAjVfUwRZKrKzyWBa225h55fzeeXMfu6xkTJhtiH6YNDvGZJIA+Lij+ySLCHrbIdGRKxw7d5R7iR39msez7ax/SP30myl1PBgyYW8yQGo6SwpHLxLuvGmLYV3tjN6th5OyD/bjDYbkxQ== 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=r42JpEStbsyaigYdfMyU7Usd+8IsnYg6xNzTAGhTiy0=; b=IY4nbimGYywHguzgmcxeJQIxyJCj83p0qm1l6hX2lWsyxayZ05CEzczB0I6YNA1NZ5mQMDmA5j9qfyBWw0lAP7Pqpo/T//39gHbvbS4iwLxvn69OqQBUwa7P/ZgKFnsxiJePuFoHhI1G9LRug5TEO/heIY9q1Cnur62lMmoqxcaqDx0t2gd3xUb7K063v7RpQ8eIs9RnFzeb6sCzO2/jGS8SbGaCdYOmmSIWJT5Ua7ALrqfen4aMSMZuW84MLG+oHoxcBgsctzxajQCxO+21c+UuM0pRcu7uu4iK5oh9jBWuaF9WRn1C5chDVn1LJNEF823OJDE+SVmy8l4lUGeJcA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=r42JpEStbsyaigYdfMyU7Usd+8IsnYg6xNzTAGhTiy0=; b=kjGUb0D49+Qqg4T7s/JawV0NUYwxAlwXpT8sl0J65RXafjBx+a86OLQVysAh98fGbEal2c7SsySX/KJl9KRk+O9y37D3bdcxsHn9arX+9XY2CBt2vmAuExoyL2Ok9YGhyvvvs/qQlnZPcZil53q8AyxNUGDxKjN7y33KvOMoBxc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from CO1PR01MB7370.prod.exchangelabs.com (2603:10b6:303:159::16) by CO1PR01MB6629.prod.exchangelabs.com (2603:10b6:303:d6::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.36; Mon, 26 Feb 2024 20:16:14 +0000 Received: from CO1PR01MB7370.prod.exchangelabs.com ([fe80::28bb:f135:bd95:a21d]) by CO1PR01MB7370.prod.exchangelabs.com ([fe80::28bb:f135:bd95:a21d%7]) with mapi id 15.20.7316.034; Mon, 26 Feb 2024 20:16:14 +0000 From: Daniel Ferguson Subject: [PATCH v4 0/2] Adds additional information to ARM RAS errors Date: Mon, 26 Feb 2024 12:15:18 -0800 Message-Id: <20240226-b4-arm-ras-error-vendor-info-v4-rc3-v4-0-08e0f168fec1@os.amperecomputing.com> X-B4-Tracking: v=1; b=H4sIAFbx3GUC/x2NwQqDMBAFf0X23AVd02L7K8VDNC91D03KBoIg/ ruhp2EuMwcVmKLQqzvIULVoTk3craN18+kD1tCcpBfXiwgvjr192XxhmGXjihQaNMXM1bGtIy8 IY5yew/0xgFrpZ4i6/y/v+TwvcLKc/nUAAAA= To: "Rafael J. Wysocki" , Len Brown , James Morse , Tony Luck , Borislav Petkov Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, Daniel Ferguson , Shengwei Luo , Jason Tian X-Mailer: b4 0.13.0 X-ClientProxiedBy: PH7PR17CA0057.namprd17.prod.outlook.com (2603:10b6:510:325::6) To CO1PR01MB7370.prod.exchangelabs.com (2603:10b6:303:159::16) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR01MB7370:EE_|CO1PR01MB6629:EE_ X-MS-Office365-Filtering-Correlation-Id: 478b9059-a33a-4bbf-8d64-08dc3707c814 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: d2Khbi47uFnLt8SI57eR+2i4S99f8lVzPbwcBu2zPQJTFwPCQJ0E5+IlzVV7/mOxOxWdaMzpiZ8arUO2QCBZ5kXA13giIgnyAbp5ookP1OIslBOtd22z9NLdki6jA42V96lxeZJIUF9KqUWD+5+mMiRE7H04Y2QZBKXLdl4ipBRfP7lTcQRrk9ns1kUP5+fZyLhkovHpCnG4h8MLj5FH2S0GOLCpKxv54zd/7+ghDaRG4WA64dgv8j3/hUH/th4X5gqJbJ1y0R070neIxU4ecFl1HwsxLLv6L1u7YTaV1gaL4GZZUD5cjORxG+NRZmt9ijBXcVKbh24Y3zXvWfA4LG51x8PKqyp/YFSkBt5YGBWKLpqBWMVVtBKXv2mdxX7XqGP4mMxoQWIbiKA3EZ5Ez0x4cDWyLneXusIxICpDYuYW1kFVhfKJCM5aPNiSA6yWzVMszMj7m2+fKbXjJvEFf4Er+c6GwPrQ07muekIeByactE+URNEAhd1A3a6AftHNIXRFKQ59j5JszK2Ri7gYxlQWoD0vD47NxsnP3D1CWPGGscqAlUq8Sq3Z4Yy1Sc/AFy4wqhytlDdhY30xDmDuUM2IrU6e8IWsg7Bf3jS4oASXNwvSDEnadFHk7VsBOMxTo575Gp40jBtfAp/MeQr3rP6d3AVAg+ZZHrK8B9rXKDfmVwQm8jXb5gfEZu7Mdd9+ppv8oA4vXAYJw+Jp2/2G/Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR01MB7370.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?PkuXEs34RgwRBs2nNIUfgjIXnX8M?= =?utf-8?q?vubhJKhq79p9ci5eHqlgvM5yj3wbLF9/kAtSY4DjzJDfxUg8s3PwUsBAnVu6Dq7nP?= =?utf-8?q?2XP2cBldIpPJ2BdnLQVBpAoUBWZv41NiNxO0EijJBOpgAslMqrC84Zzy1V3KwbG2v?= =?utf-8?q?vdWDk1FGL6FXXMqHiRg9IuX0iPW6yk51MCG53NeAjDKZ9MXmgDbSChOHrr/W/fH8D?= =?utf-8?q?Iv1mS6dDuE/XTsNLwByZjTflbqSfxfdowOO8bIDBPxJbiJAEY8lJl1RNjxcx0gLv5?= =?utf-8?q?Lae2Hj4HSP6HJKRIJ21LE65oZ1/mKcwGo1hojYUIAuQ2jpXgN9nxUMs2Z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?= =?utf-8?q?lmLilh+FAvBlHhxb49YpZrRuROusMwxSQ4T6PxgX0fzrsOb5QN7AQ4vUuMLfCClf5?= =?utf-8?q?bZdLixQ1nb7uKNTS0COmXrE3uptxdi00I9JSX5DTZB2eDxBKOBd9XD8KlJGNxZM3o?= =?utf-8?q?8UG53eti431Kf+QUErsvdaY7QQX8Ua1/auNxhSirck+AwBBdv2hZtEX4gJ9YGEaNi?= =?utf-8?q?c7JRcyTiXpaXD8drak5BjihcYmCz0P1n99cxK7NzgzOHEN3yVauXc7cZ5AmMJ8zmO?= =?utf-8?q?rYz37KQTaynatQLRuLdn6d3TFv5e8DNZwEhqV2V1cUVbYH23H6/ZTgFd/xLVJO6LJ?= =?utf-8?q?bxvlNmXiDW4/aJkxTEyVNmvcTN18KTQqPRgi+OOrOdwUNRKdr+pawWA=3D?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 478b9059-a33a-4bbf-8d64-08dc3707c814 X-MS-Exchange-CrossTenant-AuthSource: CO1PR01MB7370.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2024 20:16:14.3020 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XcuCqsuzLLjR3LCDDrpX22uCCHygfk3ucktSBFy7LYzUl2YN0H6N9H6pUbGCzwOzoJnk6UIJVtf7rvCP67TT30zcf9C/uzyrip0Wns75WNoeZzEVGtjyYsNluvuqz556 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR01MB6629 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791995076904672764 X-GMAIL-MSGID: 1791995076904672764 The patch by Shengwei includes most of the justification for this series in the commit message. The only thing i've done is add a few conditional compilation directives based on feedback from a previous submission attempt. This series adds: 1) Conditional compilation directives around ARM specific RAS error handling routines, so non-ARM platforms are not unnecessarily bloated. 2) ARM Processor error section (As defined by UEFI 2.9 N2.4) to tracepoints for userspace consumption. This particular patch is a RESEND. Changes since v3: Added conditional compilation directives Links: https://lkml.org/lkml/2023/12/14/1488 Signed-off-by: Daniel Ferguson --- Daniel Ferguson (1): RAS: ACPI: APEI: add conditional compilation to ARM specific error reporting routines. Shengwei Luo (1): RAS: Report ARM processor information to userspace drivers/acpi/apei/ghes.c | 7 +++++-- drivers/ras/ras.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++-- include/linux/ras.h | 19 +++++++++++++++++-- include/ras/ras_event.h | 48 +++++++++++++++++++++++++++++++++++++++++++----- 4 files changed, 111 insertions(+), 11 deletions(-) --- base-commit: 7e90b5c295ec1e47c8ad865429f046970c549a66 change-id: 20240222-b4-arm-ras-error-vendor-info-v4-rc3-bed3f891561e Best regards,