Message ID | 20250403231339.23708-7-zaidal@os.amperecomputing.com |
---|---|
State | New |
Headers | show
Received: from CH5PR02CU005.outbound.protection.outlook.com (mail-northcentralusazon11022135.outbound.protection.outlook.com [40.107.200.135]) (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 D7F241EF0A1; Thu, 3 Apr 2025 23:14:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.200.135 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743722047; cv=fail; b=GdyDYIriLdEW+lmcaS9DNbcPWnvtAY1mnIgOeLHDHDOsPnq/I/OQ8qZKs/GGYwpGRNEYMihJ6dcdys6cjS6Ytvv22kuc2HBfzI8tA7nE73oVv/gSros8hmp1M8VAiV5DWc38J6H7l/K1co2kKFMbx/uYGz/ccpkY4Eg8/rZBV0Y= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743722047; c=relaxed/simple; bh=YBaXosnlYoxfqOdoTDewJ8lp/ZRQ5lfcJesq/VckaMs=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=EB2igMmHBo64jFPLfOfp8hH0VAmitnc+7cItVQ3GUFyJz6IxNeuCzqxVPbLq8ODoMPqDHHckMDAL+ZxOI3oqrDzT5XsdWUaEWe63Gsa6f/EVgcz1QGFlDIYK79+Zq6do3A9CDBsYLDPLOIqJB4GrxXrHWP+8yc5xEf697dqqs0k= 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=IFP0MhxE; arc=fail smtp.client-ip=40.107.200.135 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="IFP0MhxE" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=i7fUdAmCvifb5HVoqV8tFPem1Ocq0hELVmthlWMY7aAHbRNgTDNad+fZ1w5Tidflqq70UEhqnZ0O3HDdr1SCljASoGMAYu2U8fzqnJVbaAf9K0XvEQu4vTg3UTyALK0cRmMWA5f/puijScXk3UXnWd3CLf6H+YPzNXQmZCJiFVkyb/Rn6xkxwm1IuRR/rpiiQ9lvmYROfG4see74PftRGJ8o/CB7q41QCziWd9i+syi6zuxwqSgZhccxDIdYH1w6V854YQ/YP5am6aHzI8GtYrbP25QZMi0AbWu1r2ZZGSZU3+BZ9uaoVOtgArwiDI9Xsotd+edNKNNl1YgHHKgDqw== 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=hNfVLYnHUMgY755sV0Sp9+69FAaT8tvLDJ45aeDF0Gw=; b=Z/QqJexQcq0vItjNLeCo0Szq0IQBEQbHvwSkiGNo1vson/eBsAtlD2gRjktwvCfuL2dkQkctP5UBr6dmbEyCw/9vTUYmbKdjnKQb0cHCuOHv6bldxyEjK5q3sBeiEZJ+YfSXg/wbDKtazTJ13kyc//LQZ2d4KiDonFyNvbzscHiFv+zANeRjxzG93uSU+5n73dFNb29boc33DRV3lvpKcB5amgdiTprad3tqBRusHEzl45afH5mAVvmUpT3it/X43Kdwv+UWMSCr6O6GuhQfHW2QO+vcHDVeBxV76+BoXgqvlHG8wnQuF0NxJSPcKCWUadGZPhXaHjgsCu8uILXcag== 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=hNfVLYnHUMgY755sV0Sp9+69FAaT8tvLDJ45aeDF0Gw=; b=IFP0MhxE/tTxMZpzwFQPXiDh1mHv+T5Pdq8/oc/G7nZN+SF9ABcVpc52mSI4UUQ6lJP3ERTqDHeCMlEW2AhhhGS6Uthq6ZnG/Dus2OGZZQCSjjGqwFz+q12LzKGGwL+yYsqWsg/qgyD7lT2vfvXimpCuO1pVXdJb9pJsoEjLgig= 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 BN0PR01MB6925.prod.exchangelabs.com (2603:10b6:408:168::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8583.43; Thu, 3 Apr 2025 23:14:01 +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.8583.041; Thu, 3 Apr 2025 23:14:01 +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 v5 6/9] ACPI: APEI: EINJ: Add einjv2 extension struct Date: Thu, 3 Apr 2025 16:13:36 -0700 Message-ID: <20250403231339.23708-7-zaidal@os.amperecomputing.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250403231339.23708-1-zaidal@os.amperecomputing.com> References: <20250403231339.23708-1-zaidal@os.amperecomputing.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MW4PR03CA0246.namprd03.prod.outlook.com (2603:10b6:303:b4::11) 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_|BN0PR01MB6925:EE_ X-MS-Office365-Filtering-Correlation-Id: 49e57ab6-b78a-44e0-024f-08dd73053804 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|52116014|366016|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: 6MzI5eiHmUb67L3rtaBhuRFm6Nus12c6bSTKjyGgaZi6wx6zVu4x4IqlwYlkATgYzbl2mCjAtvvrm4gqW+MIxdAnpgWE7cF3nkheJkkiSveJMfrq6HcQSwpPUFzo+mPh00l4lLPtKjj+Z+Pk0YNxfibYNIAb9Xil6CdBoxMhOwFzUu6og4hDOorpUJkPq6zt9SIn0n0QVgyote282lLlKLVCj9RL6Yzf/geEIlPlNX/T37ZozPSunv0wmh0Vb5PB73BP/EOmK9Oe0gPFkEHnKjiI9bFu7cUPPBzXJWWzM99RR0+R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VUvtb67H9M1t9NMmep1ObdlHfR7Vf4cgFO0bCX4yK23gLEZzkEvj1Y4WVoWMMMS1v7AmQcxkFWUIi/3wqgHEPeHPBVr4EQcIWpWIdyc3Q== 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)(7416014)(376014)(52116014)(366016)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: caCZfXspToDjT3otwfqqIDJKX5jkQPIYV1egExu78Tz9/KTHEV/PXrS5uJofqz2s7SKeRxtRotKTvdxmAt+quztOdR5Ecnz5DkpWP8haau4YhpdRSZJ0SV2j1k5xAWqA87muubCf/7i4ROoKw2Q2ViqRDYSM8o1b8iehYm78BTsfiSv/MwcGEAZJ9LN4iEfzyrrA0HFQn8hPkDC241JXpmICpnCdi2n5hy5jCB37WR/QzCDtT16aZo6ne4fBlPAnPRrrzNsnthO74l1tr4oAvTz71wNqGT3iaXjUVWdArN3L9jl4oaEAsZ7qPfQtNQkxbbB7QZ4kdihDgnynBenwtZn4XZGUVZ2d/oHRIiM2nVMJGh1vPDPVB2sz7pQfYXAqu32t5FSrTvEu99v+vB3p6zI6oV32xlVREl5QgkhUdb9V+KfRYt6qdIdd6YANZdjaAnyvtwXdIb9w/0/+G9j+tyfiJxagNvr9qTi2YHNRphg1BLydt6bMw3wAqBL1cwPDXWB8+2y4lcBuMhPXnbp1N/wBERnJ2j7d/igmpNg1IcYV9eMc8g2c16hZt2slMDKMFCzSPjUJoGsc1KTkMEfQbNwNimdQdI0P/FfnqCs/YNKfrlefdeZgUMTA5Fif/hmA8qayPj/a4OSdYGJqhy+Gia4WPMD6kLyfcqNhZbJloNv6Qe+7wjZzOTHgI0tUj8HVPwi7AIqtx3a3OPqXb199N6PwPfxDUCUn2H0bsEgVk7C7AJwSuv5SYUXsbJDqIStX12ChP1pB87mzMHGbqplXfgoLuQcgX2gMADXjpSNAuiPlj9P1P7UvODK9CxUku8KOs49izdt2m4EtxS7FC4C57V3JaBGhL52RWcdOU82fYhantPss+Zc3MHhDLm6ndl4FNdcf7VKWVYbWT3nZnIULe4hCGPTjF+Vfnd0jN07rqMHrNLabNwGmHYe4Wqb+FhNyb71lpoHLUkQClqiqnbhF58tPoPo4lttnws2veMc3of52M26CDUh6uatu1hl4uY1m8xUzOGa8RsZDwRg9xL8lX24TV4aQvx64FedOvKDjUkyImRPF6Ek8pXhx1tjPOaRyOt5hP27akBZKGR1U19k6x0bjtjRn24ctxcnBkYiYs3F023MBykjpEyY354swe3AJRFuHi2xMp87FixURfxE1ITh5eTpl1CwF9IHg5e4RpupTtcsRB5UU2+3yWipVgD+PPXmiQt2M43G992Vw3jEzqkyGU2vGK66O3sESEYJvuOKPUyES0Xu7vGgpNPZhoF3pOON7U43tRUN7hcgbTT+VLAhugtPlY5NjIebjKlpxr88XDK45XbkmAFOPeWQmmSeV52wKSWSX2qXO65VWqD3Bujo4liwJlG3IhyC47ZOe28+AJoIfIyp7HqdZlKgrj7S5RtEayDDeINLw36m7/tC91uId/jebsi5JVfP+TrHxAPO/8XFGVjLe77sUp8v+UuUFnHrkv5AZ9Nd/8mtqgb3W5TovSKcyg/kKMQaYz3AsqXlo123KcbzHW+THZJweyeZPjreNGkKG1CyTUFJHoGtVDrkt7ebawwb5TyG354EmXAEWf4gY5H4OSvVj3yoG7AGdXy/RgoUxFpC8AH41P3wgWtQL9lSaX5fnGzANIkETCmA= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 49e57ab6-b78a-44e0-024f-08dd73053804 X-MS-Exchange-CrossTenant-AuthSource: SN7PR01MB7903.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2025 23:14:00.9761 (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: jJX6IXB1c5ArJK3XXg7Lw394xIIXBodJ4RP4ZL2Gl7ZCmvVW/ZMbHgbL+ihEi4SH/Eu0J8h2TH3TUj+dugH4Ry/lQdeC+vQ/uZ9bhvf852P5jUS8DUeLPa19KknborA+ X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR01MB6925 |
Series |
Enable EINJv2 Support
|
expand
|
diff --git a/drivers/acpi/apei/einj-core.c b/drivers/acpi/apei/einj-core.c index 0d99f9951c03..d1ddc82744c7 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[] __counted_by(component_arr_count); +}; + 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 struct. (1) https://github.com/tianocore/edk2/issues/9449 Signed-off-by: Zaid Alali <zaidal@os.amperecomputing.com> --- drivers/acpi/apei/einj-core.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)