From nobody Fri Apr 26 00:54:07 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+100969+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+100969+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1678414436; cv=none; d=zohomail.com; s=zohoarc; b=b5DbNSzOeFlYd0dH/DBKKyKfpuw1Hg1N5qvll7aHniQXMR4lpLg9GUlxA6J5YTM7I+AXuqQv9aiS+0JSg8kXfamu0f2kHbYLlMn/sFPWLbKspHb88LZ+vFWWqXgNHd6/FFqobeWA45umxFvJpYWzdZud8EShJDCxlCKAp60n+WU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1678414436; h=Content-Type:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=4qOzOF9FeaUdGPWPqHqKTDSdIpcpVGKrWouOUpnVD+I=; b=NENXhPkyMN0Wxn7GnVv0uVZ12qEamm6LARPbujrkvzCoMZMX1r7+lZJPDB39NjwYk1t2ocMePg/HkllVgLrxorBsAbXXs+MwIHpYlg00lGIwnjZcibPwTI6dkauZXvE6n5d/2USFRHge7TXhx1pQrRXkhS1G6XsgrKS+8NCC2Bc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+100969+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1678414436869855.2596613358932; Thu, 9 Mar 2023 18:13:56 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id LASaYY1788612xQeP6NUclOL; Thu, 09 Mar 2023 18:13:56 -0800 X-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 X-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) X-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) X-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) X-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) X-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 via groups.io" 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 Thread-Index: AQJivqtPKxQLCr5x1LeCi3pyUlZ48AHdmJ3NrdGBkuA= Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,gaoliming@byosoft.com.cn X-Gm-Message-State: KfTn1B7kRkWoZuxxnfdxIZVqx1787277AA= Content-Type: multipart/alternative; boundary="----=_NextPart_000_006E_01D95338.FDE3F7B0" Content-Language: zh-cn DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1678414436; bh=eDVjBd+5b4wQarhKC1ZR2Ld8oM9UBL+0WrH0+mWOHXI=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=msmtBxX3eqg4j1M2OYdlPodX4j+Z/KkWq/tFEMWNTjkbu/cACM0XNxjXuQRgT2FCx2m NHvztxiD5sIxCHZTzqWXf67vgxGpNO2JLUdetvscUuT4MYjO16hUs6P8jP5aVmtwYVF95 Lok1TBVXsGPYPYdPGgAqlZKyLFI5ciI3RG8= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1678414438391100002 ------=_NextPart_000_006E_01D95338.FDE3F7B0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#100969): https://edk2.groups.io/g/devel/message/100969 Mute This Topic: https://groups.io/mt/97511629/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- ------=_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> 

_._,_._,_

Groups.io Links:

=20 You receive all messages sent to this group. =20 =20

View/Reply Online (#100969) | =20 | Mute = This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [importer@patchew.org]

_._,_._,_
------=_NextPart_000_006E_01D95338.FDE3F7B0--