Liming - It is still under discussion. I’m checking if this patch can be
reviewed and merged first. You may find more details in the attached email.
BRs,
Lin, Du
From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of gaoliming via
groups.io
Sent: Thursday, May 30, 2024 1:02 PM
To: devel@edk2.groups.io; Lin, Du <du....@intel.com>
Cc: Ni, Ray <ray...@intel.com>; o...@linux.microsoft.com
Subject: 回复: [edk2-devel] [PATCH] MdeModulePkg: Update GCD attribute conversion
to support SP attribute
Lin:
I see there is some discussion. Have you made the agreement with this change?
Thanks
Liming
发件人: devel@edk2.groups.io<mailto:devel@edk2.groups.io>
<devel@edk2.groups.io<mailto:devel@edk2.groups.io>> 代表 Du Lin
发送时间: 2024年5月29日 21:05
收件人: devel@edk2.groups.io<mailto:devel@edk2.groups.io>
抄送: Liming Gao <gaolim...@byosoft.com.cn<mailto:gaolim...@byosoft.com.cn>>; Ni,
Ray <ray...@intel.com<mailto:ray...@intel.com>>; Lin, Du
<du....@intel.com<mailto:du....@intel.com>>
主题: Re: [edk2-devel] [PATCH] MdeModulePkg: Update GCD attribute conversion to
support SP attribute
A pull request has been created for this patch:
https://github.com/tianocore/edk2/pull/5691.
BRs,
Lin, Du
From: Ni, Ray <ray...@intel.com<mailto:ray...@intel.com>>
Sent: Friday, May 10, 2024 10:53 AM
To: Lin, Du <du....@intel.com<mailto:du....@intel.com>>;
devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Cc: Liming Gao <gaolim...@byosoft.com.cn<mailto:gaolim...@byosoft.com.cn>>
Subject: Re: [PATCH] MdeModulePkg: Update GCD attribute conversion to support
SP attribute
Reviewed-by: Ray Ni <ray...@intel.com<mailto:ray...@intel.com>>
Thanks,
Ray
________________________________
From: Lin, Du <du....@intel.com<mailto:du....@intel.com>>
Sent: Thursday, May 9, 2024 12:04
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>
<devel@edk2.groups.io<mailto:devel@edk2.groups.io>>
Cc: Lin, Du <du....@intel.com<mailto:du....@intel.com>>; Liming Gao
<gaolim...@byosoft.com.cn<mailto:gaolim...@byosoft.com.cn>>; Ni, Ray
<ray...@intel.com<mailto:ray...@intel.com>>
Subject: [PATCH] MdeModulePkg: Update GCD attribute conversion to support SP
attribute
Add a new entry into GCD attribute conversion table to convert
EFI_RESOURCE_ATTRIBUTE_SPECIAL_PURPOSE to EFI_MEMORY_SP.
Cc: Liming Gao <gaolim...@byosoft.com.cn<mailto:gaolim...@byosoft.com.cn>>
Cc: Ray Ni <ray...@intel.com<mailto:ray...@intel.com>>
Signed-off-by: Du Lin <du....@intel.com<mailto:du....@intel.com>>
---
MdeModulePkg/Core/Dxe/Gcd/Gcd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/MdeModulePkg/Core/Dxe/Gcd/Gcd.c b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c
index fe1bbd6974..99364508cd 100644
--- a/MdeModulePkg/Core/Dxe/Gcd/Gcd.c
+++ b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c
@@ -92,6 +92,7 @@ GCD_ATTRIBUTE_CONVERSION_ENTRY mAttributeConversionTable[] =
{
{ EFI_RESOURCE_ATTRIBUTE_TESTED, EFI_MEMORY_TESTED,
FALSE },
{ EFI_RESOURCE_ATTRIBUTE_PERSISTABLE, EFI_MEMORY_NV,
TRUE },
{ EFI_RESOURCE_ATTRIBUTE_MORE_RELIABLE, EFI_MEMORY_MORE_RELIABLE,
TRUE },
+ { EFI_RESOURCE_ATTRIBUTE_SPECIAL_PURPOSE, EFI_MEMORY_SP,
TRUE },
{ 0, 0,
FALSE }
};
--
2.44.0.windows.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#119404): https://edk2.groups.io/g/devel/message/119404
Mute This Topic: https://groups.io/mt/106402173/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-
--- Begin Message ---
Is there any feedback from CXL stakeholders?
It is OK if more time is needed to check with CXL stakeholders. But looks like
we all agree that the GCD attribute conversion table shall be updated to
convert EFI_RESOURCE_ATTRIBUTE_SPECIAL_PURPOSE to EFI_MEMORY_SP.
So could we review and merge the conversion table update first, while we are
waiting for the feedback from CXL stakeholders? If you agree, a pull request
has been created for the conversion table update:
https://github.com/tianocore/edk2/pull/5691.
BRs,
Lin, Du
-----Original Message-----
From: Oliver Smith-Denny <o...@linux.microsoft.com>
Sent: Friday, May 24, 2024 5:05 AM
To: devel@edk2.groups.io; Lin, Du <du....@intel.com>;
mikub...@linux.microsoft.com
Cc: Liming Gao <gaolim...@byosoft.com.cn>; Kinney, Michael D
<michael.d.kin...@intel.com>; Ni, Ray <ray...@intel.com>
Subject: Re: [edk2-devel] [PATCH v3 1/1] MdeModulePkg: Add the
EFI_RESOURCE_ATTRIBUTE_SPECIAL_PURPOSE attribute
On 5/23/2024 2:17 AM, Du Lin wrote:
> Thanks for the quick response.
>
> Agree that the PI and UEFI specs are vague on SP. That is also why I opted to
> minimize code changes to DXE core for SP support in patch
> https://edk2.groups.io/g/devel/message/118712.
>
> Would it make more sense to let the caller determine if SP memory is
> available for UEFI via EFI resource types (e.g., EFI_RESOURCE_SYSTEM_MEMORY
> vs EFI_RESOURCE_MEMORY_RESERVED)?
>
> CDAT can be read in PEI phase via DOE method and CDAT is important to support
> CXL 2.0. I believe CDAT spec is referencing EFI_MEMORY_TYPE and Memory
> Attributes defined in UEFI spec section 7.2. "EfiConventionalMemory Type with
> EFI_MEMORY_SP Attribute" may suggest that the memory type shall be
> EfiConventionalMemory and the attribute shall have SP set when reporting the
> memory to OS. And the concern is whether this combination can still be
> supported if we always mark resource HOBs with SP set as
> EfiGcdMemoryTypeReserved.
Thanks for the clarification. I agree that it makes sense to let the resource
HOB creator determine whether UEFI will put this in system memory or reserved
memory. DxeCore at that point could decide to not allocate any memory with the
EFI_MEMORY_SP attribute (or it could decide it doesn't care).
We are meeting with some CXL stakeholders to make sure there is no concern with
changing this patch and then we will respin this.
Thanks,
Oliver
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#119402): https://edk2.groups.io/g/devel/message/119402
Mute This Topic: https://groups.io/mt/106165072/8327890
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [du....@intel.com]
-=-=-=-=-=-=-=-=-=-=-=-
--- End Message ---