Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3342343lqo; Tue, 21 May 2024 14:12:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUgMAmHC3W3bGRCZ4ehLDlLaMFff6eQZCnXF9UUagQ/sVTFT0DrpkqLTwhMGm01d3D/F5V+N313I6Y0PGWNKCWoIvdCKAEZwpGDykLwRg== X-Google-Smtp-Source: AGHT+IFQcdHEG3/+YLBzY9iPw4+rojNgrp0MjXMEGnTh2haulDWqwmuP6KfhFhBLEnYA30MadGyA X-Received: by 2002:ac2:5f89:0:b0:51f:6a38:be0c with SMTP id 2adb3069b0e04-5220fc7d370mr20326153e87.22.1716325978577; Tue, 21 May 2024 14:12:58 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17b21b93si1414388566b.364.2024.05.21.14.12.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 14:12:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185460-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=eoO0kvF3; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-185460-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185460-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1DEDB1F21953 for ; Tue, 21 May 2024 21:12:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EBE9A14D283; Tue, 21 May 2024 21:11:11 +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="eoO0kvF3" 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 21F5014B943; Tue, 21 May 2024 21:11:09 +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=1716325870; cv=fail; b=q5M3dyQ/IyzUTVYASkodQHl3/kK9q3Rfsm9WESylE+FWSrzdLCHP8PtJLZZqOh0EsztauH+TNVg52brrnMW1MvSHy4thILzmrTbACQOCVmsx4M92oGWfPmu8FpYStvDaxgNIqzZfLnDDB9H09qvUXh5c8CKu1EMZQZeM73uSLAc= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716325870; c=relaxed/simple; bh=+d5xcI0Ilcd8r/y7RedeJ9DnaU14cJBRP1qcbPJh0+E=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=hCZyHcNtDOZjxlDg6qkmk/8xhvqupGW4eIvwKtY7KDlOJyPo94NPiTyhGvxryXh9t5KZqK2QCqn0CwzKtc2gyHxygWN1Tm/Og/HgLJLnQn0QQ41hkPwr1jgE6/iAuhEo+3SwJJ50+4bxwBN9WNHhW5e30K5cJkGsabAtQtBGsIo= 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=eoO0kvF3; 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 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BbhTIeCaWvoZDgkemAl2kKtyZXyfrpqgcxZSDCxTrLxdhBthUcxdGFA5sDaiJuxm8vPglf+3qoQqejZgiCk0mZywCM0I7NB4uenJF4/hiKlXZ+2+AsrX+lnZCUCTc1sZJaInHGtLPR7RuDRxUxHlVng7ttaThAASJHT7CjIgqq+/X98wnmXuuvWY/PfciJLlPjHlDKvuNJetfXjawGyqgJ7NDXMtSNb/jC+/nfrl1gXbKwbcei3PSH+U4EG9M8JzG/fYxTqkHNqoA8Gf5Kwtp/DsD8tJuPi9Q4i26ZX67GhKo2seJRuZBcFudP3kQEC9HYVhpoWhiz0aRIgidkcVzw== 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=FgCBw+/T2xaPa3/BxR5tMfRjnio5A7CpTBjc/NzfajE=; b=f+PchoNba5lf805oPEx6+COi9+EEgvKS15doFHgSYuvlw1IACL8QHdX2hH2Br56RLGN1TpHwGdXE07Uxo7rPR8YGx8tXiD6n773VcrW5hPsbiX0O0qsR5PP3oO61CscNe/YHHsbTiAkDOPfRaYMjGaAhvBVMn5t9s4kSXeLIsMTuu6lHNEoY8P7zgF/g8TeEwkw/ftXFMr+MXC2KIbs8GX2nzH7VX1eqv5+Vriq8a/js0LvMx81OnMhR1w45Oo7mfY3h0rM1+oT4B2bnjJsHPLKd+9ZLtgeoGOq75g4EU4zMWVnPSRhYqQA+ipgcFC1VMOrV1/zIltn59h4rD8TwpA== 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=FgCBw+/T2xaPa3/BxR5tMfRjnio5A7CpTBjc/NzfajE=; b=eoO0kvF3KJInwtbtKdGQWHBlBTy6Nk0CyiELXbR77GLOUVIA7pOijEaI3hs92dUJxLWNW6SGn+QEzs2lvdKHcRrOITGgEWGNJQ4nf+y21LF5pDmMdDAEAVf68spNmZLo5w5M6M/cQqhzqHjnel60jTazGfHmptRgpaBVdMFUmT8= 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:11:01 +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:11:01 +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 5/8] ACPI: APEI: EINJ: Add einjv2 extension struct Date: Tue, 21 May 2024 14:10:33 -0700 Message-Id: <20240521211036.227674-6-zaidal@os.amperecomputing.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240521211036.227674-1-zaidal@os.amperecomputing.com> References: <20240521211036.227674-1-zaidal@os.amperecomputing.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain 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-kernel@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: 80987ad7-2364-4a3b-d56c-08dc79da84b8 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: =?us-ascii?Q?Rk4IqrF+5N3sfSXqen/W11x0Ostg3zszO7hIumErOsRnE9tK6fRsi3rQIJwM?= =?us-ascii?Q?Jjrr+2FB2BL5u999SMncf8+05R/D1p2ZkBWYKeoW8SpskI7r6XaI9NQzmU+W?= =?us-ascii?Q?6Uq6tH22Hzie9SbS/qzWOme2Dijd7zlTWXB8PL1oYM2akBjwGfRliR2jh4Fu?= =?us-ascii?Q?NEfxTsaSHxiBLsFhj+avd2+W8at+wx4ALVv+041dyjCQPocfNWPtS2cGAgNu?= =?us-ascii?Q?lGR6mUerclgPV2kCP4FtC3wmdcspw5SIIx7K9mXb8dLWWA+SlXevw5Vv0UOw?= =?us-ascii?Q?esqMBnDCe6U37u5swHRS1/8S+F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ii?Q?cNUNzZ7PCSrNZDCNMuzT/mLXDkYHRQc0z5noVC0UiIaLh5EUiZ5lfOurq6A4?= =?us-ascii?Q?Qj9VmakGMOiNrE4x/rF4Rku/I3EVo3SNV8OvtLGnvlrAYXw+IQPBCvrVD94d?= =?us-ascii?Q?QRQnhQPaW6SGXLf7FHnnGK3D6Lp4L+b+59J2d+rAtlsPOQ=3D=3D?= 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: =?us-ascii?Q?ao6Bc9doaY8M2HelZoDYNuZgkz0DtQzj7P+iXldLYbM1IRMf4JpRhLLITf29?= =?us-ascii?Q?E7fAhXxeLgdiI/YMplewrhAgoSFBhm0d+WBzRx4gYBRykjDbaayK75updFtO?= =?us-ascii?Q?nVVQqVflhfK8njmUWhxJoQU3/PL3dp6qTn/q7S9GphcIjOqOO0apFug8qCBO?= =?us-ascii?Q?WqznxDL5yfz31mXJCUpTlDGSA6KJF4FA5SuSghjCWqnjMC4vYcJVCmqf/85y?= =?us-ascii?Q?v/qB4ijVqCcNmB1SRffg5oDsXjYNBS4Xz+n/vhJM9kA7mHMSpM98Cs202FZE?= =?us-ascii?Q?6pSPmkVl7iAWpjbJKwjEHwc59FEC0qADeheN2FAZB6pfEkckrPkgVurB/7au?= =?us-ascii?Q?4dl07tR0xbwmj4g6KYB3GdO/JfLaVB4bRFTGqiJYkfhHEeic1aay5bSoeWS+?= =?us-ascii?Q?CRVvAR+WR1s+r/TbcriS3YC+p3R5a1FX+tlrM5EqfyvmrLaK/RpDB1BJwUbC?= =?us-ascii?Q?5/bg1SwdU9UK5xak5AouD08XCAJKXg8lUMQvYpHQ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ii?Q?pl/VGCOAD66Ca3t0wb90skMCs7oOzkBmsh3FcfLPC5qEsgwJwdjk+gnjZLys?= =?us-ascii?Q?ClfFB+A3V7L7UsVERj6cbYaSXXXthTTOo2mJgWxpjGwlp+G1g1iiPvVTtIR3?= =?us-ascii?Q?5rxdE9vaUHqxxL/xHkP56UmuzUrQvbTseWjUhXVU/nuiFr3kqeudcD65wBMM?= =?us-ascii?Q?AiHixg5v0wM283rrgV6+XjSa0L1ZZu+1GT93dJ/AiEZq/ubQdExo+zrQZ8mF?= =?us-ascii?Q?sHLrjhbOY5J8KPqa4LnhEe0=3D?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 80987ad7-2364-4a3b-d56c-08dc79da84b8 X-MS-Exchange-CrossTenant-AuthSource: SN7PR01MB7903.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2024 21:11:01.8037 (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: IBRbTqLiE9GNfFLOLmxeg1gN3vllAYwVvC+b2ID1K6F//GI8lg0wrINKEmrD3Oji+pHLPNWksHi5x+jhL9EyFQk4FqXz9z4aepij72+IQPyiSkJ2sKGPsgQHUhBRf2S+ X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR01MB8627 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 --- drivers/acpi/apei/einj-core.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/drivers/acpi/apei/einj-core.c b/drivers/acpi/apei/einj-core.c index cc5ad1f45ea4..2021bea02996 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 fru_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, -- 2.34.1