From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 504067803CF for ; Thu, 27 Jun 2024 14:22:23 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=1ex+IJ3KATp+Tzps8rmPi8IVUCWkY1YOsGvCHH7miOY=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1719498143; v=1; b=OvfUMTjFEbkO9Dq1rCOh+y0u7iVz1a/VDAsxexn3iPLcytjjZun1+9K43B86tg2gizHYgI0c gsaE4AEzYZPuT5eHxr4C0u1UViEp9XGW8kkgRggI8RPI/XcvOGwtnLqjH7GKQo2zy/Xqvs8p2VI i5V/qoSoE3FN+ZYOFJSB0eknaLlpFh7gBpPkG/vOwrBUMbu8d8s1bxU4+AU4v6TrSoFnpgvZ43k zgF1m18kt/M3oqaBYOgc/GnWIiU664VC2LyqMFemFevb9aGM2iZd5wSYWrbwZoHS4e8J7W5PdWH +PAVgMuNTQeYHelvJaHVD1sT0nLRVLyFSCK8xVwkJs56A== X-Received: by 127.0.0.2 with SMTP id dfQeYY7687511xytWFJiuiRj; Thu, 27 Jun 2024 07:22:21 -0700 X-Received: from muminek.juszkiewicz.com.pl (muminek.juszkiewicz.com.pl [213.251.184.221]) by mx.groups.io with SMTP id smtpd.web10.9157.1719498140751670736 for ; Thu, 27 Jun 2024 07:22:21 -0700 X-Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id 3BB172609D7; Thu, 27 Jun 2024 16:22:18 +0200 (CEST) X-Virus-Scanned: Debian amavis at juszkiewicz.com.pl X-Received: from muminek.juszkiewicz.com.pl ([127.0.0.1]) by localhost (muminek.juszkiewicz.com.pl [127.0.0.1]) (amavis, port 10024) with ESMTP id LsFTRL5F6Edb; Thu, 27 Jun 2024 16:22:16 +0200 (CEST) X-Received: from applejack.lan (83.8.74.165.ipv4.supernova.orange.pl [83.8.74.165]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id 04642260052; Thu, 27 Jun 2024 16:22:15 +0200 (CEST) From: "Marcin Juszkiewicz" To: devel@edk2.groups.io Cc: Leif Lindholm , Ard Biesheuvel , Marcin Juszkiewicz Subject: [edk2-devel] [PATCH edk2-platforms 0/1] RFC: SbsaQemu use FEAT_RNG for EFI_RNG_PROTOCOL Date: Thu, 27 Jun 2024 16:22:11 +0200 Message-ID: <20240627142212.408917-1-marcin.juszkiewicz@linaro.org> 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 Resent-Date: Thu, 27 Jun 2024 07:22:21 -0700 Resent-From: marcin.juszkiewicz@linaro.org Reply-To: devel@edk2.groups.io,marcin.juszkiewicz@linaro.org List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: KP5NjUq50OPc3FukIA6pBDHsx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=OvfUMTjF; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=linaro.org (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io SBSA Reference Platform in QEMU uses Neoverse-N2 cpu by default now. This core supports FEAT_RNG feature so I thought that it should be possible to use it for EFI_RNG_PROTOCOL. Checked history and found that commit 5de5e230a80bed083360da95ba16a2c4a001620d (in EDK2) enabled that for ArmVirt platform. When I boot with Neoverse-N2 or 'max' cpu then EFI_RNG_PROTOCOL gets reported by 'efi-stub' on Linux boot. Other cpu models do not have FEAT_RNG so RngDxe driver is not running and we have situation similar to previous one - no EFI_RNG_PROTOCOL reported. I left ArmTrngLib enabled because RngDxe does not start without it. Probably there is a better way to handle it. Now the question is: do we want to go this way? And what to do with older cores? BaseRngLibTimerLib is not(?) used now so are they left with nothing? I would prefer to not add 'virtio-rng-pci' device in QEMU to have some TRNG emulated. Signed-off-by: Marcin Juszkiewicz Marcin Juszkiewicz (1): SbsaQemu: use FEAT_RNG for EFI_RNG_PROTOCOL Platform/Qemu/SbsaQemu/SbsaQemu.dsc | 6 +++++- Platform/Qemu/SbsaQemu/SbsaQemu.fdf | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) --=20 2.45.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119723): https://edk2.groups.io/g/devel/message/119723 Mute This Topic: https://groups.io/mt/106909458/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-