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 EB24A740032 for ; Tue, 12 Mar 2024 03:06:05 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=kQQCT6l9F6oAkBRRq3tCntRnQvqU4QP22ktEHCiiVZA=; c=relaxed/simple; d=groups.io; h=Received-SPF:From:To:CC:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20240206; t=1710212764; v=1; b=IRfUBUn0EazuDVYuDPNm9GEghrAeb3+sF0hpKLPlAC0w+KVgD+xLRfn4tWQY6X/Rd1FhTRT4 PKdB1FXdzJOOL6qkuM2yjJh84GDgqtCNDp+3ElnOLkEXf0FnWjYUdppWH+rrxNM4kaSJTKpIjCt bx5rVdD0oFHdnQkiQZQFttREXOIR+axnTJUMVKd1FHhL/H3F9kd0v8Sf+ynfGxhZsBKHXrUKIx2 jaDclcwIm+eRixA1/TifTlzDigcZnTJ3c4I0As1O+0Yif+HvidnHBre+EzcI2iTxKIEomy4cjRZ BjH5HNscSlm/J9Kwjta+gQHnnXM8ZOEHqgKOtGIUPu8zw== X-Received: by 127.0.0.2 with SMTP id WnIoYY7687511xhEVK3H75Tm; Mon, 11 Mar 2024 20:06:04 -0700 X-Received: from NAM12-BN8-obe.outbound.protection.outlook.com (NAM12-BN8-obe.outbound.protection.outlook.com [40.107.237.62]) by mx.groups.io with SMTP id smtpd.web10.370.1710212763423105707 for ; Mon, 11 Mar 2024 20:06:03 -0700 X-Received: from MW4P220CA0012.NAMP220.PROD.OUTLOOK.COM (2603:10b6:303:115::17) by SJ2PR12MB7991.namprd12.prod.outlook.com (2603:10b6:a03:4d1::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.34; Tue, 12 Mar 2024 03:06:00 +0000 X-Received: from CO1PEPF000044F5.namprd05.prod.outlook.com (2603:10b6:303:115:cafe::32) by MW4P220CA0012.outlook.office365.com (2603:10b6:303:115::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.36 via Frontend Transport; Tue, 12 Mar 2024 03:06:00 +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 CO1PEPF000044F5.mail.protection.outlook.com (10.167.241.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7386.12 via Frontend Transport; Tue, 12 Mar 2024 03:06:00 +0000 X-Received: from SHA-LX-MINGXZHA.amd.com (10.180.168.240) 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.35; Mon, 11 Mar 2024 22:05:58 -0500 From: "Zhai, MingXin (Duke) via groups.io" To: CC: Ken Yao , Igniculus Fu , "Abner Chang" , Eric Xing Subject: [edk2-devel] [PATCH] AMD/AmdPlatformPkg: Update AMD Vangogh platform reference code Date: Tue, 12 Mar 2024 11:05:32 +0800 Message-ID: <20240312030533.477-1-duke.zhai@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF000044F5:EE_|SJ2PR12MB7991:EE_ X-MS-Office365-Filtering-Correlation-Id: bf6aa8fe-5d3b-4210-0376-08dc42415893 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: NJ1i1N33bZcdy1PKlROjMYdz8ohfEBbv7XvuEecZ8M6/jFhKsiGeN5SpSvTIdjS0EfqwjO4D6cOHfdTqdMIZzyXgtDFF6Le7XE2rQAdozFKH11mV15i42HI1scrVer0lwvxR9cxOz3teAXTmXLeCQFh7zG6RL2ibSnTHoPp6dS4C7OH9Qb+WLlVmVOTphELsJ/qwBx6voy+BGaFtOGe/eBI8fIODJ1BF1GaF1xU/pR9n3Mzvx5/rctJlX1qEkPXtT3OF3ROtzYJwoqUljkZIpR0S1nA1kYaW3ITY7EKCXL8a0jzoxQIJEIAiyj1JaN6mEhXL/qu5TdWU0mMYCGVKUyDqySh0vJ0D8eat0SYN0rvLP/DyWuxIPOHgA3+h3gKjUptBS2S9c0derx3oJBb8mc1ML3RA+adrabKl+n6FG1POHUf8jTQ2kvunmYAMgS/bQRIsZO3f/ETRSferTDBbOkp8EJvZQ5XxV2KnDpfc60EsV47l1sBxg71nfFIlKFaKeWL/oDMLnoeoWlMhbe7uAWWvVUROyE3au54OVkULXi/NMsV+jF50sHVFDG+baWxfLGcZOKqdEVpBxNsZmkKAW8l49PXWCk6hBQgj78Kxvpaj71Hn/jpLkY/1IrkgnQmgzoY9LcaQ+Qjn5qjal4HirZivFmsbTTvMo7kuF8ncWwidbeFEVmWSxvEJsxy0/4imItWZeGNmBAVObjeMgYoxv/E3+WH381RjrmKWWABwoGrnGNlfxhzVRuqxLhu30kbS X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Mar 2024 03:06:00.4698 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bf6aa8fe-5d3b-4210-0376-08dc42415893 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: CO1PEPF000044F5.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB7991 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 Resent-Date: Mon, 11 Mar 2024 20:06:03 -0700 Reply-To: devel@edk2.groups.io,duke.zhai@amd.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: JYEds1NqKjqMi3PRzQaY0giux7686176AA= 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=20240206 header.b=IRfUBUn0; dmarc=pass (policy=none) header.from=groups.io; 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 #:4728 1.Use HPET timer to replace 8254 timer 2.Fix Bug Microcode version cannot show correctly at BIOS setup 3.Enable capsule at linux build 4.Update FspWrapper UPD table for BIOS setup options Cc: Ken Yao Cc: Igniculus Fu Reviewed-by: Abner Chang Reviewed-by: Eric Xing Signed-off-by: Duke Zhai --- .../BIOSImageDirectory32M.xml | 2 +- .../ChachaniBoardPkg/GenCapsule.bat | 2 +- .../VanGoghBoard/ChachaniBoardPkg/Project.dsc | 2 - .../VanGoghBoard/ChachaniBoardPkg/Project.fdf | 3 +- .../VanGoghBoard/ChachaniBoardPkg/build.sh | 22 +++++- .../edk2/Fsp2WrapperPkg/Include/FspmUpd.h | 71 ++++++++++--------- .../FspWrapperPlatformLibSample.c | 29 -------- 7 files changed, 59 insertions(+), 72 deletions(-) diff --git a/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/BIOSImageDirectory3= 2M.xml b/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/BIOSImageDirectory32M.x= ml index 22af6623e2..585e12d487 100644 --- a/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/BIOSImageDirectory32M.xml +++ b/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/BIOSImageDirectory32M.xml @@ -57,7 +57,7 @@ - + diff --git a/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/GenCapsule.bat b/Pl= atform/AMD/VanGoghBoard/ChachaniBoardPkg/GenCapsule.bat index 7dca22a4e3..c55f561772 100644 --- a/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/GenCapsule.bat +++ b/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/GenCapsule.bat @@ -36,7 +36,7 @@ if not exist %WORKSPACE%\%BIOS_FILE_NAME% ( goto ERROR ) =20 - Setup OpenSSL Command Line Environment +echo Setup OpenSSL Command Line Environment if not "%OPENSSL_PATH%" =3D=3D "" ( set OPENSSL_PATH_TEMP=3D%OPENSSL_PATH% ) diff --git a/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/Project.dsc b/Platf= orm/AMD/VanGoghBoard/ChachaniBoardPkg/Project.dsc index 510ce10c0c..20f06dd851 100644 --- a/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/Project.dsc +++ b/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/Project.dsc @@ -745,8 +745,6 @@ MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf FatPkg/EnhancedFatDxe/Fat.inf PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf - OvmfPkg/8259InterruptControllerDxe/8259.inf - OvmfPkg/8254TimerDxe/8254Timer.inf MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerf= ormanceDxe.inf MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableSmm/FirmwarePerf= ormanceSmm.inf =20 diff --git a/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/Project.fdf b/Platf= orm/AMD/VanGoghBoard/ChachaniBoardPkg/Project.fdf index 5194a8c10d..0d844689b3 100644 --- a/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/Project.fdf +++ b/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/Project.fdf @@ -416,8 +416,7 @@ NumBlocks =3D 0x100 # Platform # INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf - INF OvmfPkg/8259InterruptControllerDxe/8259.inf - INF OvmfPkg/8254TimerDxe/8254Timer.inf + INF PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf =20 # # ACPI diff --git a/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/build.sh b/Platform= /AMD/VanGoghBoard/ChachaniBoardPkg/build.sh index f4652e91c6..0984876ef2 100644 --- a/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/build.sh +++ b/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/build.sh @@ -1,3 +1,4 @@ +#!/bin/bash ## @file # Linux build script file to launch Chachani Board BIOS build # @@ -22,6 +23,7 @@ export OemBoard=3DChachani export PLATFORM_PATH=3Dedk2-platforms/Platform/AMD/VanGoghBoard export BUILD_TYPE=3DRELEASE export TOOLCHAIN_TAG=3DCLANGPDB +export OTA_CAPSULE_NAME=3DOTACAPSULE # You need to keep this name sync wit= h PlatformCapsule.fdf #TRUE / FALSE export COMPRESS_FSP_REGION=3DTRUE export KEY_MODE=3DTK @@ -35,16 +37,25 @@ export NASM_PREFIX=3D export GCC5_BIN=3D #CLANG_BIN shall end with a slash. export CLANG_BIN=3D +#OPENSSL_PATH shall end with a slash. +export OPENSSL_PATH=3D =20 echo "Building for ${OemBoard} board, ${BUILD_TYPE} mode with ${TOOLCHAIN_= TAG}." -echo "IASL: ${IASL_PREFIX}iasl, NASM: ${NASM_PREFIX}nasm, GCC: ${GCC5_BIN}= gcc, CLANG:${CLANG_BIN}clang." +echo "IASL: ${IASL_PREFIX}iasl, NASM: ${NASM_PREFIX}nasm, GCC: ${GCC5_BIN}= gcc, CLANG:${CLANG_BIN}clang, OPENSSL:${OPENSSL_PATH}openssl." [[ ${COMPRESS_FSP_REGION} =3D=3D "TRUE" ]] && echo "FSP will be built with= compress support." # Env check echo_section "Checking compilation environment" [[ "${IASL_PREFIX}" =3D=3D "" ]] && export IASL_PREFIX=3D$(dirname $(which= iasl))/ [[ "${NASM_PREFIX}" =3D=3D "" ]] && export NASM_PREFIX=3D$(dirname $(which= nasm))/ +[[ "${OPENSSL_PATH}" =3D=3D "" ]] && export OPENSSL_PATH=3D$(dirname $(whi= ch openssl))/ [[ -f ${IASL_PREFIX}iasl ]] || (echo "IASL not found! Please specify IASL_= PREFIX!";exit -1) -[[ -f ${IASL_PREFIX}nasm ]] || (echo "NASM not found! Please specify NASM_= PREFIX!";exit -1) +[[ -f ${NASM_PREFIX}nasm ]] || (echo "NASM not found! Please specify NASM_= PREFIX!";exit -1) +[[ -f ${OPENSSL_PATH}openssl ]] || (echo "OpenSSL not found! Please specif= y OPENSSL_PATH!";exit -1) + +echo "IASL version $(LC_ALL=3DC ${IASL_PREFIX}iasl -v | sed -n '3,3p' | cu= t -d' ' -f5) detected." +echo "NASM version $(LC_ALL=3DC ${NASM_PREFIX}nasm --version | head -n1 | = cut -d' ' -f3) detected." +echo "OpenSSL version $(LC_ALL=3DC ${OPENSSL_PATH}openssl version | head -= n1 | cut -d' ' -f2) detected." + if [ ${TOOLCHAIN_TAG} !=3D "CLANGPDB" ] then [[ "${GCC5_BIN}" =3D=3D "" ]] && export GCC5_BIN=3D$(dirname $(which= gcc))/ @@ -174,4 +185,11 @@ python3 FlashABImage32M.py ${F1_ECSIG} ${F2_EC} ${F3_E= FS} ${F4_PSP_L1_DIRECTORY} ${F6_SLOT_HEADER_1} ${F7_SLOT_HEADER_2} ${F8_SLOT_A} ${F9_SLOT_B} ${F1= 0_OUT_IMAGE} popd =20 +echo_section "Generating Capsule image" +rm -r ${WORKSPACE}/Build/ChachaniBoardPkg/${BUILD_TYPE}_${TOOLCHAIN_TAG}/F= V/SYSTEMFIRMWAREUPDATECARGO* +touch ${WORKSPACE}/Build/ChachaniBoardPkg/${BUILD_TYPE}_${TOOLCHAIN_TAG}/F= V/SYSTEMFIRMWAREUPDATECARGO.Fv +build -p ${PROJECT_PKG}/PlatformCapsule.dsc -t ${TOOLCHAIN_TAG} -b ${BUILD= _TYPE} -D BIOS_FILE=3D${BIOSNAME}UDK.FD +[[ $? -ne 0 ]] && exit -1 +cp ${WORKSPACE}/Build/ChachaniBoardPkg/${BUILD_TYPE}_${TOOLCHAIN_TAG}/FV/$= {OTA_CAPSULE_NAME}.Cap . + echo_section "Build success @ $(date)" diff --git a/Platform/AMD/VanGoghBoard/Override/edk2/Fsp2WrapperPkg/Include= /FspmUpd.h b/Platform/AMD/VanGoghBoard/Override/edk2/Fsp2WrapperPkg/Include= /FspmUpd.h index 8cadbe430a..875461a58a 100644 --- a/Platform/AMD/VanGoghBoard/Override/edk2/Fsp2WrapperPkg/Include/FspmUp= d.h +++ b/Platform/AMD/VanGoghBoard/Override/edk2/Fsp2WrapperPkg/Include/FspmUp= d.h @@ -16,41 +16,42 @@ /** Fsp M Configuration **/ typedef struct { - /** Offset 0x0040**/ UINT32 bert_size; - /** Offset 0x0044**/ UINT32 tseg_size; - /** Offset 0x0048**/ UINT32 dxio_descriptor_table_pointer; - /** Offset 0x004C**/ UINT32 pcie_reset_function_pointer; - /** Offset 0x0050**/ UINT32 ddi_descriptor_table_pointer; - /** Offset 0x0054**/ UINT32 temp_memory_base_addr; - /** Offset 0x0058**/ UINT32 temp_memory_size; - /** Offset 0x005C**/ UINT32 fsp_o_pei_volume_address; - /** Offset 0x0060**/ UINT32 fsp_o_pei_upd_address; - /** Offset 0x0064**/ UINT32 pei_reset_ppi_addr; - /** Offset 0x0068**/ UINT32 resource_size_for_each_rb_ptr; - /** Offset 0x006C**/ UINT32 resource_size_for_each_rb_size; - /** Offset 0x0070**/ UINT32 total_number_of_root_bridges_ptr; - /** Offset 0x0074**/ UINT32 total_number_of_root_bridges_size; - /** Offset 0x0078**/ UINT32 amd_pbs_setup_ptr; - /** Offset 0x007C**/ UINT32 amd_pbs_setup_size; - /** Offset 0x0080**/ UINT32 ap_sync_flag_nv_ptr; - /** Offset 0x0084**/ UINT32 ap_sync_flag_nv_size; - /** Offset 0x0088**/ UINT8 DbgFchUsbUsb0DrdMode; - /** Offset 0x0089**/ UINT8 DbgFchUsbUsb2DrdMode; - /** Offset 0x008A**/ UINT32 CmnGnbGfxUmaFrameBufferSize; - /** Offset 0x008E**/ UINT8 CmnGnbNbIOMMU; - /** Offset 0x008F**/ UINT32 DbgFastPPTLimit; - /** Offset 0x0093**/ UINT32 DbgSlowPPTLimit; - /** Offset 0x0097**/ UINT32 CmnCpuVoltageOffset; - /** Offset 0x009B**/ UINT32 CmnGpuVoltageOffset; - /** Offset 0x009F**/ UINT32 CmnSocVoltageOffset; - /** Offset 0x00A3**/ UINT8 CmnGnbGfxUmaMode; - /** Offset 0x00A4**/ UINT8 CmnFchI2C0Config; - /** Offset 0x00A5**/ UINT8 CmnFchI2C1Config; - /** Offset 0x00A6**/ UINT8 CmnFchI2C2Config; - /** Offset 0x00A7**/ UINT8 CmnFchI2C3Config; - /** Offset 0x00A8**/ UINT32 ids_nv_table_address; - /** Offset 0x00AC**/ UINT32 ids_nv_table_size; - /** Offset 0x00B0**/ UINT16 UpdTerminator; + /** Offset 0x0040**/ UINT32 bert_size; + /** Offset 0x0044**/ UINT32 tseg_size; + /** Offset 0x0048**/ UINT32 dxio_descriptor_table_po= inter; + /** Offset 0x004C**/ UINT32 pcie_reset_function_poin= ter; + /** Offset 0x0050**/ UINT32 ddi_descriptor_table_poi= nter; + /** Offset 0x0054**/ UINT32 temp_memory_base_addr; + /** Offset 0x0058**/ UINT32 temp_memory_size; + /** Offset 0x005C**/ UINT32 fsp_o_pei_volume_address= ; + /** Offset 0x0060**/ UINT32 fsp_o_pei_upd_address; + /** Offset 0x0064**/ UINT32 pei_reset_ppi_addr; + /** Offset 0x0068**/ UINT32 resource_size_for_each_r= b_ptr; + /** Offset 0x006C**/ UINT32 resource_size_for_each_r= b_size; + /** Offset 0x0070**/ UINT32 total_number_of_root_bri= dges_ptr; + /** Offset 0x0074**/ UINT32 total_number_of_root_bri= dges_size; + /** Offset 0x0078**/ UINT32 amd_pbs_setup_ptr; + /** Offset 0x007C**/ UINT32 amd_pbs_setup_size; + /** Offset 0x0080**/ UINT32 ap_sync_flag_nv_ptr; + /** Offset 0x0084**/ UINT32 ap_sync_flag_nv_size; + /** Offset 0x0088**/ UINT8 FchUsbUsb0DrdMode; + /** Offset 0x0089**/ UINT8 FchUsbUsb2DrdMode; + /** Offset 0x008A**/ UINT8 CmnGnbGfxUmaMode; + /** Offset 0x008B**/ UINT32 CmnGnbGfxUmaFrameBufferS= ize; + /** Offset 0x008F**/ UINT8 CmnGnbNbIOMMU; + /** Offset 0x0090**/ UINT8 PPTCtl; + /** Offset 0x0091**/ UINT32 FastPPTLimit; + /** Offset 0x0095**/ UINT32 SlowPPTLimit; + /** Offset 0x0099**/ UINT8 CmnCpuVolOffsetCtl; + /** Offset 0x009A**/ UINT32 CmnCpuVoltageOffset; + /** Offset 0x009E**/ UINT8 CmnGpuVolOffsetCtl; + /** Offset 0x009F**/ UINT32 CmnGpuVoltageOffset; + /** Offset 0x00A3**/ UINT8 CmnSocVolOffsetCtl; + /** Offset 0x00A4**/ UINT32 CmnSocVoltageOffset; + /** Offset 0x00A8**/ UINT16 CclkFmaxOverride; + /** Offset 0x00AA**/ UINT16 GfxclkFmaxOverride; + /** Offset 0x00AC**/ UINT8 padding1[8]; + /** Offset 0x00B4**/ UINT16 UpdTerminator; } FSP_M_CONFIG; =20 /** Fsp M UPD Configuration diff --git a/Platform/AMD/VanGoghBoard/Override/edk2/Fsp2WrapperPkg/Library= /BaseFspWrapperPlatformLibSample/FspWrapperPlatformLibSample.c b/Platform/A= MD/VanGoghBoard/Override/edk2/Fsp2WrapperPkg/Library/BaseFspWrapperPlatform= LibSample/FspWrapperPlatformLibSample.c index 1afcf68f85..2a616482e3 100644 --- a/Platform/AMD/VanGoghBoard/Override/edk2/Fsp2WrapperPkg/Library/BaseFs= pWrapperPlatformLibSample/FspWrapperPlatformLibSample.c +++ b/Platform/AMD/VanGoghBoard/Override/edk2/Fsp2WrapperPkg/Library/BaseFs= pWrapperPlatformLibSample/FspWrapperPlatformLibSample.c @@ -61,35 +61,6 @@ GetIdsNvData ( FSPM_UPD *volatile FspmUpd ) { - VOID *IdsNvTableData; - UINT32 IdsNvDataSize =3D 0; - IDS_HOOK_STATUS Status =3D GetIdsNvTable (NULL, &IdsNvDataSize); - - if ((Status =3D=3D IDS_HOOK_BUFFER_TOO_SMALL) || (Status =3D=3D IDS_HOOK= _SUCCESS)) { - // The CBS code doesn't follow its header! - IdsNvTableData =3D AllocatePool (IdsNvDataSize+100); - if (IdsNvTableData !=3D NULL) { - Status =3D GetIdsNvTable (IdsNvTableData, &IdsNvDataSize); - if (Status =3D=3D IDS_HOOK_SUCCESS) { - FspmUpd->FspmConfig.ids_nv_table_address =3D (UINT32)(UINTN)IdsNvT= ableData; - FspmUpd->FspmConfig.ids_nv_table_size =3D IdsNvDataSize; - DEBUG (( - DEBUG_INFO, - "IDS NV Table address:%x, size:%x\n", \ - FspmUpd->FspmConfig.ids_nv_table_address, - FspmUpd->FspmConfig.ids_nv_table_size - )); - return EFI_SUCCESS; - } else { - DEBUG ((DEBUG_ERROR, "Get NV Table #3:%d\n", Status)); - } - } else { - DEBUG ((DEBUG_ERROR, "Get NV Table #2:%d\n", Status)); - } - } else { - DEBUG ((DEBUG_ERROR, "Get NV Table #1:%d\n", Status)); - } - return EFI_UNSUPPORTED; } =20 --=20 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 (#116665): https://edk2.groups.io/g/devel/message/116665 Mute This Topic: https://groups.io/mt/104878510/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-