From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web09.8282.1621601218114179299 for ; Fri, 21 May 2021 05:46:58 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=K5EPd8tj; spf=pass (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=07758c9eba=daniel.schaefer@hpe.com) Received: from pps.filterd (m0134423.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 14LChpZV012758; Fri, 21 May 2021 12:46:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=pps0720; bh=oAKlBHSq29/79a2m3Naqi7NgwJLCmdak4lwwsRBaswY=; b=K5EPd8tjjVbaCxf/QLpkJhb+/jbrTwM77V3h5dMFP3+rHeZvXhxBJWHQIN5waCVMRmzr ksR9C3CMiRlL4S+hfp2d8hG6adA2NQJuqTkCL0IB11muLwZtu3KxmNw03zQ2t6Evni2S 53i4KU3kIjJFP08n7g4ykmV6sV7IrftCEO0d3Z9XwaW+FVxTdKS1p79oB4qGgeV+wCIV msUOOS6HhhcReZYpQBysDEUROYZzLGz4f3jmqS5zFDReRWKNZwLVVLSYJR2NX34zsvB7 pZcd/Ap+OnaNoaJIYwOIHB1lhCDsVOx7cPlbgvvPkyrK7QXb1TkzhU7m/Lun0yQNetE6 fg== Received: from g2t2353.austin.hpe.com (g2t2353.austin.hpe.com [15.233.44.26]) by mx0b-002e3701.pphosted.com with ESMTP id 38nne8m1kp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 May 2021 12:46:43 +0000 Received: from G4W9120.americas.hpqcorp.net (exchangepmrr1.us.hpecorp.net [16.210.21.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g2t2353.austin.hpe.com (Postfix) with ESMTPS id C56BA9B; Fri, 21 May 2021 12:46:42 +0000 (UTC) Received: from G4W9121.americas.hpqcorp.net (2002:10d2:1510::10d2:1510) by G4W9120.americas.hpqcorp.net (2002:10d2:150f::10d2:150f) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 21 May 2021 12:45:53 +0000 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (15.241.52.13) by G4W9121.americas.hpqcorp.net (16.210.21.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Fri, 21 May 2021 12:45:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xhu5llUL2F+zMpnVxPMnBlQYvlIJS+WzFkmrKj7iG86bs/KN4+BOW8VX1OCFnQ2qP9Hos/OB4LCwCb0V2/ozwRDTYUfq5ondg0+v4y8ttFSy61oLg8SkWVTTmIsrSNjAJ/H6XyK/0f2dUdBrQlNhiVefdZHxMppQ2rSSAlyth05/oILRjo3et5Mr6GLahkjcWun8o0lr39AyxVm6KWhFNDU2S702HyVYwQk1wXcXn6pq6SfQZID708G06U+PxAsUIxpazB5WKhuYENVzTc31wSpqAR/IxlHJqGFsh1xi8TwFNZ5GSS/uGJUoR9MFbXcPTBMidxtOIoxe7WU84cIAxg== 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=mEfWaNmSHYGBcvU/ATzy08c3mG0fg+RxKn+uTH3AMsw=; b=hHJATogJdEI17V+z9K0lHBkAPNdzpcdWjcd9Bl0myiONXpBgvE/D1EHmTi8GyKZNO7Aa4Cx7moE5RF4ojGYqlVZyrjG5XVlyS2zln34jgIp6x+RI1QBMRDqcMCRNdv6nKfDuvVkL0uN23oY/TI8ARkzN1j8CgtxOASXaU7HxCnLaMNVfafnfzXZwTaCVZ2ZfrzAncjBR8r44QPF3ntfKOojpBcZhSSSPDr+TNdcMAfFDXN9UnjZA1OEwUfqX/fpgugdyaXXCzGpAmfxwE1nKHjRxYOP+9BnekXy0H7FeBEPsspSHc0WZzt38RnxFxARjkaOVj5exxWcLdYaweQPXTQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Received: from DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760d::23) by DF4PR8401MB0460.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7607::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Fri, 21 May 2021 12:45:51 +0000 Received: from DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM ([fe80::1055:761b:7ee6:52ca]) by DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM ([fe80::1055:761b:7ee6:52ca%11]) with mapi id 15.20.4129.033; Fri, 21 May 2021 12:45:51 +0000 From: "Daniel Schaefer" To: "devel@edk2.groups.io" , "gaoliming@byosoft.com.cn" CC: "Chang, Abner (HPS SW/FW Technologist)" , "'Michael D Kinney'" , 'Zhiguang Liu' , 'Leif Lindholm' Subject: =?UTF-8?B?UmU6IOWbnuWkjTogW2VkazItZGV2ZWxdIFtQQVRDSCB2MSAxLzFdIEFkZCBNZW1vcnlGZW5jZSBpbXBsZW1lbnRhdGlvbiBmb3IgUmlzY1Y2NA==?= Thread-Topic: =?gb2312?B?u9i4tDogW2VkazItZGV2ZWxdIFtQQVRDSCB2MSAxLzFdIEFkZCBNZW1vcnlG?= =?gb2312?Q?ence_implementation_for_RiscV64?= Thread-Index: AQHXSbXpzrM7QzpXB0KAHEzMYYHdfarocBGAgAAZZwCABON/gIAAAvEdgAATwgCAAGMAmQ== Date: Fri, 21 May 2021 12:45:51 +0000 Message-ID: References: <20210515181234.15186-1-daniel.schaefer@hpe.com> <009501d74b81$bf063b40$3d12b1c0$@byosoft.com.cn> ,<003d01d74e00$321459c0$963d0d40$@byosoft.com.cn> ,<006501d74e0b$8c555b90$a50012b0$@byosoft.com.cn> In-Reply-To: <006501d74e0b$8c555b90$a50012b0$@byosoft.com.cn> Accept-Language: en-US, de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=hpe.com; x-originating-ip: [123.193.59.220] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8d3211a0-2b25-4b2e-2b1c-08d91c565dd1 x-ms-traffictypediagnostic: DF4PR8401MB0460: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:619; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: TaZukM4TKEuOAfluUU0gyTeKz3fObNuY2bfKbAzTjGERb68M8xgB9kiHCGFntGDmG8eU0PTwFN1VpzTkdcgsxKlNamHgPHcMDUidALGoOWWngU5GZYE+q5tr4fp/Z5GajrskPC87w2o6eoBXgglLrsY1eIv8ftciRDlgbKDONqoEOwVJ+kZHkNiVm/YDzmH6FX+BcvAeKVBguTJ6r2jzHTfrizEZ7eOy7HjVBfuEsue6gX+9pjwCRMQ5oqO61662iRe0f6DUmwTOsOFvbB3bXx2+QC1FW6cuUAaCm0bOnqHluWIf47wjLkEP5HCZQLV/2dF55h//TwzTXjApZH0vYZzRcPTeflOeXgiF8Jrd4HYrqMMhMyTO94Xts5jdxXy7/j1W7XTvKKcp+ZP2iz6YzqZa5Q7HB9Yuck4jO3dI/Y945c9HOd18RJLIYry+rEpA/LLBf7OWmZUV3SQ+9sqBY2pIDdOEwsg6ZlPEDQB3q2vLk6iciAJX0Mx9LefWMhnDTih59AOAV1DabSzdmr6hEGm0LdyPccwHMO1Txto1I4nGUE0q+DHolbSzOq8S2IGLQLmci0Dfnt2wkckAlE2/Vsa5outSQOLTFo+B3sSXA7Q3N5VzXR7r0qTtkOtfg38iuuDBM/w+8lA4X0Mwv7pScMpmVViyEhyxyq6tVdZkGOKLiTFoRz2k5CyGk8r7ABWI8feUs6RZ6Tf8MMNPff7aCQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(376002)(136003)(366004)(396003)(39860400002)(346002)(966005)(478600001)(38100700002)(2906002)(316002)(54906003)(86362001)(52536014)(8936002)(224303003)(166002)(83380400001)(110136005)(76236003)(71200400001)(33656002)(19627405001)(66946007)(66476007)(66556008)(64756008)(66446008)(91956017)(76116006)(6506007)(55016002)(19627235002)(53546011)(122000001)(9686003)(26005)(4326008)(7696005)(5660300002)(186003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?gb2312?B?emhPZEdGL1l4R0VkTHloY01WdlkyeTFKSzhXV3pNOXZVWmtocHJxcWlRNWhV?= =?gb2312?B?bWlXS1hSVVZKemg3S0puT0Z2RkV2Yy9oL2FTa2prVWRqME5VREdsWlNFT1Y5?= =?gb2312?B?YkdScHdYSk1vSVR6VVk5c0krY1ZSamFaNjlHblVQcEptbDg4VmRXaFg2bUE1?= =?gb2312?B?RThRZEVVQkdUN1FTM2UyTWxCR1JiS09rNlg0SnkxV0JiZEF3bUthcmRpRUR0?= =?gb2312?B?aEF2Q3dUZG9BeUo2cEhQZHhKWDI0dFF4bndHYjlUbzAvYU5qK0hoeXlhS2Ey?= =?gb2312?B?NWN0TS9NNi9JbDRlREE5U3d6WnFhdHJRM1pEOEZVWDFEeFRNTG5LbHBDQzdm?= =?gb2312?B?dlJzdEdkaGt6c25NTkpFa2NvQWh1WTYxcnovT3FoclpxZjkxMTVHQXp4eFp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k5MHJw?= =?gb2312?B?RTVkTjBONXNpTlVzRnNQNm83WWdCSEcwd3kvT01yVzk0bEhNQnRtNlQ2a3Yv?= =?gb2312?B?WkQ0UXZXOWYybEV3NndCVlJsNCtrSk04akRIeU5aSEMvbU1KWUt6NjJDOE1N?= =?gb2312?B?SVZyNzErTVkyRmFkNHNDVVJKYlQveTQzQ01VS0N3ekRnU0REcDg0ODhNNXRs?= =?gb2312?B?d1dxSlYzT1NNajhvMXFoS0I4d0p2d0VIeFpCSHBZMjIyUnhOdVlIa3BnNS9r?= =?gb2312?B?dDlVa3dDaXFBUTlsai9IWWc0cGljZEJZL1BweDRRQWJQY0xtZ2orajNQYUxr?= =?gb2312?B?dW1OYW9nUjh0aWQ4Y2Q0eEtFcVAzbDhwb1h1cG1NMEJ1VC9rR083R1p2bVFO?= =?gb2312?B?YUR3VDVyZjVqcjRWNjVxSzRiQjJqVVQyQ3VQNzAraXAyb1pWdHdQZE9tTTVa?= =?gb2312?Q?i8NNbn1qV9SQg6xXMSfzqyvX6Xw3D7SgwEyf8Lj?= X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 8d3211a0-2b25-4b2e-2b1c-08d91c565dd1 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 May 2021 12:45:51.5240 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: oAL241R5xPwgGsZh4v4tnNCcMLoz61f4K/zN34HioH9dVEPkBoqR9fD07o35VqHlq4EoROI5A33zihxTYEy/ug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR8401MB0460 X-OriginatorOrg: hpe.com X-Proofpoint-GUID: Hsup3xgCURtPt6g-HXpd3uEzNkp4GRGw X-Proofpoint-ORIG-GUID: Hsup3xgCURtPt6g-HXpd3uEzNkp4GRGw X-Proofpoint-UnRewURL: 10 URL's were un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-05-21_04:2021-05-20,2021-05-21 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 suspectscore=0 clxscore=1015 lowpriorityscore=0 mlxlogscore=999 spamscore=0 priorityscore=1501 phishscore=0 bulkscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2105210076 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_DF4PR8401MB0444875AF42BE4CC30F1FC14E0299DF4PR8401MB0444_" --_000_DF4PR8401MB0444875AF42BE4CC30F1FC14E0299DF4PR8401MB0444_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 SXQncyBub3QgcmVxdWlyZWQgdG8gZ28gaW50byB0aGF0IHRhZy4NCldlIG5lZWQgdHdvIG1vcmUg cGF0Y2hlcyB0aGF0IHdlIGhhdmVuJ3Qgc3VibWl0dGVkIHlldCB0byBib290IG9uIFFlbXUuDQoN CldvdWxkIGl0IGJlIG9rYXkgaWYgd2UgdXNlZCBhIGxpYnJhcnkgZnJvbSBBcm1WaXJ0UGtnIGZv ciBSSVNDVjY0Pw0KU2VlOiBodHRwczovL2dpdGh1Yi5jb20vcmlzY3YvcmlzY3YtZWRrMi9jb21t aXQvOGM3OTYwZWY4NjBjNjVmMjY0NjkxMmMzZGNjYmIzMDhhOThlMGNjMw0KT3IgZG9lcyBpdCBo YXZlIHRvIGJlIG1vdmVkIHRvIHNvbWUgb3RoZXIgcGxhY2UgZmlyc3Q/DQpfX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fXw0KRnJvbTogZGV2ZWxAZWRrMi5ncm91cH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KPiA+PiArI0VGSUFQSQ0KPiA+Pg0KPiA+Pg0KPiA+PiAr I01lbW9yeUZlbmNlICgNCj4gPj4NCj4gPj4NCj4gPj4gKyMgIFZPSUQNCj4gPj4NCj4gPj4NCj4g Pj4gKyMgICk7DQo+ID4+DQo+ID4+DQo+ID4+ICsjDQo+ID4+DQo+ID4+DQo+ID4+ICtBU01fUEZY KE1lbW9yeUZlbmNlKToNCj4gPj4NCj4gPj4NCj4gPj4gKyAgICAvLyBGZW5jZSBvbiBhbGwgbWVt b3J5IGFuZCBJL08NCj4gPj4NCj4gPj4NCj4gPj4gKyAgICBmZW5jZQ0KPiA+Pg0KPiA+Pg0KPiA+ PiArICAgIHJldA0KPiA+Pg0KPiA+Pg0KPiA+PiAtLQ0KPiA+PiAyLjMwLjENCj4gPj4NCj4gPj4N Cj4gPj4NCj4gPj4NCj4gPj4NCj4gPg0KPiA+DQo+ID4NCj4gPg0KPiA+DQo+ID4NCj4gPg0KPiA+ DQo+DQo+DQo+DQo+DQoNCg0KDQoNCg0KDQoNCg0KDQo= --_000_DF4PR8401MB0444875AF42BE4CC30F1FC14E0299DF4PR8401MB0444_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable
It's not required to go into that tag.
We need two more patches that we haven't submitted yet to boot on Qemu.

Would it be okay if we used a library from ArmVirtPkg for RISCV64?
Or does it have to be moved to some other place first?

From: devel@edk2.groups.io= <devel@edk2.groups.io> on behalf of gaoliming <gaoliming@byosoft.= com.cn>
Sent: Friday, May 21, 2021 14:35
To: devel@edk2.groups.io <devel@edk2.groups.io>; Schaefer, Da= niel <daniel.schaefer@hpe.com>
Cc: Chang, Abner (HPS SW/FW Technologist) <abner.chang@hpe.com&g= t;; 'Michael D Kinney' <michael.d.kinney@intel.com>; 'Zhiguang Liu' &= lt;zhiguang.liu@intel.com>; 'Leif Lindholm' <leif@nuviainc.com> Subject: =BB=D8=B8=B4: =BB=D8=B8=B4: [edk2-devel] [PATCH v1 1/1] Ad= d MemoryFence implementation for RiscV64
 

D= aniel:

 Thanks for your information. Acked-by: Limin= g Gao <gaoliming@byosoft.com.cn>

 

  And, do you request to merge this patc= h for edk2 stable tag 202105?

  

Thanks

Liming

=B7=A2=BC=FE=C8=CB: de= vel@edk2.groups.io <devel@edk2.groups.io> =B4= =FA=B1=ED Daniel Schaefer
=B7= =A2=CB=CD=CA=B1=BC=E4: 2021=C4=EA5=D4=C221=C8=D5 13:27
=CA=D5=BC=FE=C8=CB: devel@edk2.groups.io; gaoliming@byosoft.com.cn
=B3=AD=CB=CD: Chang, Abner (HPS SW/FW Technologist) <abner.chang@hpe.com>; 'Mich= ael D Kinney' <michael.d.kinney@intel.com>; 'Zhiguang Liu' <zhigua= ng.liu@intel.com>; 'Leif Lindholm' <leif@nuviainc.com>
=D6=F7=CC=E2: Re: =BB=D8=B8=B4: [edk2-devel] [PATCH v1 1/1= ] Add MemoryFence implementation for RiscV64

 

Great!

 

It is verified I can boot Linux from = a virtio ESP using this patch on QEMU virt machine.

 

Thanks,

Daniel


From:= devel@edk2.groups.io <devel@edk2.groups.io> on behalf o= f gaoliming <gaoliming@byoso= ft.com.cn>
Sent: Friday, May 21, 2021 13:14
To: devel@edk2.groups.io <devel@edk2.groups.io>;= Schaefer, Daniel <daniel.sch= aefer@hpe.com>
Cc: Chang, Abner (HPS SW/FW Technologist) <abner.chang@hpe.com>; 'Michael D Kinney' <michael.d.kinney@intel.com>= ; 'Zhiguang Liu' <zhiguang.liu= @intel.com>; 'Leif Lindholm' <leif@nuviainc.co= m>
Subject:
=BB= =D8=B8=B4: =BB=D8=B8=B4: [edk2-devel] [PATCH v1 1/1] Add MemoryFence i= mplementation for RiscV64

 

Daniel:
  Now, it is clear to me. So, I suggest to merge this change when it = is
verified on generic RISC-V QEMU virt machine. Is it OK?

Thanks
Liming
> -----
=D3=CA=BC=FE=D4=AD=BC=FE= -----
>
=B7=A2=BC=FE=C8=CB: devel@edk2.groups.io <devel@edk2.groups.io> =B4=FA=B1=ED Daniel
> Schaefer
>
=B7=A2=CB=CD=CA=B1=BC=E4: 2021=C4= =EA5=D4=C218=C8=D5= 10:35
>
=CA=D5=BC=FE=C8=CB: devel@edk2.groups.io; gaoliming@byosoft.com.cn > =B3=AD=CB=CD: 'Abner Chang' <abner.chang@hpe.com>; 'Michael D Ki= nney'
> <michael.d.kinney@in= tel.com>; 'Zhiguang Liu' <zhiguang.liu@intel.com>;
'Leif
> Lindholm' <leif@nuviainc.com<= /a>>
>
=D6=F7=CC=E2: Re: =BB=D8=B8=B4: [edk2-devel] [PATCH v1 1/1] Add MemoryFence
> implementation for RiscV64
>
> On 5/18/21 9:04 AM, gaoliming wrote:
> > Daniel:
> >  Seemly, this API is missing in BaseLib for RiscV64 arch. H= ow do you
detect
> > this issue?
>
> What do you mean it's missing?
> Yes MemoryFence() for RiscV64 is missing currently, that's why I'm ad= ding
it
> here.
>
> Maybe you mean that it's not currently used? That's also true.
> I'm enabling the generic QEMU virt machine (like OVMF or ArmVirtPkg) = for
> RISC-V.
> At least QemuFwCfgLib and VirtioLib need it.
> That's why I have the need to add this implementation now.
>
> Does that clear it up?
>
> > Thanks
> > Liming
> >> -----
=D3=CA=BC=FE=D4=AD=BC=FE---= --
> >>
=B7=A2=BC=FE=C8=CB:
devel@edk2.groups.io <devel@edk2.groups.io> =B4=FA=B1=ED Daniel
> >> Schaefer
> >>
=B7=A2=CB=CD=CA=B1=BC=E4: 2021=C4=EA5=D4=C216=C8=D5 2:13
> >>
=CA=D5=BC=FE=C8=CB: devel@edk2.groups.io
> >>
=B3=AD=CB=CD: Abner Chang <abner.chang@hpe.com>; Michael D= Kinney
> >> <michael.d.= kinney@intel.com>; Liming Gao <gaoliming@byosoft.com.cn>;
> >> Zhiguang Liu <z= higuang.liu@intel.com>; Leif Lindholm
<leif@nuviainc.com>
> >>
=D6=F7=CC=E2: [edk2-devel] [PATC= H v1 1/1] Add MemoryFence implementation for
> >> RiscV64
> >>
> >> Cc: Abner Chang <a= bner.chang@hpe.com>
> >> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> >> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> >> Cc: Zhiguang Liu <zhiguang.liu@intel.com>
> >> Cc: Leif Lindholm <l= eif@nuviainc.com>
> >> Signed-off-by: Daniel Schaefer <daniel.schaefer@hpe.com>
> >> ---
> >>  MdePkg/Library/BaseLib/BaseLib.inf   &n= bsp;       |  1 +
> >>  MdePkg/Library/BaseLib/RiscV64/MemoryFence.S | 33
> >> ++++++++++++++++++++
> >>  2 files changed, 34 insertions(+)
> >>
> >> diff --git a/MdePkg/Library/BaseLib/BaseLib.inf
> >> b/MdePkg/Library/BaseLib/BaseLib.inf
> >> index b76f3af380ea..b7ab5f632366 100644
> >> --- a/MdePkg/Library/BaseLib/BaseLib.inf
> >> +++ b/MdePkg/Library/BaseLib/BaseLib.inf
> >> @@ -399,6 +399,7 @@
> >>    RiscV64/DisableInterrupts.c
> >>
> >>
> >>    RiscV64/EnableInterrupts.c
> >>
> >>
> >>    RiscV64/CpuPause.c
> >>
> >>
> >> +  RiscV64/MemoryFence.S     &= nbsp;       | GCC
> >>
> >>
> >>    RiscV64/RiscVSetJumpLongJump.S  =   | GCC
> >>
> >>
> >>    RiscV64/RiscVCpuBreakpoint.S  &n= bsp;   | GCC
> >>
> >>
> >>    RiscV64/RiscVCpuPause.S   &= nbsp;       | GCC
> >>
> >>
> >> diff --git a/MdePkg/Library/BaseLib/RiscV64/MemoryFence.S > >> b/MdePkg/Library/BaseLib/RiscV64/MemoryFence.S
> >> new file mode 100644
> >> index 000000000000..283df9356a9a
> >> --- /dev/null
> >> +++ b/MdePkg/Library/BaseLib/RiscV64/MemoryFence.S
> >> @@ -0,0 +1,33 @@
> >>
> >
+##-----------------------------------------------------------------------= --
> > -----
> >>
> >>
> >> +#
> >>
> >>
> >> +# MemoryFence() for RiscV64
> >>
> >>
> >> +
> >>
> >>
> >> +# Copyright (c) 2021, Hewlett Packard Enterprise Developmen= t. All
rights
> >> reserved.
> >>
> >>
> >> +#
> >>
> >>
> >> +# SPDX-License-Identifier: BSD-2-Clause-Patent
> >>
> >>
> >> +#
> >>
> >>
> >>
> >
+##-----------------------------------------------------------------------= --
> > -----
> >>
> >>
> >> +
> >>
> >>
> >> +.text
> >>
> >>
> >> +.p2align 2
> >>
> >>
> >> +
> >>
> >>
> >> +ASM_GLOBAL ASM_PFX(MemoryFence)
> >>
> >>
> >> +
> >>
> >>
> >> +
> >>
> >>
> >> +#/**
> >>
> >>
> >> +#  Used to serialize load and store operations.
> >>
> >>
> >> +#
> >>
> >>
> >> +#  All loads and stores that proceed calls to this fun= ction are
> > guaranteed to
> >> be
> >>
> >>
> >> +#  globally visible when this function returns.
> >>
> >>
> >> +#
> >>
> >>
> >> +#**/
> >>
> >>
> >> +#VOID
> >>
> >>
> >> +#EFIAPI
> >>
> >>
> >> +#MemoryFence (
> >>
> >>
> >> +#  VOID
> >>
> >>
> >> +#  );
> >>
> >>
> >> +#
> >>
> >>
> >> +ASM_PFX(MemoryFence):
> >>
> >>
> >> +    // Fence on all memory and I/O
> >>
> >>
> >> +    fence
> >>
> >>
> >> +    ret
> >>
> >>
> >> --
> >> 2.30.1
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
> >
> >
> >
> >
> >
>
>
>
>







--_000_DF4PR8401MB0444875AF42BE4CC30F1FC14E0299DF4PR8401MB0444_--