From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mx.groups.io with SMTP id smtpd.web11.399.1678389555662451142 for ; Thu, 09 Mar 2023 11:19:15 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@ventanamicro.com header.s=google header.b=OUdW27Hb; spf=pass (domain: ventanamicro.com, ip: 209.85.216.46, mailfrom: tphan@ventanamicro.com) Received: by mail-pj1-f46.google.com with SMTP id m8-20020a17090a4d8800b002377bced051so7307012pjh.0 for ; Thu, 09 Mar 2023 11:19:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1678389555; h=content-transfer-encoding:cc:to:references:message-id:in-reply-to :thread-topic:subject:from:date:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Jvs7SwTXS0Q9i7PxFTZwUdiOxiH41Kc39V149yqAiTw=; b=OUdW27HbpaIx0JWIIJ/wZ1HZAVJgN9DGLydgGQXhFpPHA3u8QFTgMZBCGYKoxhkF3c B5/WpK0VZx+STvlqmJ97+jvYi9YfiYXH8j0EupL3MpMDP1dlEP+N6ujlFf1draqswo/5 NKSus/Dsq5/evb59uSiu0YqSM2zZbbg48RGLKJmmgCN705eHO8YKxJJWnVzPKTZLn9zf oJ48j0z9ej3q4qd4kHnAI8lN8NEXvWFia4UWq+u61T9wo24PLpZepLUYdXSs9yzHF+HQ khz9f3m9SF1q87PUOHt7Y1Zc+ToBvLPrwnKu1t8KI2vOf7O5vKfWAE8JxuXfQvBvDsGb Y6Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678389555; h=content-transfer-encoding:cc:to:references:message-id:in-reply-to :thread-topic:subject:from:date:mime-version:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Jvs7SwTXS0Q9i7PxFTZwUdiOxiH41Kc39V149yqAiTw=; b=MhMoWMeM3sk+7sualDMnBA7b76c8hqL04a0gb5XTJB1I691YERJEeVcw9oLUw+ZUSG EFspQHXVSoKJ8qgcFkCeT3OMZDc4J054pjsSwemKbs8q1HunQZ6v1hmixdD7S0uniVhM MBi4xGbvZQuODNz3FuBuX/Dzx7wS1uHyEy3kR70f1c3QZrCluswNV3ZqFJjRE9EQCNQi tqbRvpQ7DNp5F125TIt+0fDPjeCCS35XPMSkjRmF+DUlsYpGnzGRKSvX95wQSfgtYMZ/ /coAf1w3yj2wfOGGl5scdbKQ9j/s8NhRVzouxngW6JhPVUt7uKf4uisw35cNOYyGszv5 lhaQ== X-Gm-Message-State: AO0yUKVxbMYk5sB70SWWee3sC13CwC6lq7jpF+M0yvqo1Mz3oumHK32m Bc4/eCx//nhjT7UeYcXef+LfcUdhmIk77wXw7L4= X-Google-Smtp-Source: AK7set/FdKE3UXXtJNASLsR8ZT1bmErn3E+qp5fBgbtVAzJJJHsDaaSzsXShHZ5JMSezx552cXtYRQ== X-Received: by 2002:a17:90a:bd97:b0:23a:f4e7:7334 with SMTP id z23-20020a17090abd9700b0023af4e77334mr7415604pjr.11.1678389554755; Thu, 09 Mar 2023 11:19:14 -0800 (PST) Return-Path: Received: from DESKTOP-I1ETA6N (c-24-7-118-44.hsd1.ca.comcast.net. [24.7.118.44]) by smtp.gmail.com with ESMTPSA id z4-20020a63e544000000b00502fd70b0bdsm11290212pgj.52.2023.03.09.11.19.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Mar 2023 11:19:14 -0800 (PST) MIME-Version: 1.0 Date: Thu, 9 Mar 2023 11:19:09 -0800 From: "Tuan Phan" Subject: Re: [edk2-devel] [PATCH] MdePkg/BaseCacheMaintenanceLib: RISC-V: Fix instruction cache not been invalidated Thread-Topic: RE: [edk2-devel] [PATCH] MdePkg/BaseCacheMaintenanceLib: RISC-V: Fix instruction cache not been invalidated In-Reply-To: <1749E3AC8C2AD5A2.24753@groups.io> Message-ID: <65120192-67F9-4D8E-9331-9C256735D454@hxcore.ol> References: <1749E3AC8C2AD5A2.24753@groups.io> To: "devel@edk2.groups.io" Cc: "michael.d.kinney@intel.com" , "gaoliming@byosoft.com.cn" , "zhiguang.liu@intel.com" , "sunilvl@ventanamicro.com" , "git@danielschaefer.me" Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"

Hi Al= l,

Any updates on this patch?

 

Thanks,

 

From: Tuan Phan via groups.io
Sent: Monday, March 6, 2023 9:11 AM
To: devel@edk2.groups.io
Cc: michael.d.kinney@intel.com; gaoliming@byosoft.com.cn; zhiguang.liu@intel.com; sunilvl@ventanamicro.com; git@danielschaefer.me; Tuan Phan
Subject: [edk2-devel] [PATCH] MdePkg/BaseCache= MaintenanceLib: RISC-V: Fix instruction cache not been invalidated

 

When the ra= nge instruction cache invalidating not supported, the whole

instruction cache should be invalidated instead.

 

Signed-off-by: Tuan Phan &= lt;tphan@ventanamicro.com>

---

MdePkg/Library/BaseCacheMaintenanceLib/RiscVCache.c | 5 ++++-

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

 

diff --git a/MdeP= kg/Library/BaseCacheMaintenanceLib/RiscVCache.c b/MdePkg/Library/BaseCacheM= aintenanceLib/RiscVCache.c

index 67a3387ff3c6..a744= b2a6f889 100644

--- a/MdePkg/Library/BaseCacheMaint= enanceLib/RiscVCache.c

+++ b/MdePkg/Library/BaseCac= heMaintenanceLib/RiscVCache.c

@@ -76,7 +76,10 @@ In= validateInstructionCacheRange (

=C2=A0=C2=A0 IN UIN= TN=C2=A0 Length

 

=C2=A0=C2=A0 )

 

{

 

-=C2=A0 DEBUG ((DEBUG_ERROR, "%a:RISC-V unsupported function.\n= ", __FUNCTION__));

 

+=C2=A0 DEBUG ((DEBUG_WARN,

&nb= sp;

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

 

+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "Invalidat= ing the whole instruction cache instead.\n", __func__));

 

+=C2=A0 InvalidateIn= structionCache ();

 

=C2=A0=C2=A0 return Address;

 <= /o:p>

}

 <= /p>

 

--

2.25.1

 

 

 

-=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 To= pic: https://groups.io/mt/97429987/7027451

Group Ow= ner: devel+owner@edk2.groups.io

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

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

 

=

 

 <= /o:p>

=