Date
1 - 5 of 5
回复: [edk2-devel] [PATCH] MdeModulePkg\CoreDxe: Allow DXE Drivers to use untested memory
gaoliming
Stacy:
toggle quoted messageShow quoted text
This fix covers the case with AllocateAddress allocation type. I agree this fix. Reviewed-by: Liming Gao <gaoliming@...> Thanks Liming
-----邮件原件-----
|
|
Sean
if this is auto promotion is happening in the core then what is the value of memory testing and tracking that state. Is memory testing state a necessary feature of the Dxe Core?
toggle quoted messageShow quoted text
I think it makes more sense that if you platform wants to use a given range your platform should either test it and/or mark it as tested. OR The dxe core should do away with the memory testing tracking. On most platforms i have seen in the past few years all memory is marked as tested without doing any testing. The only value in the flag is keep the initial memory allocations in a given low range (below 4gb).
On 1/10/2022 5:59 PM, gaoliming wrote:
Stacy:
|
|
Michael D Kinney
Hi Sean,
toggle quoted messageShow quoted text
The auto promotion of memory was only intended as a dev/debug feature to maximize platform boot without having to tune what memory is tested in PEI phase. In my opinion, a production platform should never trigger any auto promotions of untested to tested memory, and part of production validation should make sure this event never occurs in any production boot scenarios. The specific bug being fix here is that auto promotion was not symmetric across all memory allocation types. It simply aligns this dev/debug feature. Mike
-----Original Message-----
|
|
Howell, Stacy <stacy.howell@...>
Hi Sean,
toggle quoted messageShow quoted text
Setting all memory as tested in PEI is a workaround for the issue that this patch addresses. However, promoting all memory in PEI is not a workable solution for BIOSes that incorporate full memory testing functionality, as this relies on the tested flag to determine which memory regions to test. This patch addresses a discrepancy in EDK2 core regarding how untested memory is treated for allocation by DXE drivers. In the case where a DXE driver does not request a specific memory region DXE Core will promote untested memory if necessary to provide memory to the driver. In the case where a DXE driver requests a specific memory range of untested memory, DXE Core will currently return an error instead of promoting untested memory to make the region available for the driver. Thanks, Stacy
-----Original Message-----
From: Kinney, Michael D <michael.d.kinney@...> Sent: Tuesday, January 11, 2022 10:57 AM To: devel@edk2.groups.io; spbrogan@...; Gao, Liming <gaoliming@...>; Howell, Stacy <stacy.howell@...>; Kinney, Michael D <michael.d.kinney@...> Cc: Bi, Dandan <dandan.bi@...> Subject: RE: 回复: [edk2-devel] [PATCH] MdeModulePkg\CoreDxe: Allow DXE Drivers to use untested memory Hi Sean, The auto promotion of memory was only intended as a dev/debug feature to maximize platform boot without having to tune what memory is tested in PEI phase. In my opinion, a production platform should never trigger any auto promotions of untested to tested memory, and part of production validation should make sure this event never occurs in any production boot scenarios. The specific bug being fix here is that auto promotion was not symmetric across all memory allocation types. It simply aligns this dev/debug feature. Mike -----Original Message-----
|
|
Howell, Stacy <stacy.howell@...>
Hi all,
toggle quoted messageShow quoted text
Are there any other comments or concerns regarding this patch? Thanks, Stacy
-----Original Message-----
From: Howell, Stacy Sent: Friday, January 14, 2022 4:13 PM To: Kinney, Michael D <michael.d.kinney@...>; devel@edk2.groups.io; spbrogan@...; Gao, Liming <gaoliming@...> Cc: Bi, Dandan <dandan.bi@...>; Howell, Stacy <stacy.howell@...> Subject: RE: 回复: [edk2-devel] [PATCH] MdeModulePkg\CoreDxe: Allow DXE Drivers to use untested memory Hi Sean, Setting all memory as tested in PEI is a workaround for the issue that this patch addresses. However, promoting all memory in PEI is not a workable solution for BIOSes that incorporate full memory testing functionality, as this relies on the tested flag to determine which memory regions to test. This patch addresses a discrepancy in EDK2 core regarding how untested memory is treated for allocation by DXE drivers. In the case where a DXE driver does not request a specific memory region DXE Core will promote untested memory if necessary to provide memory to the driver. In the case where a DXE driver requests a specific memory range of untested memory, DXE Core will currently return an error instead of promoting untested memory to make the region available for the driver. Thanks, Stacy -----Original Message----- From: Kinney, Michael D <michael.d.kinney@...> Sent: Tuesday, January 11, 2022 10:57 AM To: devel@edk2.groups.io; spbrogan@...; Gao, Liming <gaoliming@...>; Howell, Stacy <stacy.howell@...>; Kinney, Michael D <michael.d.kinney@...> Cc: Bi, Dandan <dandan.bi@...> Subject: RE: 回复: [edk2-devel] [PATCH] MdeModulePkg\CoreDxe: Allow DXE Drivers to use untested memory Hi Sean, The auto promotion of memory was only intended as a dev/debug feature to maximize platform boot without having to tune what memory is tested in PEI phase. In my opinion, a production platform should never trigger any auto promotions of untested to tested memory, and part of production validation should make sure this event never occurs in any production boot scenarios. The specific bug being fix here is that auto promotion was not symmetric across all memory allocation types. It simply aligns this dev/debug feature. Mike -----Original Message-----
|
|