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 56960AC0CF0 for ; Fri, 10 Nov 2023 10:48:43 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=z3GEsJadpdCFG2HcS5HVZweID3vamjD3Mq8/GpBWw1o=; 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=1699613322; v=1; b=Ycb5mMm1ukfxLoGdzRQM2Xyis2JhAHQBlnMArLb1ZwnjPgD0sVbMEyr8vLJwVLKCJEtYwxMz CETVeIu9cVvwsV/5w6KZKip1uapRxTQmLf/uKJuHIl5lkHogko8yJ4nc5RFOFAkgloE2aUUwH2P 8A8g7TzpGoinTW8hRoBTo9DI= X-Received: by 127.0.0.2 with SMTP id f9NAYY7687511xj7TTXlilqA; Fri, 10 Nov 2023 02:48:42 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.24948.1699613321417632780 for ; Fri, 10 Nov 2023 02:48:41 -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 B48511691; Fri, 10 Nov 2023 02:49:25 -0800 (PST) X-Received: from e126645.arm.com (unknown [10.57.82.190]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id F1D533F7C5; Fri, 10 Nov 2023 02:48:38 -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 v3 6/6] CryptoPkg: Enable Openssl Accel builds for AARCH64 Date: Fri, 10 Nov 2023 11:48:10 +0100 Message-Id: <20231110104810.2038376-7-pierre.gondois@arm.com> In-Reply-To: <20231110104810.2038376-1-pierre.gondois@arm.com> References: <20231110104810.2038376-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: XpJrx9tPb0dvUCspS7eyI7ZGx7686176AA= 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=Ycb5mMm1; 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 Enable the following modules builds for AARCH64: - OpensslLibAccel.inf - OpensslLibFullAccel.inf 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 (#111034): https://edk2.groups.io/g/devel/message/111034 Mute This Topic: https://groups.io/mt/102504425/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-