Message ID | 20241022213429.1561784-6-zaidal@os.amperecomputing.com |
---|---|
State | Superseded |
Headers | show
Received: from DM5PR21CU001.outbound.protection.outlook.com (mail-centralusazon11021088.outbound.protection.outlook.com [52.101.62.88]) (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 C181A1F9EBF; Tue, 22 Oct 2024 21:34:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.62.88 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729632894; cv=fail; b=VoDRmBCb7io/dMcihIA9LwaJ6dZ2PzeYcrQuEqJozmTIA2DLMk6IqSNpVgwiPC/Opyq+stBoV+ha/u5pBgdJftSKxgEsvInaykKH6R3zw70Dd2WmLAHve4Fl+HJa7uNcqgvDQFD43nLoOvdziPsbHsdTshd/GgWzt9nPL0DqqJE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729632894; c=relaxed/simple; bh=inU4LKjxZ3bA+W+3VsFgqsEeAOCacrEw0PSnRO9AEbA=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=L7T7JWNHPUZjJNVIYmdG6AbGxEREs5y1q2++U5CYz8Qu4xcHkCqinniqiN2rIOQLzwOglflE23XF70gAvTnIuI2LsQEByQPpeCFIKveCzzbnJ+o/ZN71EOuZs6cbLSXp1RrbAk9Lz9wKImPM+7IZU33Xgi+PKvR6cu7t4xBknjE= 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=uni8z0HC; arc=fail smtp.client-ip=52.101.62.88 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="uni8z0HC" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ee8fzLoidaX8/S6znVjYMI9dt7L3gixkXhcfO9YBaZq0em9JHGPoPN6HPtsbLJNhuwD+wI+inuW2/ToBmw1qda4rEB9p9DaZwZNx/huVGF5IPc3ijE7QDpDS1moFi9lOqC9f9QWi+gU9IKPnZV8fEujy5oFFukNLd1t1UQ6Ui8QAhbC/HQRhIxCbWOKhvuUvt090g7Y7TdgMe63Lm53HXFASH+Cnvs0NLWP3ltipTSgtV0yQyKE0zEEexWb2TuSh+2mJZBOoD6C4u/EA02yuyrNu9sTE40O3AdI1WRw+cBvnWZNMIc4eCl4fsKA/WsGLiVAmq+nz2cr5rt3wO5qzuQ== 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=hUrSB5OXVGInHjspH9AWJRqFUGr5GDfBfBHtLNol6nA=; b=KUz4rVsjJJsHj90LhCtJpqCMAi9kgbNsI+vmyS81wAr9Pw0IDf9O7yMQZcTttMdpdxR1mlYM29GFGLlAgLaSTa43uXakN/E7/kVQFjXo8bbUt3cp35TuIZakCCRMZK+SJWS9neKpCp/Qib8V3x4mWm3+zXuqbAOGYuxQ5h2QieQT+w3yhLwbEVHcfzhkbo5xzX7DWVrGrF/A6ebRg0o89lvoU1QXwCUjDstfumvnIM00sJblnSWGznNEcS9P4kHT+rMhTco0CEyDMhOQIs4QDeyUeMWJuYYnydoZzIBRqbL7tSc/kQBUCkPo3fudU2AOZE/Qtevcag1GqtI/J5M+aw== 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=hUrSB5OXVGInHjspH9AWJRqFUGr5GDfBfBHtLNol6nA=; b=uni8z0HC4fhjvzlMChFSIyr6Nq5iMLMTzDzCJEnAjhNNoOAYBeOEjGS8myD3OCsbFIyXNNj9uEFqYnv+QS5WC9PMqzouJXzKIcgurto6PJ9qCJmiu2x7r6yMsGJhMVZdSo5xU7uERAWNM3vbOko43zulBLz2HNW2CHIW3UA2pZs= 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 DS1PR01MB8991.prod.exchangelabs.com (2603:10b6:8:21b::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.16; Tue, 22 Oct 2024 21:34:47 +0000 Received: from SN7PR01MB7903.prod.exchangelabs.com ([fe80::cf45:9855:a64e:382f]) by SN7PR01MB7903.prod.exchangelabs.com ([fe80::cf45:9855:a64e:382f%5]) with mapi id 15.20.8093.014; Tue, 22 Oct 2024 21:34:47 +0000 From: Zaid Alali <zaidal@os.amperecomputing.com> To: rafael@kernel.org, lenb@kernel.org, james.morse@arm.com, tony.luck@intel.com, bp@alien8.de, robert.moore@intel.com, dan.j.williams@intel.com, zaidal@os.amperecomputing.com, Jonathan.Cameron@huawei.com, Benjamin.Cheatham@amd.com, Avadhut.Naik@amd.com, viro@zeniv.linux.org.uk, arnd@arndb.de, ira.weiny@intel.com, dave.jiang@intel.com, sthanneeru.opensrc@micron.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, acpica-devel@lists.linux.dev Subject: [PATCH 5/8] ACPI: APEI: EINJ: Add einjv2 extension struct Date: Tue, 22 Oct 2024 14:34:26 -0700 Message-Id: <20241022213429.1561784-6-zaidal@os.amperecomputing.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241022213429.1561784-1-zaidal@os.amperecomputing.com> References: <20241022213429.1561784-1-zaidal@os.amperecomputing.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MW4P221CA0027.NAMP221.PROD.OUTLOOK.COM (2603:10b6:303:8b::32) To SN7PR01MB7903.prod.exchangelabs.com (2603:10b6:806:34f::17) Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: <linux-acpi.vger.kernel.org> List-Subscribe: <mailto:linux-acpi+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-acpi+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN7PR01MB7903:EE_|DS1PR01MB8991:EE_ X-MS-Office365-Filtering-Correlation-Id: d75ed08b-3682-4ea0-ccec-08dcf2e15a38 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|366016|7416014|376014|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: t3i6FxFFhrufUdSNPZcn8UlHOg52kymK213HVIskbolAaDY++/3kXDXwFmEROMKtJhcHCOuhgHO7ybUl9n14KjNzu3tCbJU0tvsLTxpqvE7GbTI+po6R1B7gz/w41Am8PAFlyyElVPlrsMvPS9Snoz0o7u0aLpPG1d92OcxGGKAaB9m6qndkUtrztLELSLlUh7neLltgtycG9Q5vLW+/h696UIiMeTSqP5goF1WXCRc8XKdEW6B9h2DKl4aK2N91JRPdMG6XKLILwfUzgCvibxmqAfYWbGe70tntk8XT88f/xgTFkR6svj6wNWef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eXccGXkfEhT4M 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:(13230040)(52116014)(366016)(7416014)(376014)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vgO2IN1bcxRb2D0PafVbYrv6zP6YAfsYB471njdN4huuljvOLxShINdACTT7DpeoK2YN7KkRyRwfDbxLXoY4nvS+1N6fUZcbi2EeLBMsmfEGhqyaTjvjGTFzRVrduUHkdapthmB234IrO0jb61W/fbxJcPoOngDOt3GLFY5c5Tw/jR5Wm1CH8TGguwdNw+43L5BS4KVorCaz0uZ0apnUQseERxVQ4XNUT0Drp2l8F7aVUZ/Zq4uO1tS+AEdI7kGdgjAXByGnIv+exawlFSQxA+IlgvQab2cEKQdRi0AX5z1aZ3x/Y0aetqx/2W2qQYRPAZzdnYeZdv6qzdZMr2Z1vbbZEWgjsAVglhUQX0w39/alzJv+GIiNofvkM14jN2ybfg2tKRAtHSPt06F7WAT+P28lfuWGimwhMflogYetqXfxErt3B/TcbaJQhNsSQSRWt6pfsksR0ocmJtgQNW1kCAQcQ1vom99xieJiYILwaOf4ubglcu7ptn0QDUAM5xG/LKvoKgk/P77ezO1xU9KpTdNv9oYMjGcZ6fvMOp5A4HmtevDUrtS20vm9R713ZTygMq+wt/KuX1BWa58WyVuYhif3pAl0ONmxAaflZAyx7JDm6wQxKIe7MjrfbKolPWh3JAlb67bceRijxQRVytwRKIXIf/LvF29k7ZtQSpRKCaLdccwR02Hpfnc9KX+Rcpdkv9/MLz5CGQp2FPLLPChdTyjkFaGX8DyJ9C9aIp/AdeyIunPnVOCjP6NAS8g+iDbpJljmgAdhy8AbFWo0Z8G59kurc3Uqznl6tBn2ZKAx8FWGRqfLvZmORrfLP7OqSrlLb7UYhW4dW5gHsSeluaGboyNPdGhImPSwkpJwfRnteXVESHyUn1zW2eFn46RKY+Qj/cd7Z+Fpu3M9WLx6Fg9c04bqXJ3kgIEyv9u82rM2cX7rb/7CzCF29eaSoul9N4PNHNoOO9scUHcmTIV4j9y+hGL+q6j1ZRw9g9wpzGinZHmd9NYkw4iUDvz70a7CgkW/Gydon8rLwg81Hh3+kEgRoCrwSC5hNKqRRlkmQ8+XdNSDWCMV5KoEPtbC6bYKDcrlvKj3reNYY/4Prpw5fUmnizUfpYVXoGGCLx+6h7cU2qFGj/I42qMn5tzRVvQ2R18IcWc8b/1ZH2We3r4rTpMY4cV62sxZUFzPTUoqvCDOby3L8lfUt9XfIG3be9JZfalYgYit5+5Njl7EaKNmgxpKTFzrqE4AdtV2kxIhCcngvQyGnBEH4Ks1ZmHxXun1KM/U9iiCf1jczM+srJ06veA4Ov+MFQ58umfY+8GSDEZKfmSI8M/34c26f0yJM3yAjj9xWOZe+QHy+hmb1ZLjh3bIp21vCoUjaLPM9n+5Hd8t/Yf2pd80cAQQIoVqm6p+zTDsnS8bEbCcXWs5MsUCit7mi1ccYXVOevNk6pz6T3gu4MA9H460BMYf99WbIZcoKDDJVZY0y5aVDuPtEazTsaqOWAYUW2XPxWEfP97Lr/3xEvJy3bTmmi0Jv5GMctiyZJsSKKb5TC/4bYgUEErV27ySL4IJm9Bt4Q13P/Ffl8ElqV2mQsevx5J+gfQnmdWmObbTLH4iwPs8/e9GrVGM0CfWJur4wwTDYhU0CsBCUE9TCbE= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: d75ed08b-3682-4ea0-ccec-08dcf2e15a38 X-MS-Exchange-CrossTenant-AuthSource: SN7PR01MB7903.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2024 21:34:47.6776 (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: nFuCPyy9Q4g14bOjJuUCJhigPbcrsMgo3R4XTZmAvg1vAVANS6yPNB4yq7YAVlRwzk9KhkDpUVE4xtmLq6S/uD0t8aRjR9uvbWzMU322gMbJJhE7cIXx4J/UcqLKnIx2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS1PR01MB8991 |
Series |
Enable EINJv2 support
|
expand
|
diff --git a/drivers/acpi/apei/einj-core.c b/drivers/acpi/apei/einj-core.c index 3621f071a735..31a13ad6c4e5 100644 --- a/drivers/acpi/apei/einj-core.c +++ b/drivers/acpi/apei/einj-core.c @@ -50,6 +50,28 @@ */ static int acpi5; +struct syndrome_array { + union { + u32 acpi_id; + u32 device_id; + u32 pcie_sbdf; + u8 vendor_id[16]; + } comp_id; + union { + u32 proc_synd; + u32 mem_synd; + u32 pcie_synd; + u8 vendor_synd[16]; + } comp_synd; +}; + +struct einjv2_extension_struct { + u32 length; + u16 revision; + u16 component_arr_count; + struct syndrome_array component_arr[]; +}; + struct set_error_type_with_address { u32 type; u32 vendor_extension; @@ -58,6 +80,7 @@ struct set_error_type_with_address { u64 memory_address; u64 memory_address_range; u32 pcie_sbdf; + struct einjv2_extension_struct einjv2_struct; }; enum { SETWA_FLAGS_APICID = 1,
Add einjv2 extension struct and EINJv2 error types to prepare the driver for EINJv2 support. ACPI specifications(1) enables EINJv2 by extending set_error_type_with_address strcut. Signed-off-by: Zaid Alali <zaidal@os.amperecomputing.com> --- drivers/acpi/apei/einj-core.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)