From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id C671A780091 for ; Sat, 15 Jun 2024 03:04:49 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=0tWL9p+RNL14S6jTJBi7fwRDwO5dAFwx9iHLUY78Va4=; 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:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding:Content-Language; s=20240206; t=1718420689; v=1; b=VJFuMGsGP1WQ8uFTfKFOChvTMzJxz7T7lYW4pUjA53Q2vpPhDGTOHTJbhpEGe8DPu7uo4g1t VwAmrs1p6/A5BMe6lq75ZBGa7anDO5h2WFkHpzFROUFJjI6nXqwN+f49T6/tzI7egI5Rm06nEIb nHHnRRffnx/pqpfgkcNVNRXKl46QTAXqCMgojhUVMbzxm+IWHFkshd2Ey5lB6synIeuh3LmlpNY vJSc2oAL4gtadJ0+h8W17XLRsqZfYg2HFyEBe1D11i0n/9AlxDpeSTr6I5/jmDFS05eu4hnNO4A SRgG7S/yBDda8RFzB7r7g9+iS6CDaAYCOfBBP9ivP+kQQ== X-Received: by 127.0.0.2 with SMTP id kOdPYY7687511xO45NwKv9W7; Fri, 14 Jun 2024 20:04:48 -0700 X-Received: from cxsh.intel-email.com (cxsh.intel-email.com [121.46.250.151]) by mx.groups.io with SMTP id smtpd.web11.5412.1718420686046852708 for ; Fri, 14 Jun 2024 20:04:47 -0700 X-Received: from cxsh.intel-email.com (localhost [127.0.0.1]) by cxsh.intel-email.com (Postfix) with ESMTP id C4AF3DDA7DE for ; Sat, 15 Jun 2024 11:04:42 +0800 (CST) X-Received: from localhost (localhost [127.0.0.1]) by cxsh.intel-email.com (Postfix) with ESMTP id C009BDDA7DB for ; Sat, 15 Jun 2024 11:04:42 +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 4054FDDA7C6 for ; Sat, 15 Jun 2024 11:04:39 +0800 (CST) X-Received: from DESKTOPS6D0PVI ([114.92.182.254]) (envelope-sender ) by 192.168.6.13 with ESMTP(SSL) for ; Sat, 15 Jun 2024 11:04:38 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 114.92.182.254 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming via groups.io" To: , References: <20240611040910.93238-1-dhaval@rivosinc.com> <20240611040910.93238-2-dhaval@rivosinc.com> In-Reply-To: <20240611040910.93238-2-dhaval@rivosinc.com> Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gW1BBVENIIHYxIDEvMV0gTWRlTW9kdWxlUGtnOiBBdm9pZCBlZmkgbWVtb3J5IGFsbG9jYXRpb24gZm9yIFNQIHR5cGU=?= Date: Sat, 15 Jun 2024 11:04:37 +0800 Message-ID: <045501dabed0$c1e5d170$45b17450$@byosoft.com.cn> MIME-Version: 1.0 Thread-Index: AQN1S055+cl0gdhtuqqDQ/vLCL7b9AGLG5ZXroax75A= 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 Resent-Date: Fri, 14 Jun 2024 20:04:47 -0700 Resent-From: gaoliming@byosoft.com.cn Reply-To: devel@edk2.groups.io,gaoliming@byosoft.com.cn List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 4UWYMHaZoYKUqDmybBkdGjRNx7686176AA= 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=20240206 header.b=VJFuMGsG; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io Can you create pull request for this change? I will add my review for it.= =20 > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: devel@edk2.groups.io =B4=FA=B1= =ED Dhaval Sharma > =B7=A2=CB=CD=CA=B1=BC=E4: 2024=C4=EA6=D4=C211=C8=D5 12:09 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: Liming Gao > =D6=F7=CC=E2: [edk2-devel] [PATCH v1 1/1] MdeModulePkg: Avoid efi memory allocation > for SP type >=20 > Most of the times it is desirable not to use special purpose > memory for regular edk2 usages. That memory (HBm/CXL) are > either meant for special purposes or are less reliable to > be used. So avoid using them as long as possible. We could > also introduce PCD for this control. >=20 > Cc: Liming Gao > Signed-off-by: Dhaval Sharma > --- > MdeModulePkg/Core/Dxe/Mem/Page.c | 7 +++++++ > 1 file changed, 7 insertions(+) >=20 > diff --git a/MdeModulePkg/Core/Dxe/Mem/Page.c > b/MdeModulePkg/Core/Dxe/Mem/Page.c > index 5a51d9df1a29..e4daa741b971 100644 > --- a/MdeModulePkg/Core/Dxe/Mem/Page.c > +++ b/MdeModulePkg/Core/Dxe/Mem/Page.c > @@ -1183,6 +1183,13 @@ CoreFindFreePagesI ( > continue; >=20 > } >=20 >=20 >=20 > + // >=20 > + // Don't allocate out of Special-Purpose memory. >=20 > + // >=20 > + if ((Entry->Attribute & EFI_MEMORY_SP) !=3D 0) { >=20 > + continue; >=20 > + } >=20 > + >=20 > DescStart =3D Entry->Start; >=20 > DescEnd =3D Entry->End; >=20 >=20 >=20 > -- > 2.40.1 >=20 >=20 >=20 > -=3D-=3D-=3D-=3D-=3D-=3D > Groups.io Links: You receive all messages sent to this group. > View/Reply Online (#119545): https://edk2.groups.io/g/devel/message/11954= 5 > Mute This Topic: https://groups.io/mt/106607739/4905953 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub > [gaoliming@byosoft.com.cn] > -=3D-=3D-=3D-=3D-=3D-=3D >=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 (#119581): https://edk2.groups.io/g/devel/message/119581 Mute This Topic: https://groups.io/mt/106682610/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-