From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 694D1AC13B0 for ; Fri, 19 Jan 2024 14:57:27 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=gIKsLT0mrbAL6cch8aFYpxUrRiFeu97oDbzjJvfO6Ac=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Received-SPF:From:To:CC:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1705676246; v=1; b=mbPg4oxxq7/Sw7Je03n3sFC6DvPgiRzTjYP5gN1P9HAlaDryj/PCd6q6fqch5r6jPBzZSXR7 +CyO5FJeQdjkpeCkCTti+OyONkguZxM/MQkgRELtV/wzR4jVCiQI08FffD8kUyNsfqMLAdca2D2 JgEU/RtgetBG1Myw6YfLZNZE= X-Received: by 127.0.0.2 with SMTP id 9HyoYY7687511xtKRbcbHaDh; Fri, 19 Jan 2024 06:57:26 -0800 X-Received: from NAM12-DM6-obe.outbound.protection.outlook.com (NAM12-DM6-obe.outbound.protection.outlook.com [40.107.243.84]) by mx.groups.io with SMTP id smtpd.web10.5961.1705560665604675209 for ; Wed, 17 Jan 2024 22:51:05 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kdcKzCryaCtx8YaYBwWm18PNwb6G6mU+qiiJQmcBs77PCIWtEvPdHhOjRYYoDEpX0MlGJ5Xho6OI73ppCRA1UzGe+fIlyWmhvcOZKVXrFyzBDQRpjH+/3/TxE92bnFzQZqczMonaL3UlDBugJ3YlO4FQim0N7unWrsmn5AbmblFAxPwfQ14sq4St63YFmL5B/sMp47r9ut07fopvbVWpyRlNzOzd0n7nAtOt+9nGZGlc+hQ2LrX4RkRUuK6gd+TyCoU5JTau77PeYABkzdyOY8OdWIl39V+RViibvCBJDV038dis3aHSZYpPE9f6nhYbGrpDLpLAjJNUzuBi/pHFcw== 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=5HEmASh6IpxK+CUea0SfJuMfK2ZNEJ65VQYGYX3pOIo=; b=hgjfQSNVZSYpJiWQCcUzvjXmtnI74mlW71J9vcwL10+ChK/f6pnF/hECMflnJ/oTVRFdSrICNMgC/1hggepK3/prgtjhEwFnDGU1wlD9dZbxWIVi3XFv5yaI5F/oDcqJjz+mEa0Yes1LiTlQtlC8tyuu7qY+MVqbVKmyOl/2gq+E/T5knCIN55FxfRbMmrW+DRhRf2YoIkthFmraYHCJvLHxByOuuRd43SUHAHPN+o3j/tStQTOO06RiuIQu8RneX30pgwRrF0oKSikOzU344cQ8zRbs6u/BReMLydPVxNZVzTb6MHreaCleoJEI5Kk+2lkvUjOYdJpemE7yK9mSyA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) X-Received: from CY5PR19CA0024.namprd19.prod.outlook.com (2603:10b6:930:15::17) by LV8PR12MB9452.namprd12.prod.outlook.com (2603:10b6:408:200::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.24; Thu, 18 Jan 2024 06:51:03 +0000 X-Received: from CY4PEPF0000E9DB.namprd05.prod.outlook.com (2603:10b6:930:15:cafe::e2) by CY5PR19CA0024.outlook.office365.com (2603:10b6:930:15::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.24 via Frontend Transport; Thu, 18 Jan 2024 06:51:03 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C X-Received: from SATLEXMB04.amd.com (165.204.84.17) by CY4PEPF0000E9DB.mail.protection.outlook.com (10.167.241.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7181.14 via Frontend Transport; Thu, 18 Jan 2024 06:51:02 +0000 X-Received: from SATLEXMB08.amd.com (10.181.40.132) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Thu, 18 Jan 2024 00:51:00 -0600 X-Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB08.amd.com (10.181.40.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Wed, 17 Jan 2024 22:51:00 -0800 X-Received: from SHA-LX-MINGXZHA.amd.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.34 via Frontend Transport; Thu, 18 Jan 2024 00:50:58 -0600 From: "duke.zhai via groups.io" To: CC: Duke Zhai , Eric Xing , Igniculus Fu , Abner Chang Subject: [edk2-devel] [PATCH 06/33] AMD/VanGoghBoard: Check in AmdIdsExtLib Date: Thu, 18 Jan 2024 14:50:19 +0800 Message-ID: <20240118065046.961-7-duke.zhai@amd.com> In-Reply-To: <20240118065046.961-1-duke.zhai@amd.com> References: <20240118065046.961-1-duke.zhai@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9DB:EE_|LV8PR12MB9452:EE_ X-MS-Office365-Filtering-Correlation-Id: f2731211-0725-4773-dde7-08dc17f1d657 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: PGOw+gwgNhSX42wWzIxZwu1lXF1f9mB3+1FMfU4MedpAfo43FiQf3+KVWEsRPDVy5PeZlFoIGbhEBrgI2JG1Mh1i7B22fbggRMBVqyltwgfTAako9Thm283stcvaomcjeS9CKH72/Q5W/vERtCJGHvBiIbYoosUD7nOwvv9+EjPT5L1xYl++Wtn6X1ZJdptD7ylzvlC4mQO2kd8+1lWmPfEDE6xquvcWnsSOBzpFf88xKlzMHvEUxLW0XnyCLmmdPCJcqg3z5+dnTV8KNTahDxzlXvxSSI/08w7kBXarnhuOqXyl23GsKOdb3dACjbjNzB94AdJ6rGE13+xsaZvjRozoJ85IwFiGLGeLyMJ0ilEm2Il++2YlfOjpTAV8fUTTOvU9vr+5bv0vtI19rcBbES4hRCXZ/MdrsCvtwdBaa+6rE0PBw8U0NTQOOli8xGUUbtWnv6H9MK3d6hXx3v++9IwLbIH1DcGDmMs/ZVgGjV9IvvHuuRpxbVHMV9hzvUh/rg5DnEbQVcyHKUcQ0bmbiJL5SnY9UM2ubDZPju49EYT119C0XHjLC7gWS9Z9trxsuks7RteBOMXLPYVU6XEu6Keoco0gI4KtK+uToCl/TVDOHDgfzetxNj2pZ8X5NEJMZw4NRYC1hDpQNSAWsYz+8SJ+CiFDENxHqDum2nnsFhPvmVbnucrUs9mAldkO35uChm/lhYGuyQjQU2cxzwse+y41NY1PIuk4edJGgMIJqTGG9kBQd0r3ipvNm3fP/Yd/itWDXqF4WoBzfvmT1u47gg== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2024 06:51:02.9313 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f2731211-0725-4773-dde7-08dc17f1d657 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9DB.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR12MB9452 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,duke.zhai@amd.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: Yx1zJRlOkjmDGC4fOJJVVAsCx7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=mbPg4oxx; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io From: Duke Zhai BZ #:4640 A small part of Chachani platform code and FSPWrapperPkg needs IdsHookExtLi= b. Initial AmdIdsHookExtLibNull for ChachaniBoardPkg module. Signed-off-by: Ken Yao Cc: Duke Zhai Cc: Eric Xing Cc: Igniculus Fu Cc: Abner Chang --- .../AmdIdsExtLibNull/AmdIdsHookExtLibNull.c | 33 ++++++++++++++++ .../AmdIdsExtLibNull/AmdIdsHookExtLibNull.inf | 39 +++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 Platform/AMD/VanGoghBoard/ChachaniBoardPkg/Library/AmdI= dsExtLibNull/AmdIdsHookExtLibNull.c create mode 100644 Platform/AMD/VanGoghBoard/ChachaniBoardPkg/Library/AmdI= dsExtLibNull/AmdIdsHookExtLibNull.inf diff --git a/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/Library/AmdIdsExtLi= bNull/AmdIdsHookExtLibNull.c b/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/L= ibrary/AmdIdsExtLibNull/AmdIdsHookExtLibNull.c new file mode 100644 index 0000000000..f59b5beea1 --- /dev/null +++ b/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/Library/AmdIdsExtLibNull/A= mdIdsHookExtLibNull.c @@ -0,0 +1,33 @@ +/** @file + Implements AmdIdsHookExtLibNull.c + + Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
+ SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#include +#include + +typedef enum { + IDS_HOOK_UNSUPPORTED =3D 1 +} IDS_HOOK_STATUS; + +IDS_HOOK_STATUS +IdsHookExtEntry ( + UINT32 HookId, + VOID *Handle, + VOID *Data + ) +{ + return IDS_HOOK_UNSUPPORTED; +} + +IDS_HOOK_STATUS +GetIdsNvTable ( + IN OUT VOID *IdsNvTable, + IN OUT UINT32 *IdsNvTableSize + ) +{ + return IDS_HOOK_UNSUPPORTED; +} diff --git a/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/Library/AmdIdsExtLi= bNull/AmdIdsHookExtLibNull.inf b/Platform/AMD/VanGoghBoard/ChachaniBoardPkg= /Library/AmdIdsExtLibNull/AmdIdsHookExtLibNull.inf new file mode 100644 index 0000000000..354c19dd19 --- /dev/null +++ b/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/Library/AmdIdsExtLibNull/A= mdIdsHookExtLibNull.inf @@ -0,0 +1,39 @@ +## @file +# Amd Ids Hook Ext Lib Module INF file +# +# Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
+# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + INF_VERSION =3D 0x00010006 + BASE_NAME =3D AmdIdsHookExtLibNull.inf + FILE_GUID =3D CB364A1C-793D-46CE-B80A-0AB5FCB16D76 + MODULE_TYPE =3D BASE + VERSION_STRING =3D 1.0 + LIBRARY_CLASS =3D AmdIdsHookExtLib + +[Sources.common] + AmdIdsHookExtLibNull.c + +[Packages] + MdePkg/MdePkg.dec + +[LibraryClasses] + +[Guids] + +[Protocols] + +[Ppis] + +[FeaturePcd] + +[Pcd] + +[Depex] + TRUE + +[BuildOptions] + -- 2.31.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#114055): https://edk2.groups.io/g/devel/message/114055 Mute This Topic: https://groups.io/mt/103831167/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-