From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 6977A74003C for ; Fri, 1 Mar 2024 12:58:58 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=OE6AtgNvPYa0YVAh2INQ0tu1e+BUwaIuw875xHKqxC0=; c=relaxed/simple; d=groups.io; h=From:To:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Thread-Index:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding:Content-Language; s=20140610; t=1709297937; v=1; b=C1SI8C8zUwBf1bzX+pDi/9EihmvEL26b0vdd9EPdTjvAu0by9rFwQQm5wxYGTmniQnqNYO1c EUe7rMLo8ML06XvbIltCnWVBBIbcIWQqFk3KQ6o165be3ikuAEbJtbgy626NibhItENdsLkLmwO cl6VqNXbeHxDKQ2IYPxvbwjY= X-Received: by 127.0.0.2 with SMTP id IQQOYY7687511xKjZE5lNTr3; Fri, 01 Mar 2024 04:58:57 -0800 X-Received: from cxsh.intel-email.com (cxsh.intel-email.com [121.46.250.151]) by mx.groups.io with SMTP id smtpd.web11.21956.1709297936123967006 for ; Fri, 01 Mar 2024 04:58:56 -0800 X-Received: from cxsh.intel-email.com (localhost [127.0.0.1]) by cxsh.intel-email.com (Postfix) with ESMTP id 60F43DDA7AE for ; Fri, 1 Mar 2024 20:58:54 +0800 (CST) X-Received: from localhost (localhost [127.0.0.1]) by cxsh.intel-email.com (Postfix) with ESMTP id 5D941DDA785 for ; Fri, 1 Mar 2024 20:58:54 +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 CF0BDDDA784 for ; Fri, 1 Mar 2024 20:58:51 +0800 (CST) X-Received: from DESKTOPS6D0PVI ([114.93.194.54]) (envelope-sender ) by 192.168.6.13 with ESMTP(SSL) for ; Fri, 01 Mar 2024 20:58:46 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 114.93.194.54 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming via groups.io" To: "'Zhihao Li'" , , References: <20240301071147.519-1-zhihao.li@intel.com> In-Reply-To: <20240301071147.519-1-zhihao.li@intel.com> Subject: =?UTF-8?B?W2VkazItZGV2ZWxdIOWbnuWkjTogW1BBVENIIHYxXSBNZGVNb2R1bGVQa2cvQ29yZS9QZWk6IEltcHJvdmUgdGhlIGNvcHkgcGVyZm9ybWFuY2U=?= Date: Fri, 1 Mar 2024 20:58:49 +0800 Message-ID: <02d901da6bd8$34e51fb0$9eaf5f10$@byosoft.com.cn> MIME-Version: 1.0 Thread-Index: AQGT3KytlH6Aj8s6BB27ZXiyKfvHSLGv9ruw Precedence: Bulk 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 List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: uGH1eQ10ulO44tCyd9qOsrIZx7686176AA= Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=C1SI8C8z; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io I agree this change. It should have no negative impact. Reviewed-by: Liming Gao Michael: Have you any comments for this change? Thanks Liming > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: Zhihao Li > =B7=A2=CB=CD=CA=B1=BC=E4: 2024=C4=EA3=D4=C21=C8=D5 15:12 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: Liming Gao > =D6=F7=CC=E2: [PATCH v1] MdeModulePkg/Core/Pei: Improve the copy performa= nce >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4697 >=20 > EvacuateTempRam function will copy the temporary memory context to the > rebased > pages and the raw pages. Migrations of rebased PEIMs is from cache to > memory, > while raw PEIMs is from memory to memory. So the migrations of raw PEIMs > is slower than rebased PEIMs. Experimental data indicates that changing the > source > address of raw PEIMs migration will improve performance by 35%. >=20 > Cc: Liming Gao > Signed-off-by: Zhihao Li > --- > MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c > b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c > index 4cd8c843cd..ca37bde482 100644 > --- a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c > +++ b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c > @@ -1,7 +1,7 @@ > /** @file > EFI PEI Core dispatch services >=20 > -Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
> +Copyright (c) 2006 - 2024, Intel Corporation. All rights reserved.
> (C) Copyright 2016 Hewlett Packard Enterprise Development LP
> SPDX-License-Identifier: BSD-2-Clause-Patent >=20 > @@ -1305,7 +1305,7 @@ EvacuateTempRam ( > ); > ASSERT_EFI_ERROR (Status); > RawDataFvHeader =3D (EFI_FIRMWARE_VOLUME_HEADER > *)(UINTN)FvHeaderAddress; > - CopyMem (RawDataFvHeader, MigratedFvHeader, > (UINTN)FvHeader->FvLength); > + CopyMem (RawDataFvHeader, FvHeader, > (UINTN)FvHeader->FvLength); > MigratedFvInfo.FvDataBase =3D > (UINT32)(UINTN)RawDataFvHeader; > } >=20 > -- > 2.26.2.windows.1 -=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 (#116249): https://edk2.groups.io/g/devel/message/116249 Mute This Topic: https://groups.io/mt/104662794/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-