From patchwork Tue May 21 21:10:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zaid Alali X-Patchwork-Id: 13669739 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2120.outbound.protection.outlook.com [40.107.92.120]) (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 C73D9149DF4; Tue, 21 May 2024 21:10:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.92.120 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716325860; cv=fail; b=usy97NkI6hrFFkp7vV+r9e7WnykC8tI6GcydqdvfU1u4eld+F5c3ngqhAURP5HVnoFcGcHtLwB9a4qlB0MHKEWFNWCakFllMHyYZRmwu7WC770rZzS05Ln1Z4HqunW0weRAS6tUMZ5mSth1WigeJ4ZNuKrzP9bs7NtP8+0qG/kc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716325860; c=relaxed/simple; bh=7M9o6B4FwI1ZECcsNLZ9Dw/9ldoUVu8DqMM0XmT0UZU=; h=From:To:Subject:Date:Message-Id:Content-Type:MIME-Version; b=bkFaiUrQzLMuclkhcQWabUJVrbWoeZoDHZNLfuJCz3oDTLWAtScrl2OgzewrrQssS5Dt+GreYjPpPbQIClAnRbvWCBhd0iGaitTki6+otSwFHi+E3nciUUn6rt62Hfbi3HkGzq4MlYm4SUDZ6m1vXLjMY4Orha49YI/RqQeTLr8= 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=Cx1i347i; arc=fail smtp.client-ip=40.107.92.120 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=os.amperecomputing.com header.i=@os.amperecomputing.com header.b="Cx1i347i" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IKNNH8KJlKEX7VGsbzIVKnrA0ODbmTNQNYVsOhxB7/lw3ZOMIe0wu0tri0U1UWbTd9KiNiuLBr79LNgyFRbCkQOHH3PVwM2qYYc2QIzcBIoFIYvUQFq+X4rTyxvAPvxu6Gi2on2deKoMJWO6wKqmEJLW033B20noFSFmWgHWGiZVd2jvykOoBOucI/k5qoZe2lYS6wyP6l1dOlnc/X3ATFvgmwxlwwurViEEsxjdBoHvIP59q5A6vZ58NUAyzAmvCpSjV7FvD75HwYKDDFxIPM84paEv83+tlz6DTcIsHGzk6IVyEvmo2+rvzvySRI38XNBLzPr0J/zEVwyAFmQ2rg== 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=w4guYLmmXcaOch+gq00IeAjlBGFDS28PJ2QZLWCv5oA=; b=joNtey9K6uzidLVLurlwHO2NfagQP0kf/1br6oHpkp9wU3tWDNVVN4glneKcfb/umfL5cZExxeHDHrto6OxWhJi0wCA34FnJfNBzPAcxUhAf5doox7y1aZ4/vKDT6z2hJAeHrRKl65sTI15ISc7LCb6ZuCrkRES3DIFpVU/pJw6wEaMZCbqCHWpB5jahh8rwOnkz8VNTjmVfcjHRocBYXWS8lpg0G2yDR2ge4x4qGtb07luEHZC2Vu3dPqJZNN3JkRbxcVETUJgLg/fLxupAj+1PtM6Fb8fOSljqChVKPtYSJbgDNtFiD9hJRnbkWf3g3mBZt7U7Zrc6FuJ4rpfq9g== 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=w4guYLmmXcaOch+gq00IeAjlBGFDS28PJ2QZLWCv5oA=; b=Cx1i347iIBGwOlg2Fya99XFevVElGU1sK6ni5dpK5OjBC6PC7H/XXiRMfMpljHrTy91X1Ag6JTWoKe7rih4O5NwHSJwUt+fa5XxmoE1JRCNf/+MZSV/F8h6U1EPe6SyNkxRan39gp8m1pTBNUdhA/vhr2RJYSS4wiKpRFyfyQ24= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from SN7PR01MB7903.prod.exchangelabs.com (2603:10b6:806:34f::17) by MW6PR01MB8627.prod.exchangelabs.com (2603:10b6:303:23e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.35; Tue, 21 May 2024 21:10:54 +0000 Received: from SN7PR01MB7903.prod.exchangelabs.com ([fe80::cf45:9855:a64e:382f]) by SN7PR01MB7903.prod.exchangelabs.com ([fe80::cf45:9855:a64e:382f%3]) with mapi id 15.20.7587.035; Tue, 21 May 2024 21:10:53 +0000 From: Zaid Alali To: rafael@kernel.org, lenb@kernel.org, james.morse@arm.com, tony.luck@intel.com, bp@alien8.de, robert.moore@intel.com, Jonathan.Cameron@huawei.com, Benjamin.Cheatham@amd.com, dan.j.williams@intel.com, arnd@arndb.de, Avadhut.Naik@amd.com, u.kleine-koenig@pengutronix.de, john.allen@amd.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, acpica-devel@lists.linux.dev Subject: [RFC PATCH v2 0/8] Enable EINJv2 support Date: Tue, 21 May 2024 14:10:28 -0700 Message-Id: <20240521211036.227674-1-zaidal@os.amperecomputing.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: MW4PR04CA0187.namprd04.prod.outlook.com (2603:10b6:303:86::12) To SN7PR01MB7903.prod.exchangelabs.com (2603:10b6:806:34f::17) Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN7PR01MB7903:EE_|MW6PR01MB8627:EE_ X-MS-Office365-Filtering-Correlation-Id: aba7d3da-f48e-4f65-f6a8-08dc79da7fb6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|1800799015|366007|52116005|376005|38350700005|921011; X-Microsoft-Antispam-Message-Info: 48OaJ4mKZ55cd5K8xLgCFLTDs6nbd0gso/dEFEbCqfe4qgIJsdWETaJLmaXYhQvJ31VCJbKXnw3R8dJlDwHgPIiOd4YG+Uzgpss+dkvtKsJFaWlv8OC0A5mlvtcgobr9qwlqj+LHUgFjg8g4epJAokAaks/tVpRea+yLP00jgQLzc+MvNtWTAl+XjqRSduEoPKe+q/0P0qUCIbR4jRYD+kkzEeJQ35dJiq68AuMvTDN7a1fmVsRe7V6FgEwv+vgmyNF17JDDkyUMyQyy8Q3BkLLPNTBWVQyjTtecA0aPAex3C46EEqmkT6nuFFc51e3BvG2H37Hs9gQTR0S98VUSKBK5STuMADhEtQX4PV9buK7czv0GRRIHLkUiZEO2GML3eAhYd4DkpptwqdDxJPkviTEGURvML50ACxcFpYnhLqAObCWdK0pZQcB+A02prSHrbiaRNGmFAlsNZgdaVhYRxj4BYleJiQ6+ActMFmZTFJvaWxg312M4c08TnBBvxd3fwgkiHWyW0FxmqTyipLrUvUtXxHaBY7a8hmhUMz49m1FJOBtaNzUzg3rKtT2dYDmKlse2vXVvGLgetYIYVMove7PFLCmcQsj8sqrLNJZP9GnTQjN/h+0/6RyYlFD722mlikskwqBkkCM2R9Gie5cXeZEky3BgbVvMXjvJzENady/9L6lDCi1OVh6oTWruxRSB88iDDu7lbeDm9OTf9PCwdhmEQVZzfj2lgmY/WZs8vF9+QMv/A79vbxz8k/rHqjpXL7jXl1df7KTaqgwfzwrqfzUo6yZkpqAMA0Djk6JyQd02ltP38hAbi66CKXko+1ccimoe3voy+tYFd0sBuVOMdQb2LRGjJTUkWjGco5bZhkdmJUgn9Gdk8FbowNh8NM5oIcU8FfhlLx54PXSuSVtTATOzX1RL5gI8qXWEcfU7vI00sUXYJ4U/Ox3JizrvITFOt+pn27tTObQ/WrO+Iv9/2xySBDDQ++JcnGtNIe3sFtzDTdlVM2XZsm/ybD22EBhIqTzBrSrYRJ/72wWnoNyQpVTeBblbYJ0e8+rj3KO5skD5X2ER+YslFq25jsGbJi09QUJ1fh+m+uDUt8lxUYr60guEOZqozsOHHEks884uSGZfMR1MPBXYfoiqMcAxLljGg8Pd99tEcRYfbcMHFIUaVapJoPtPJH+CC2rua4DzXkYbDjpZETcrNo9xTiBsYFMm9iQczLpJ+R1qZdYSuiqFu7q1RNi550V3gA4PYikSeh2e4j5UBCmB4OKXEkMVI1hkD6w2ITDkYJoHfPRO4YFV69tp6bilibqtHW1CiYbtvgU= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN7PR01MB7903.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(7416005)(1800799015)(366007)(52116005)(376005)(38350700005)(921011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hfJhicWS0WN1Dlnk1WfIJjzfkoNyQU/eFbjqkvVZevX3RtDrAZ2c2fNdOLQZftU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GejnWcCoC69bMh0nd9o+kitRT4wGa50tHQ9eIV9Zd/GqWLp6UUzwHIlIIpB3cITBjCtInq0fggoSWZbIOjjW7LMGnlQ3N3lh+DpNHgVXwlIBO8RBPiHsman03HHcQtDOfmFr31J90mGOgjjZVw3punALLwf4dC/mrdKakNFK1LcCc0ujZFbVaOvT4INThMxd/QDLuQZ/kIeptNKtRIVMdM6MTVGihMLnB2+Xbx7wopXgAKT0lKUqo3TQ0rbI/HUrOxVfWhOKkql/V0q9/6hpLucPtpKRzu/BIkcYFuAwS06z5//ooVphSo5AliV/P2zoCn69jGwt7WPXWVXlUXinX+JBUvf1d01Vm/p4GofCbsvztOFSSJRNDQGVWahcmhLGMSW0bcbfgUDeAttWzSSlIVFgkiQhxFMjHAyVQL0M05FiU9kkbFM4RDT5ijw/iDc9R/UXO4kl47K6LdV3puLwk0dnUZv3rYDj7nAiwlzl+f6tSIIi3fjDexQ0Xs= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: aba7d3da-f48e-4f65-f6a8-08dc79da7fb6 X-MS-Exchange-CrossTenant-AuthSource: SN7PR01MB7903.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2024 21:10:53.7496 (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: YMDqd8m5WkKWuIyzKHZVEW1lGdMFntnC2bm1VN8R/XuGPz8a9eDXH5Mzgy7KWyrN5cAAEt9JULHAyIsiadIEFdKHkdsZuQmQrx2XW7wOqFCTJ61KVlzb5yG/LaICRtS8 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR01MB8627 This patch set intends to enable EINJv2 support. The goal of this update is to allow the driver to simultaneously support EINJ and EINJv2. The implementation follows a proposed ACPI specs(1)(2) that enables the driver to discover system capabilities through GET_ERROR_TYPE. Note: this revision includes new updates from the last review, where some changes remove redundant code as well as converting decimal values to hex for consistency purposes. This revision also includes CXL error injection updates. Note: The first two ACPICA patches are to be dropped once merged in ACPICA project(3). (1) https://bugzilla.tianocore.org/show_bug.cgi?id=4615 (2) https://bugzilla.tianocore.org/attachment.cgi?id=1446 (3) https://lore.kernel.org/acpica-devel/20240514184150.6285-1-zaidal@os.amperecomputing.com/ Zaid Alali (8): ACPICA: Update values to hex to follow ACPI specs ACPICA: Add EINJv2 get error type action ACPI: APEI: EINJ: Remove redundant calls to einj_get_available_error_type ACPI: APEI: EINJ: Enable the discovery of EINJv2 capabilities ACPI: APEI: EINJ: Add einjv2 extension struct ACPI: APEI: EINJ: Add debugfs files for EINJv2 support ACPI: APEI: EINJ: Enable EINJv2 error injections ACPI: APEI: EINJ: Update the documentation for EINJv2 support .../firmware-guide/acpi/apei/einj.rst | 51 ++++- drivers/acpi/apei/apei-internal.h | 2 +- drivers/acpi/apei/einj-core.c | 177 +++++++++++++++--- drivers/acpi/apei/einj-cxl.c | 2 +- include/acpi/actbl1.h | 25 +-- 5 files changed, 214 insertions(+), 43 deletions(-)