From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR03-VE1-obe.outbound.protection.outlook.com (EUR03-VE1-obe.outbound.protection.outlook.com [40.107.5.41]) by mx.groups.io with SMTP id smtpd.web12.2182.1607489312631611138 for ; Tue, 08 Dec 2020 20:48:33 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=nHVUZieT; spf=pass (domain: arm.com, ip: 40.107.5.41, mailfrom: samer.el-haj-mahmoud@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OoReeofYDrlcBz2CJpzHcr15AiB6YKmnzARhH/PVo1g=; b=nHVUZieTTE1+VQOz0lsPNaxyOxZTQgrug5BBNBdjeMHgFfrLig/sD7FsxO7cqDLL1pB0mUOfMZbu/yTWBMEHQcBXXx5IgwK7oHdf37C/9GRnhHs7YeWkL7k4vpoBQjaEYDQAcrbMi6P+sLS5ymNU40H6+1KlG64E6Wol9QcTum8= Received: from DB6P193CA0007.EURP193.PROD.OUTLOOK.COM (2603:10a6:6:29::17) by VI1PR08MB3806.eurprd08.prod.outlook.com (2603:10a6:803:b7::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.18; Wed, 9 Dec 2020 04:48:29 +0000 Received: from DB5EUR03FT027.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:29:cafe::a4) by DB6P193CA0007.outlook.office365.com (2603:10a6:6:29::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Wed, 9 Dec 2020 04:48:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT027.mail.protection.outlook.com (10.152.20.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Wed, 9 Dec 2020 04:48:29 +0000 Received: ("Tessian outbound 76bd5a04122f:v71"); Wed, 09 Dec 2020 04:48:29 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 7dfc301b9ca745b2 X-CR-MTA-TID: 64aa7808 Received: from 5ce01baf973e.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id A84910E5-9E8C-4926-9944-7474F7C4EDCA.1; Wed, 09 Dec 2020 04:47:51 +0000 Received: from EUR02-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 5ce01baf973e.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 09 Dec 2020 04:47:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i7HZ1OvuNPpLGOUDQDTiM8gE1JqAQRS/tzhJaAUGms+71HM7T/mVJqGA3FbOnyya8bITDZ+Pfthaju8Dh+GF5seaBMMHHA7+eekr26/8AZjog6WdcMTxoC0uYi3I+IZ0KvRqJ9uNXAzCabq59q8GGrnc2XoB2a13ubLkWWLfjC9vJplMxEwnRPlB/CkaM5NrK1BXz+0gTVQDAmKxP95EQXOSIk8Mn6XbsN4v1G4PW78IuHSuATAZTNHNidwzQBNlHnOukolKm6P1zAY9s67P6pTkFmGJ+t9sCgsG/LfXlUEBhtiMK+DR6r12l8uW+/RakOJj/8zFdjGlR5lDWsCVlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OoReeofYDrlcBz2CJpzHcr15AiB6YKmnzARhH/PVo1g=; b=OauPGKagZ+TO0/CsDG3yw5/CpmH2soFgOcOPJ3jbOYt7Ql8bDl4R1QIjD2iQ2/+769hnJxU4EsfMDmwTVarLZ8CKRxy13f5Xjpc9x0EkvzKtfhncASj8aPHBDWkM6BMU0oGeOEzPCLamt2M29iS1AYW6Wcyy2hEL/dHZdJ0sX6GCKznGWRcfBVDdr0cpxAmR9ggxQcftn2z7POhIX3jkRPq/kI3fz1afAEgqucLKjMTP2i1RtqIls/3Tl/w80zKHvwZ04XDdDpQMH1TksIhHko9WfSPelvCDC30Ke/FaefucOqWJlrxFukt6TRof452vidxpAWEL5qh31OEiXMJjLA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OoReeofYDrlcBz2CJpzHcr15AiB6YKmnzARhH/PVo1g=; b=nHVUZieTTE1+VQOz0lsPNaxyOxZTQgrug5BBNBdjeMHgFfrLig/sD7FsxO7cqDLL1pB0mUOfMZbu/yTWBMEHQcBXXx5IgwK7oHdf37C/9GRnhHs7YeWkL7k4vpoBQjaEYDQAcrbMi6P+sLS5ymNU40H6+1KlG64E6Wol9QcTum8= Received: from DB7PR08MB3260.eurprd08.prod.outlook.com (2603:10a6:5:21::23) by DBAPR08MB5558.eurprd08.prod.outlook.com (2603:10a6:10:1b3::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.18; Wed, 9 Dec 2020 04:47:50 +0000 Received: from DB7PR08MB3260.eurprd08.prod.outlook.com ([fe80::a1f1:ccfd:b17f:a490]) by DB7PR08MB3260.eurprd08.prod.outlook.com ([fe80::a1f1:ccfd:b17f:a490%5]) with mapi id 15.20.3654.012; Wed, 9 Dec 2020 04:47:50 +0000 From: "Samer El-Haj-Mahmoud" To: "devel@edk2.groups.io" CC: "rfc@edk2.groups.io" , Jiewen Yao , Rahul Kumar Subject: Re: [edk2-devel] RFC: Adding support for ARM (RNDR etc.) to RngDxe Thread-Topic: [edk2-devel] RFC: Adding support for ARM (RNDR etc.) to RngDxe Thread-Index: AQHWzeRy8m5OoXFn2kGrhQqtgdbSCanuMH4D Date: Wed, 9 Dec 2020 04:47:49 +0000 Message-ID: References: <70a4f9e7-952c-cf05-bca7-009ee5b2cd3f@nuviainc.com> In-Reply-To: <70a4f9e7-952c-cf05-bca7-009ee5b2cd3f@nuviainc.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Authentication-Results-Original: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=arm.com; x-originating-ip: [99.132.126.10] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: f6b145fe-31c3-47c5-8966-08d89bfdac3d x-ms-traffictypediagnostic: DBAPR08MB5558:|VI1PR08MB3806: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:8882;OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: TlVSmnq/wjxYwxo6ZbR8VKaWTUEu7OsM8MnA6mHT9tJxopgpcpmoZeXM0LQLQ6p2bcFs5kLc3eS7ASkhOEy2U3W+5wTYIxZA1tWqtTG4pZRV1SFt+IbUUtMH7HRr2ihRye2AXTZPJrLXSLlX5RTguqCG7rXPQ3GDGHUh0cORhyOc47gYCkyvYARAn+OSCRBnCSqxRFbYbCD/GnMUtXMn8M6k2C0pLFNnYai4qyWvsgXL9upuK/9E5Fk0Lmxms2R7fSyKMMhFdDkRbD9asigTsZQHCCwyZSFUMef344CnVM5KAGH/Se573G5j+oyyQyAYXcNLNuqsM86JC9ee7NfzWfxa89Rlp++44R6fFDo6iTKUmpfDj1Q0I8UEYj7vkaF7tRHuM/3Bl7yrtDdld0oVbA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR08MB3260.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(366004)(136003)(376002)(166002)(64756008)(8676002)(83380400001)(33656002)(54906003)(55016002)(186003)(5660300002)(91956017)(53546011)(52536014)(66446008)(7696005)(71200400001)(9686003)(508600001)(26005)(66556008)(6916009)(966005)(86362001)(76116006)(4326008)(6506007)(66476007)(8936002)(66946007)(2906002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?S+0nHYRDbrCHZRbVxEw8XkJPDtNtrSLKT6pX/nSHtE8sjtwBbdPsjEdp2ciH?= =?us-ascii?Q?JpK/KpYzJJWb9Kbga6miRzH1vwEpvRkxS4Ax07wztN2PCXiyTM4anKO/Yhru?= =?us-ascii?Q?q+vrmkkwXaYFfoLEJAlmg9UGuFxORdb6+dyKfhFTc2poyQLeoWhCKZzs/UiN?= =?us-ascii?Q?dv4YQpLv93VH7L52H3o7ugtycpqRncUS0We7+W0+CikmZRjXU1XqMfuT+R0H?= =?us-ascii?Q?k8Yaul3Qc52Mm5En9BLCNuBwIPo1olA0U92uVwF2sbuwNs/WTc47maIzCM8z?= =?us-ascii?Q?GyhOICZjDxXrRoCqC/VOXbqAU6FZQc9JwMTQszj2VN1foOCqghppeqzuKO1H?= =?us-ascii?Q?Dhy4mgj8yuDkYKZBRCd+lSTodsPU/Ngq1Ieh+3//ofka5lwH5+mkyYBbd0/F?= =?us-ascii?Q?2AD9l5oOlx6Q3zHOx2vdLAtqFcTSFFbBCaUz6ph8e3XBH02rRDz60Z2VFOGA?= =?us-ascii?Q?0GkQ+B21yZPMuxOaoU5lfW7aXFKiYEFCqq0BWwspiVUFaVypxs/wA8xJMDUy?= =?us-ascii?Q?RFH7V+a0/w1TqIoynjqGhwTEwryhGhYgWwfwVnqOK2ZDv1nyjzwy9BV0Jwl5?= =?us-ascii?Q?M6/3KyEbGgikXFMKAtBEs6Ch7pZt1R2YLyo57vpS6tRGxVDlOv6a9d6ybFLO?= =?us-ascii?Q?3abFvWN9aYP3A72/rIRQIttWnSSl2BIacuWGU90x+t98yiLIITMFG6FMyld1?= =?us-ascii?Q?qd5x0hpN60uhzXtZfR9ynwRnpGIRjJV4XTM9FHvKQSfs9NANalP51VRvF3HD?= =?us-ascii?Q?jPQ5+pfLCToyXpvzRV/1maEATMItluSXb/VgVh3ttZgKwWmN7bTDENjS/3NW?= =?us-ascii?Q?UA4gnXvJRD3Qoi6mkwzO9mOd+6H/41AMrGheGYfy6x06GShcE51ijKQQIT8A?= =?us-ascii?Q?YTsCf3gSj4Boh1T/WbPHfcsHje+D/p7hufwDgvqSGlmP+a8jm71hB8EVtROR?= =?us-ascii?Q?SnToNsEhmB3xWJMI67gUrYKoPRHungfh5l/WtH0DcFQGUMWiQZy/Ppo+Qb8y?= =?us-ascii?Q?4zOjAlc49l7fJh4stZfYDy5C7w=3D=3D?= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR08MB5558 Original-Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=arm.com; Return-Path: Samer.El-Haj-Mahmoud@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT027.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 07264529-642c-46f7-1e42-08d89bfd94fa X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iVv0g2jNSiZyJpjila5EHauLDBXUvTj83MzUyaQVyRVephPgHkpfn6dkM9sJJZADWfNtuwQ1zC5+5OzUHXJl63zf2mlP7HP9eq9pH74yQRv2CcOTyNpYbspEIzUaKrpi1/88FOnfVz6HCsW0CYyYXi4h9UDMsRPVYpGZlrYXoosTUbXctJTe4MKe/SNxyVoEvU/PFNUDDwCxgAhmX8OWOIfgsb+tLaIStc4Ik9YPAoJk9lxCDq9ckd9l9JdX62c3kfjCJBSreHYGai0gp01YT22WuKE/dyTSXz/GtYtcx9s62uBHdem7W1MdEDJTwyv4cnXUhJnCl+UfqUaJ4EJVfl8ERApWqHN38k7TrlfmBbI3eSgZ+kMan02SyB498XhTMDP5aD+rA9hNEe3seKmL8iLhEq3/NAdQk0RaNdUCs0URPrO1jMkOher5WsKtOb7dm0BGHT8L+8nuMWZ0WiQYv2caxI/uZEOiF7pwVOm1Tc0= X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(4636009)(346002)(376002)(136003)(46966005)(55016002)(81166007)(8936002)(7696005)(186003)(6506007)(356005)(53546011)(6916009)(33656002)(47076004)(336012)(966005)(83380400001)(70586007)(2906002)(8676002)(86362001)(508600001)(166002)(5660300002)(70206006)(82310400003)(52536014)(54906003)(4326008)(9686003)(450100002)(107886003)(26005);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2020 04:48:29.1490 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f6b145fe-31c3-47c5-8966-08d89bfdac3d X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT027.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3806 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_DB7PR08MB3260A8786D9E46AC468846CA90CC0DB7PR08MB3260eurp_" --_000_DB7PR08MB3260A8786D9E46AC468846CA90CC0DB7PR08MB3260eurp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable There is also the TRNG FW API, which is an architected SMC firmware interfa= ce: https://developer.arm.com/documentation/den0098/latest/ ________________________________ From: devel@edk2.groups.io on behalf of Rebecca Cra= n via groups.io Sent: Tuesday, December 8, 2020, 11:33 PM To: devel@edk2.groups.io Cc: rfc@edk2.groups.io; Jiewen Yao; Rahul Kumar Subject: [edk2-devel] RFC: Adding support for ARM (RNDR etc.) to RngDxe Currently, RngDxe in SecurityPkg only supports Intel, with RdRand support. This RFC is to start a discussion about adding support for ARM. I have a Git branch with support for the optional ARMv8.5 RNDR instruction at https://github.com/bcran/edk2/commits/bcran-rndr which moves the existing Intel support into a Rand directory, and adds code to support RNDR in a new AArch64 directory. There are other RNG implementations available for ARM, including platform-specific approaches on Graviton (https://lwn.net/Articles/790304/) and other platforms, so a more thorough rearchitecting/redesign may be desired. -- Rebecca Cran IMPORTANT NOTICE: The contents of this email and any attachments are confi= dential and may also be privileged. If you are not the intended recipient, = please notify the sender immediately and do not disclose the contents to an= y other person, use it for any purpose, or store or copy the information in= any medium. Thank you. --_000_DB7PR08MB3260A8786D9E46AC468846CA90CC0DB7PR08MB3260eurp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
There is also the TRNG FW API, which is an architected SMC firmware interf= ace:



From: devel@edk2.groups.io <= devel@edk2.groups.io> on behalf of Rebecca Cran via groups.io <rebecc= a=3Dnuviainc.com@groups.io>
Sent: Tuesday, December 8, 2020, 11:33 PM
To: devel@edk2.groups.io
Cc: rfc@edk2.groups.io; Jiewen Yao; Rahul Kumar
Subject: [edk2-devel] RFC: Adding support for ARM (RNDR e= tc.) to RngDxe

Currently, RngDxe in SecurityPkg only supports In= tel, with RdRand support.


This RFC is to start a discussion about adding support for ARM.


I have a Git branch with support for the optional ARMv8.5 RNDR
instruction at https://github.com/bcran/edk2/commits/bcran-rndr which
moves the existing Intel support into a Rand directory, and adds code to <= br> support RNDR in a new AArch64 directory.

There are other RNG implementations available for ARM, including
platform-specific approaches on Graviton
(https://lwn.net/Articles/790= 304/) and other platforms, so a more
thorough rearchitecting/redesign may be desired.


--
Rebecca Cran








IMPORTANT NOTICE: The contents of this email and any attachments are confi= dential and may also be privileged. If you are not the intended recipient, = please notify the sender immediately and do not disclose the contents to an= y other person, use it for any purpose, or store or copy the information in any medium. Thank you. --_000_DB7PR08MB3260A8786D9E46AC468846CA90CC0DB7PR08MB3260eurp_--