public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "PierreGondois" <pierre.gondois@arm.com>
To: Leif Lindholm <quic_llindhol@quicinc.com>
Cc: devel@edk2.groups.io, Jiewen Yao <jiewen.yao@intel.com>,
	Yi Li <yi1.li@intel.com>, Xiaoyu Lu <xiaoyu1.lu@intel.com>,
	Guomin Jiang <guomin.jiang@intel.com>,
	Ard Biesheuvel <ardb+tianocore@kernel.org>,
	Sami Mujawar <sami.mujawar@arm.com>,
	Gerd Hoffmann <kraxel@redhat.com>,
	Michael D Kinney <michael.d.kinney@intel.com>,
	Liming Gao <gaoliming@byosoft.com.cn>
Subject: Re: [edk2-devel] [PATCH v2 1/7] MdePkg/BaseLib: AARCH64: Add ArmReadCntPctReg()
Date: Fri, 10 Nov 2023 10:04:05 +0100	[thread overview]
Message-ID: <3a3c03c5-1c81-447f-b4c2-f58b1d5cc7fe@arm.com> (raw)
In-Reply-To: <ZUzoqe/eMlUnsH++@qc-i7.hemma.eciton.net>



On 11/9/23 15:11, Leif Lindholm wrote:
> On Thu, Nov 09, 2023 at 10:23:01 +0100, Pierre Gondois wrote:
>> To enable AARCH64 native instruction support for Openssl,
>> some interfaces must be implemented. OPENSSL_rdtsc() requests
>> an access to a counter to get some non-trusted entropy.
>>
>> Add ArmReadCntPctReg() to read system count.
>> A similar ArmReadCntPct() function is available in the ArmPkg,
>> but the CryptoPkg where OPENSSL_rdtsc will reside cannot rely
>> on the ArmPkg.
> 
> This is patently untrue, as can be discovered by grepping for ArmPkg
> under CryptoPkg already.

Yes right, I will update the serie in that sens,
Regards,
Pierre

> 
> Yes, we have a problematic history around how architectures that
> weren't already in tree when edk2 was first published got
> introduced at a later date. But this bit of contortionism helps no one.
> Please move this to ArmPkg, which is effectively an exclave of MdePkg
> anyway.
> 
> (Yes, there is an argument for moving ArmLib into MdePkg, but that
> quickly escalates through dependencies to moving all of ArmPkg into
> MdePkg, and that's a fairly big task.)
> 
> /
>      Leif
> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#111023): https://edk2.groups.io/g/devel/message/111023
Mute This Topic: https://groups.io/mt/102482399/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



  reply	other threads:[~2023-11-10  9:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-09  9:23 [edk2-devel] [PATCH v2 0/7] CryptoPkg: Enable Openssl native instruction support for AARCH64 PierreGondois
2023-11-09  9:23 ` [edk2-devel] [PATCH v2 1/7] MdePkg/BaseLib: AARCH64: Add ArmReadCntPctReg() PierreGondois
2023-11-09 14:11   ` Leif Lindholm
2023-11-10  9:04     ` PierreGondois [this message]
2023-11-09  9:23 ` [edk2-devel] [PATCH v2 2/7] MdePkg/BaseLib: AARCH64: Add ArmReadIdAA64Isar0Reg() PierreGondois
2023-11-09 14:14   ` Leif Lindholm
2023-11-09  9:23 ` [edk2-devel] [PATCH v2 3/7] MdePkg/BaseRngLib: Prefer ArmReadIdAA64Isar0Reg() over ArmReadIdIsar0() PierreGondois
2023-11-09  9:23 ` [edk2-devel] [PATCH v2 4/7] CryptoPkg/OpensslLib: Add native instruction support for AARCH64 PierreGondois
2023-11-09  9:23 ` [edk2-devel] [PATCH v2 5/7] CryptoPkg/OpensslLib: Generate files for AARCH64 native support PierreGondois
2023-11-09  9:23 ` [edk2-devel] [PATCH v2 6/7] CryptoPkg/OpensslLib: Add AArch64Cap for arch specific hooks PierreGondois
2023-11-09  9:23 ` [edk2-devel] [PATCH v2 7/7] CryptoPkg: Enable Openssl Accel builds for AARCH64 PierreGondois

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3a3c03c5-1c81-447f-b4c2-f58b1d5cc7fe@arm.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox