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 0819B9415B0 for ; Tue, 21 Nov 2023 08:49:00 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=b2Id1K5w17SC57RghY92Hw9tfpMtb02mUqngWa5GWLU=; c=relaxed/simple; d=groups.io; h=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; s=20140610; t=1700556539; v=1; b=XXDZduLbxegsOQK8jJjti7ysjme2hvd/+SHLbe5+dhC0/bHDZPHB97oXJTPkywhEpTGnuocT 2rHKsjG57L5a4pxzpLVrGbCplf8WaR/9sbc7C5GOaRorI5sd8QW5f+i9ZUeSgIgv1eCFEfyesW1 z/hfw57LZXJbKD7om3dd+V9o= X-Received: by 127.0.0.2 with SMTP id vWMzYY7687511x9iCHVbk9Ju; Tue, 21 Nov 2023 00:48:59 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.34452.1700556538425128642 for ; Tue, 21 Nov 2023 00:48:58 -0800 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BC9221A32; Tue, 21 Nov 2023 00:49:44 -0800 (PST) X-Received: from cam-smtp0.cambridge.arm.com (e126645.nice.arm.com [10.34.100.114]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C22963F73F; Tue, 21 Nov 2023 00:48:56 -0800 (PST) From: "PierreGondois" To: devel@edk2.groups.io Cc: Jiewen Yao , Yi Li , Xiaoyu Lu , Guomin Jiang , Leif Lindholm , Ard Biesheuvel , Sami Mujawar , Gerd Hoffmann Subject: [edk2-devel] [PATCH v5 6/6] CryptoPkg: Enable Openssl Accel builds for AARCH64 Date: Tue, 21 Nov 2023 09:47:15 +0100 Message-Id: <20231121084715.1393672-7-pierre.gondois@arm.com> In-Reply-To: <20231121084715.1393672-1-pierre.gondois@arm.com> References: <20231121084715.1393672-1-pierre.gondois@arm.com> MIME-Version: 1.0 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,pierre.gondois@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: VBRBCIrGDwdGmfrGvZBuV1yrx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=XXDZduLb; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=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 BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4601 Enable the following modules builds for AARCH64: - OpensslLibAccel.inf - OpensslLibFullAccel.inf Acked-by: Gerd Hoffmann Signed-off-by: Pierre Gondois --- CryptoPkg/CryptoPkg.dsc | 23 ++++++++++++----------- CryptoPkg/Readme.md | 14 +++++++------- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/CryptoPkg/CryptoPkg.dsc b/CryptoPkg/CryptoPkg.dsc index 6a0104a3bb68..f08808d5d18e 100644 --- a/CryptoPkg/CryptoPkg.dsc +++ b/CryptoPkg/CryptoPkg.dsc @@ -5,6 +5,7 @@ # Copyright (c) 2009 - 2022, Intel Corporation. All rights reserved.
= =0D # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
=0D # Copyright (c) 2022, Loongson Technology Corporation Limited. All rights= reserved.
=0D +# Copyright (c) 2023, Arm Limited. All rights reserved.
=0D # SPDX-License-Identifier: BSD-2-Clause-Patent=0D #=0D ##=0D @@ -327,7 +328,7 @@ [Components.IA32, Components.X64, Components.ARM, Compo= nents.AARCH64] MSFT:NOOPT_*_*_DLINK_FLAGS =3D /EXPORT:InitializeDriver=3D$(IMAGE_EN= TRY_POINT) /BASE:0x10000=0D }=0D =0D -[Components.IA32, Components.X64]=0D +[Components.IA32, Components.X64, Components.AARCH64]=0D CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLibShell.inf {= =0D =0D FILE_GUID =3D B91B9A95-4D52-4501-A98F-A1711C14ED93=0D @@ -396,9 +397,9 @@ [Components] TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf=0D }=0D =0D -[Components.IA32, Components.X64]=0D +[Components.IA32, Components.X64, Components.AARCH64]=0D #=0D - # Build verification of IA32/X64 specific libraries=0D + # Build verification of IA32/X64/AARCH64 specific libraries=0D #=0D CryptoPkg/Library/OpensslLib/OpensslLibAccel.inf=0D CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf=0D @@ -439,9 +440,9 @@ [Components.IA32, Components.X64, Components.ARM, Compo= nents.AARCH64] OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibFull.inf=0D }=0D =0D -[Components.IA32, Components.X64]=0D +[Components.IA32, Components.X64, Components.AARCH64]=0D #=0D - # CryptoPei with IA32/X64 performance optimized OpensslLib instance with= out EC services=0D + # CryptoPei with IA32/X64/AARCH64 performance optimized OpensslLib insta= nce without EC services=0D # IA32/X64 assembly optimizations required larger alignments=0D #=0D CryptoPkg/Driver/CryptoPei.inf {=0D @@ -455,7 +456,7 @@ [Components.IA32, Components.X64] }=0D =0D #=0D - # CryptoPei with IA32/X64 performance optimized OpensslLib instance all = services=0D + # CryptoPei with IA32/X64/AARCH64 performance optimized OpensslLib insta= nce all services=0D # IA32/X64 assembly optimizations required larger alignments=0D #=0D CryptoPkg/Driver/CryptoPei.inf {=0D @@ -505,9 +506,9 @@ [Components.IA32, Components.X64, Components.ARM, Compo= nents.AARCH64] OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibFull.inf=0D }=0D =0D -[Components.IA32, Components.X64]=0D +[Components.IA32, Components.X64, Components.AARCH64]=0D #=0D - # CryptoDxe with IA32/X64 performance optimized OpensslLib instance with= no EC services=0D + # CryptoDxe with IA32/X64/AARCH64 performance optimized OpensslLib insta= nce with no EC services=0D # with TLS feature enabled.=0D # IA32/X64 assembly optimizations required larger alignments=0D #=0D @@ -521,7 +522,7 @@ [Components.IA32, Components.X64] MSFT:*_*_X64_DLINK_FLAGS =3D /ALIGN:256=0D }=0D #=0D - # CryptoDxe with IA32/X64 performance optimized OpensslLib instance with= all services.=0D + # CryptoDxe with IA32/X64/AARCH64 performance optimized OpensslLib insta= nce with all services.=0D # IA32/X64 assembly optimizations required larger alignments=0D #=0D CryptoPkg/Driver/CryptoDxe.inf {=0D @@ -561,7 +562,7 @@ [Components.IA32, Components.X64] OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibFull.inf=0D }=0D #=0D - # CryptoSmm with IA32/X64 performance optimized OpensslLib instance with= no EC services=0D + # CryptoSmm with IA32/X64/AARCH64 performance optimized OpensslLib insta= nce with no EC services=0D # IA32/X64 assembly optimizations required larger alignments=0D #=0D CryptoPkg/Driver/CryptoSmm.inf {=0D @@ -574,7 +575,7 @@ [Components.IA32, Components.X64] MSFT:*_*_X64_DLINK_FLAGS =3D /ALIGN:256=0D }=0D #=0D - # CryptoSmm with IA32/X64 performance optimized OpensslLib instance with= all services=0D + # CryptoSmm with IA32/X64/AARCH64 performance optimized OpensslLib insta= nce with all services=0D # IA32/X64 assembly optimizations required larger alignments=0D #=0D CryptoPkg/Driver/CryptoSmm.inf {=0D diff --git a/CryptoPkg/Readme.md b/CryptoPkg/Readme.md index 5a68dfb6abd4..cb2228b6b898 100644 --- a/CryptoPkg/Readme.md +++ b/CryptoPkg/Readme.md @@ -246,13 +246,13 @@ specific set of enabled cryptographic services. If EC= C services are not required, then the size can be reduced by using OpensslLib.inf instead of= =0D `OpensslLibFull.inf`. Performance optimization requires a size increase.=0D =0D -| OpensslLib Instance | SSL | ECC | Perf Opt | CPU Arch | Size |=0D -|:------------------------|:---:|:---:|:--------:|:--------:|:-----:|=0D -| OpensslLibCrypto.inf | N | N | N | All | +0K |=0D -| OpensslLib.inf | Y | N | N | All | +0K |=0D -| OpensslLibAccel.inf | Y | N | Y | IA32/X64 | +20K |=0D -| OpensslLibFull.inf | Y | Y | N | All | +115K |=0D -| OpensslLibFullAccel.inf | Y | Y | Y | IA32/X64 | +135K |=0D +| OpensslLib Instance | SSL | ECC | Perf Opt | CPU Arch | Size= |=0D +|:------------------------|:---:|:---:|:--------:|:----------------:|:----= -:|=0D +| OpensslLibCrypto.inf | N | N | N | All | +0= K |=0D +| OpensslLib.inf | Y | N | N | All | +0= K |=0D +| OpensslLibAccel.inf | Y | N | Y | IA32/X64/AARCH64 | +20= K |=0D +| OpensslLibFull.inf | Y | Y | N | All | +115= K |=0D +| OpensslLibFullAccel.inf | Y | Y | Y | IA32/X64/AARCH64 | +135= K |=0D =0D ### SEC Phase Library Mappings=0D =0D --=20 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111539): https://edk2.groups.io/g/devel/message/111539 Mute This Topic: https://groups.io/mt/102725182/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-