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 2A897D80F93 for ; Thu, 2 Nov 2023 13:54:48 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=ve3k2sJeI+QTbbEvkP3taxV25FKRkIMjnIyxeMFR/+o=; 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=1698933286; v=1; b=wIo/G2CRCpvgZle8I819kQ4hvp5QgLyOg7Z1kmV6RpsZg1hHUKFxWmHIU5PsEL5cnXR+2zXZ msgcDhcJW7qyODAUxdPZ0IjzjhNpzZaSMwAuZfWQ8XVBfATW1wYtRr8lcvYBYi0g73vGR6/ddRT 8v48/k3erA+1QUqiC6eXNF8Y= X-Received: by 127.0.0.2 with SMTP id 32MyYY7687511xFExeSPjUuY; Thu, 02 Nov 2023 06:54:46 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.31762.1698933285735073070 for ; Thu, 02 Nov 2023 06:54:45 -0700 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 AA0A02F4; Thu, 2 Nov 2023 06:55:27 -0700 (PDT) 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 180CE3F738; Thu, 2 Nov 2023 06:54:43 -0700 (PDT) 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 v1 7/7] CryptoPkg: Enable Openssl Accel builds for AARCH64 Date: Thu, 2 Nov 2023 14:54:17 +0100 Message-Id: <20231102135417.336334-8-pierre.gondois@arm.com> In-Reply-To: <20231102135417.336334-1-pierre.gondois@arm.com> References: <20231102135417.336334-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: I3Cw9HDsPkeh8ZQFqtBJ10dUx7686176AA= 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="wIo/G2CR"; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=none) 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 (#110554): https://edk2.groups.io/g/devel/message/110554 Mute This Topic: https://groups.io/mt/102342404/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-