From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from cxsh.intel-email.com (cxsh.intel-email.com [121.46.250.151]) by mx.groups.io with SMTP id smtpd.web10.9746.1678414432834610042 for ; Thu, 09 Mar 2023 18:13:55 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@byosoft.com.cn header.s=cloud-union header.b=K1au8aTX; spf=pass (domain: byosoft.com.cn, ip: 121.46.250.151, mailfrom: gaoliming@byosoft.com.cn) Received: from cxsh.intel-email.com (localhost [127.0.0.1]) by cxsh.intel-email.com (Postfix) with ESMTP id 61E1CDDA80C for ; Fri, 10 Mar 2023 10:13:50 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=byosoft.com.cn; s=cloud-union; t=1678414430; bh=8OCyYm2oJKGO9s04PZeJP1HMDQzOKjLFCjRASAqDKyQ=; h=From:To:Cc:References:In-Reply-To:Subject:Date; b=K1au8aTXckp1uAR7VVxCpQ95ZnMy5tVDg+h9zAshWQ502hJX7aoXM7xzk6K1NHQc6 aqbAP5gZlmb58mnAz/zNSjzdC5KzXMZiAXPld9VSc4oNHD7PSji1ZyIPLuu1KfTG6Z E6oOSBhT+QOuieGTtD/Td2SHCQtQmBi/ne5DVv7Y= Received: from localhost (localhost [127.0.0.1]) by cxsh.intel-email.com (Postfix) with ESMTP id 5D413DDA7FC for ; Fri, 10 Mar 2023 10:13:50 +0800 (CST) Received: from cxsh.intel-email.com (localhost [127.0.0.1]) by cxsh.intel-email.com (Postfix) with ESMTP id E84BFDDA791 for ; Fri, 10 Mar 2023 10:13:49 +0800 (CST) Authentication-Results: cxsh.intel-email.com; none Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by cxsh.intel-email.com (Postfix) with SMTP id 7D319DDA7AC for ; Fri, 10 Mar 2023 10:13:46 +0800 (CST) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Fri, 10 Mar 2023 10:13:38 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , Cc: , , , References: <1749E3AC8C2AD5A2.24753@groups.io> <65120192-67F9-4D8E-9331-9C256735D454@hxcore.ol> In-Reply-To: <65120192-67F9-4D8E-9331-9C256735D454@hxcore.ol> Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gW1BBVENIXSBNZGVQa2cvQmFzZUNhY2hlTWFpbnRlbmFuY2VMaWI6IFJJU0MtVjogRml4IGluc3RydWN0aW9uIGNhY2hlIG5vdCBiZWVuIGludmFsaWRhdGVk?= Date: Fri, 10 Mar 2023 10:13:42 +0800 Message-ID: <006d01d952f5$efbfa640$cf3ef2c0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJivqtPKxQLCr5x1LeCi3pyUlZ48AHdmJ3NrdGBkuA= Sender: "gaoliming" Content-Type: multipart/alternative; boundary="----=_NextPart_000_006E_01D95338.FDE3F7B0" Content-Language: zh-cn ------=_NextPart_000_006E_01D95338.FDE3F7B0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Tuan: Can __FUNCTION__ be used? If yes, please still keep it.=20 =20 Thanks Liming =E5=8F=91=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io = =E4=BB=A3=E8=A1=A8 Tuan Phan =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2023=E5=B9=B43=E6=9C=8810=E6=97=A5 3:= 19 =E6=94=B6=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io =E6=8A=84=E9=80=81: michael.d.kinney@intel.com; gaoliming@byosoft.com.cn; z= higuang.liu@intel.com; sunilvl@ventanamicro.com; git@danielschaefer.me =E4=B8=BB=E9=A2=98: Re: [edk2-devel] [PATCH] MdePkg/BaseCacheMaintenanceLib= : RISC-V: Fix instruction cache not been invalidated =20 Hi All, Any updates on this patch? =20 Thanks, =20 From: Tuan Phan via groups.io = =20 Sent: Monday, March 6, 2023 9:11 AM To: devel@edk2.groups.io =20 Cc: michael.d.kinney@intel.com ; gaolim= ing@byosoft.com.cn ; zhiguang.liu@intel.c= om ; sunilvl@ventanamicro.com ; git@danielschaefer.me = ; Tuan Phan =20 Subject: [edk2-devel] [PATCH] MdePkg/BaseCacheMaintenanceLib: RISC-V: Fix i= nstruction cache not been invalidated =20 When the range instruction cache invalidating not supported, the whole instruction cache should be invalidated instead. =20 Signed-off-by: Tuan Phan > --- MdePkg/Library/BaseCacheMaintenanceLib/RiscVCache.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) =20 diff --git a/MdePkg/Library/BaseCacheMaintenanceLib/RiscVCache.c b/MdePkg/L= ibrary/BaseCacheMaintenanceLib/RiscVCache.c index 67a3387ff3c6..a744b2a6f889 100644 --- a/MdePkg/Library/BaseCacheMaintenanceLib/RiscVCache.c +++ b/MdePkg/Library/BaseCacheMaintenanceLib/RiscVCache.c @@ -76,7 +76,10 @@ InvalidateInstructionCacheRange ( IN UINTN Length =20 ) =20 { =20 - DEBUG ((DEBUG_ERROR, "%a:RISC-V unsupported function.\n", __FUNCTION__))= ; =20 + DEBUG ((DEBUG_WARN, =20 + "%a:RISC-V unsupported function.\n" =20 + "Invalidating the whole instruction cache instead.\n", __func__)); =20 + InvalidateInstructionCache (); =20 return Address; =20 } =20 =20 --=20 2.25.1 =20 =20 =20 -=3D-=3D-=3D-=3D-=3D-=3D Groups.io Links: You receive all messages sent to this group. View/Reply Online (#100744): https://edk2.groups.io/g/devel/message/100744 Mute This Topic: https://groups.io/mt/97429987/7027451 Group Owner: devel+owner@edk2.groups.io = =20 Unsubscribe: https://edk2.groups.io/g/devel/unsub [tphan@ventanamicro.com] -=3D-=3D-=3D-=3D-=3D-=3D =20 =20 =20 ------=_NextPart_000_006E_01D95338.FDE3F7B0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Tuan:

=C2= =A0Can __FUNCTION__ be used? If yes, please still= keep it.

&nb= sp;

Thanks

Liming

=E5=8F=91=E4=BB= =B6=E4=BA=BA: devel@edk2.groups.io <devel@edk2.gr= oups.io> =E4=BB= =A3=E8=A1=A8 Tuan Phan
=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2023=E5=B9=B43=E6=9C=8810=E6=97=A5 3:19
=E6=94=B6=E4=BB=B6=E4=BA=BA:= devel@edk2.groups.io
=E6=8A=84=E9=80= =81: michael.d.kinney@inte= l.com; gaoliming@byosoft.com.cn; zhiguang.liu@intel.com; sunilvl@ventanamic= ro.com; git@danielschaefer.me
=E4=B8=BB=E9=A2=98: Re: [edk2-devel] [PATCH] MdePkg/BaseCa= cheMaintenanceLib: RISC-V: Fix instruction cache not been invalidated<= /o:p>

=  

Hi All,=

Any updates o= n this patch?

=  

Thanks,=

 

From: Tuan Phan via groups.io
Sent: Monday, March 6, 2023 9:= 11 AM
To: devel@edk2.grou= ps.io
Cc: micha= el.d.kinney@intel.com; gaol= iming@byosoft.com.cn; zhiguan= g.liu@intel.com; sunilvl@ve= ntanamicro.com; git@danielscha= efer.me; Tuan Phan
= Subject: [edk2-devel] [PATCH] MdePkg/BaseCacheMaintenanceLib: RISC-V: F= ix instruction cache not been invalidated

 

When the range instruction cache invalidating no= t supported, the whole

instruction cache should be invalidated instead.=

 

Signed-off-by: Tuan Phan <tphan@ventanamicro.com>

---

MdePkg/Library/BaseCacheMaintenan= ceLib/RiscVCache.c | 5 ++++-

1 file changed, 4 insertions(+), 1 deletion(-)

 

diff --git a/MdePkg/Library/BaseCa= cheMaintenanceLib/RiscVCache.c b/MdePkg/Library/BaseCacheMaintenanceLib/Ris= cVCache.c

inde= x 67a3387ff3c6..a744b2a6f889 100644

--- a/MdePkg/Library/BaseCacheMaintenanceLib/RiscVCac= he.c

+++ b/Mde= Pkg/Library/BaseCacheMaintenanceLib/RiscVCache.c

@@ -76,7 +76,10 @@ InvalidateInstruction= CacheRange (

&= nbsp;  IN UINTN  Length

 

   )

 

{

 

-  DE= BUG ((DEBUG_ERROR, "%a:RISC-V unsupported function.\n", __FUNCTIO= N__));

&n= bsp;

+  DEBUG = ((DEBUG_WARN,

=  

+ =      "%a:RISC-V unsupported function.\n"=

 <= /span>

+    =   "Invalidating the whole instruction cache instead.\n", __f= unc__));

=  

+  Inva= lidateInstructionCache ();

 

   return Address;

 

}

 

=  

--

2.25.1

 

<= p class=3DMsoNormal> 

 

-=3D-=3D-=3D-=3D-=3D-=3D

Groups.io Links: You receive all messag= es sent to this group.

View/Reply Online (#100744): https://edk2.groups.io/g/devel/message/100744=

Mute This Topic: <= a href=3D"https://groups.io/mt/97429987/7027451">https://groups.io/mt/97429= 987/7027451

Group Owner: devel+owner@ed= k2.groups.io

Unsubscribe: https://ed= k2.groups.io/g/devel/unsub [tphan@ventanamicro.com]

-=3D-=3D-=3D-=3D-=3D-=3D

 

 

<= p class=3DMsoNormal> 

------=_NextPart_000_006E_01D95338.FDE3F7B0--