Re: [edk2-devel] [PATCH] IntelFsp2Pkg/SwitchStack: Reserve 32B when calling C function in 64bit

2023-11-03 Thread Nate DeSimone
Pushed as 0b4acb8. -Original Message- From: devel@edk2.groups.io On Behalf Of Ni, Ray Sent: Tuesday, October 31, 2023 1:22 AM To: devel@edk2.groups.io Cc: Chiu, Chasel Subject: [edk2-devel] [PATCH] IntelFsp2Pkg/SwitchStack: Reserve 32B when calling C function in 64bit When FSP runs in

Re: [edk2-devel] [PATCH] IntelFsp2Pkg/PatchFv: Fix syntax issue in markdown manual

2023-11-03 Thread Nate DeSimone
Reviewed-by: Nate DeSimone -Original Message- From: Ni, Ray Sent: Wednesday, November 1, 2023 2:30 AM To: devel@edk2.groups.io Cc: Chiu, Chasel ; Desimone, Nathaniel L ; Duggapu, Chinni B ; Ng, Ray Han Lim ; Zeng, Star ; Kuo, Ted ; S, Ashraf Ali ; Mohapatra, Susovan Subject:

Re: [edk2-devel] [PATCH edk2-platforms 1/1] IpmiFeaturePkg/SmmIpmiBaseLib: Support Standalone MM.

2023-11-03 Thread Nate DeSimone
Hi Wei, - Please update the copyright year on SmmIpmiBaseLib.c + SmmIpmiBaseLib.inf - Please remove the duplicate old-style function comment on IpmiSubmitCommand() - Additional feedback inline. > -Original Message- > From: Xu, Wei6 > Sent: Monday, October 30, 2023 8:08 PM > To:

Re: [edk2-devel] [PATCH v4 1/1] IpmiFeaturePkg/GenericIpmi: Support Standalone MM

2023-11-03 Thread Nate DeSimone
Reviewed-by: Nate DeSimone > -Original Message- > From: Huang, Li-Xia > Sent: Monday, October 30, 2023 11:24 PM > To: devel@edk2.groups.io > Cc: Abner Chang ; Desimone, Nathaniel L > > Subject: [PATCH v4 1/1] IpmiFeaturePkg/GenericIpmi: Support Standalone > MM > > Add Standalone Mm

Re: [edk2-devel] [PATCH v4 1/1] IpmiFeaturePkg/GenericIpmi: Support Standalone MM

2023-11-03 Thread Nate DeSimone
Pushed as 3c2f11d > -Original Message- > From: Huang, Li-Xia > Sent: Monday, October 30, 2023 11:24 PM > To: devel@edk2.groups.io > Cc: Abner Chang ; Desimone, Nathaniel L > > Subject: [PATCH v4 1/1] IpmiFeaturePkg/GenericIpmi: Support Standalone > MM > > Add Standalone Mm Generic Impi

Re: [edk2-devel] [PATCH v2 1/1] ReadMe.rst: Add Apache License 2.0 and update submodule list

2023-11-03 Thread Laszlo Ersek
On 11/2/23 16:59, mikub...@linux.microsoft.com wrote: > From: Michael Kubacki > > - Adds Apache License 2.0 as an acceptable source license per > discussion in https://edk2.groups.io/g/devel/message/110226 > - Updates the URL for existing licenses to match the current path > used by

[edk2-devel] [PATCH v1] OvmfPkg/PlatformInitLib: Don't override user specified PciMmio64Size

2023-11-03 Thread Vivek Kasireddy
If the user specified a size for the PCI MMIO window via the option: -fw_cfg name=opt/ovmf/X-PciMmio64Mb,string=32768 then this patch ensures that the mmio window is not resized again. Essentially, this prevents the change introduced in the following patch from taking effect: commit

Re: [edk2-devel] [PATCH] MdeModulePkg/XhciDxe: Non-zero start/stop values in XhcGetElapsedTicks

2023-11-03 Thread Laszlo Ersek
On 11/2/23 14:06, Pedro Falcato wrote: > On Thu, Nov 2, 2023 at 11:28 AM Laszlo Ersek > wrote: >> >> On 11/1/23 02:12, Mike Maslenkin wrote: [...] >>> Just curious why this patch was broken by google groups. >>> >>> Some patches to edk2 and edk2-redfish-client have unintended line >>> breaks

Re: [edk2-devel] [PATCH] MdeModulePkg/PciHostBridgeDxe: Add readback after final Cfg-Write

2023-11-03 Thread Laszlo Ersek
On 11/3/23 01:03, Joe L wrote: > From: joelopez333 > > REF:https://edk2.groups.io/g/devel/topic/102310377#110456 > > - Add a read after the final PCI Configuration space write > in RootBridgeIoPciAccess. > > - When configuration space is strongly ordered, this ensures > that program

Re: [edk2-devel] [PATCH v1 00/29] Enable LoongArch virtual machine in edk2

2023-11-03 Thread Laszlo Ersek
On 11/3/23 08:32, Chao Li wrote: > Hi Laszlo, > > Sorry, the reason of some mail is not under cover letter is found, I > will fix it at the V2. > > I don't think the code is **duplicated** since most code is architecture > related, and maybe some code is referenced from others ARCH. As  the >

Re: [edk2-devel] [PATCH v1 00/29] Enable LoongArch virtual machine in edk2

2023-11-03 Thread Chao Li
Hi Bibo, Yes, you are right, MpInitLib is most used on the physical machines, but in LoongArch, this library is a public library, so it is the minimum requirement that it can worke on physical machines and virtual machines. This library has been tested on the actual and virtual machines to

Re: [edk2-devel] [PATCH v1 00/29] Enable LoongArch virtual machine in edk2

2023-11-03 Thread maobibo
On 2023/11/3 下午4:09, Chao Li wrote: Hi Bibo, Yes, you are right, MpInitLib is most used on the physical machines, but in LoongArch, this library is a public library, so it is the minimum requirement that it can worke on physical machines and virtual machines. This library has been tested

Re: [edk2-devel] [PATCH] UefiCpuPkg/PiSmmCpuDxeSmm: Clear CR4.CET before restoring MSR IA32_S_CET

2023-11-03 Thread duntan
Hi Wei, Could you please split the patch to into separate patches? Different patch for different issue may looks clearer. Thanks, Dun -Original Message- From: Sheng, W Sent: Friday, November 3, 2023 1:35 PM To: devel@edk2.groups.io Cc: Dong, Eric ; Ni, Ray ; Laszlo Ersek ; Wu, Jiaxin

Re: [edk2-devel] [PATCH v1 00/29] Enable LoongArch virtual machine in edk2

2023-11-03 Thread Chao Li
Hi Ray, Thanks for review. I think the MpInitLib is necessary, because this library will serve PEI and DEX phases. In LoongArch, the MP initialization function will be  called first in the PEI phase. It will wake up all of AP, collect accurate online cores, and all APs will fill in their

Re: [edk2-devel] [PATCH v1 00/29] Enable LoongArch virtual machine in edk2

2023-11-03 Thread Laszlo Ersek
On 11/3/23 02:03, Chao Li wrote: > This patch set will enable LoongArch virtual machine in edk2, the new > LoongArch virtual machine is located in OvmfPkg/LoongArchVirt/, it is a > generic platform that dose not require any actual hardware. > > Patch1-Patch14: Submit the common library and driver

Re: [edk2-devel] [PATCH v1 00/29] Enable LoongArch virtual machine in edk2

2023-11-03 Thread Chao Li
Hi Laszlo, Sorry, the reason of some mail is not under cover letter is found, I will fix it at the V2. I don't think the code is **duplicated** since most code is architecture related, and maybe some code is referenced from others ARCH. As  the cover letter saied, most code is distributed

Re: [edk2-devel] [PATCH v1 00/29] Enable LoongArch virtual machine in edk2

2023-11-03 Thread maobibo
On 2023/11/3 下午3:08, Chao Li wrote: Hi Ray, Thanks for review. I think the MpInitLib is necessary, because this library will serve PEI and DEX phases. In LoongArch, the MP initialization function will be called first in the PEI phase. It will wake up all of AP, collect accurate online

Re: [edk2-devel] [PATCH v4 8/8] ReadMe.rst: Add CodeQL/analyze directory under other licenses

2023-11-03 Thread Laszlo Ersek
On 11/2/23 21:03, Michael Kubacki wrote: > From: Michael Kubacki > > The code in this directory is licensed under Apache License, Version > 2.0. Therefore, the directory is listed under paths with licenses > other than BSD-2-Clause Plus Patent. The directory link points to the > complete Apache

Re: [edk2-devel] [PATCH v1] OvmfPkg/PlatformInitLib: Don't override user specified PciMmio64Size

2023-11-03 Thread Laszlo Ersek
On 11/3/23 06:15, Vivek Kasireddy wrote: > If the user specified a size for the PCI MMIO window via the option: > -fw_cfg name=opt/ovmf/X-PciMmio64Mb,string=32768 > then this patch ensures that the mmio window is not resized again. > > Essentially, this prevents the change introduced in the

Re: [edk2-devel] [PATCH v1] UefiCpuPkg/PiSmmCpuDxeSmm: Fix CP Exception when CET enable

2023-11-03 Thread Laszlo Ersek
On 11/3/23 13:14, Wu, Jiaxin wrote: > Shadow stack will stop update after CET disable (DisableCet in > DisableReadOnlyPageWriteProtect), but normal smi stack will be > continue updated with the function return and enter > (DisableReadOnlyPageWriteProtect & EnableReadOnlyPageWriteProtect), > thus

Re: [edk2-devel] [PATCH v1] UefiCpuPkg/PiSmmCpuDxeSmm: Fix CP Exception when CET enable

2023-11-03 Thread Laszlo Ersek
On 11/3/23 13:14, Wu, Jiaxin wrote: > Shadow stack will stop update after CET disable (DisableCet in > DisableReadOnlyPageWriteProtect), but normal smi stack will be > continue updated with the function return and enter > (DisableReadOnlyPageWriteProtect & EnableReadOnlyPageWriteProtect), > thus

Re: [edk2-devel] [PATCH v4 8/8] ReadMe.rst: Add CodeQL/analyze directory under other licenses

2023-11-03 Thread Laszlo Ersek
On 11/3/23 15:16, Michael Kubacki wrote: > On 11/3/2023 9:06 AM, Laszlo Ersek wrote: >> On 11/2/23 21:03, Michael Kubacki wrote: >>> From: Michael Kubacki >>> >>> The code in this directory is licensed under Apache License, Version >>> 2.0. Therefore, the directory is listed under paths with

Re: [edk2-devel] [PATCH] UefiCpuPkg/PiSmmCpuDxeSmm: Clear CR4.CET before restoring MSR IA32_S_CET

2023-11-03 Thread Laszlo Ersek
On 11/3/23 06:35, Sheng Wei wrote: > Clear CR4.CET bit before restoring MSR IA32_S_CET. > Backup/restore MSR IA32_U_CET in SMI. > Use current CR4 value when changing CR4.CET. (1) Why? (It's fine if you can provide a reference from the Intel SDM, but then please do provide it.) No problem has

Re: [edk2-devel] [PATCH v1] UefiCpuPkg/PiSmmCpuDxeSmm: Fix CP Exception when CET enable

2023-11-03 Thread Laszlo Ersek
On 11/3/23 15:10, Wu, Jiaxin wrote: > Hi Laszlo, > > Thanks the feedback. > >> >> Is this somehow related to >> >> [edk2-devel] [PATCH] UefiCpuPkg/PiSmmCpuDxeSmm: Clear CR4.CET before >> restoring MSR IA32_S_CET >> >> at >> >> https://edk2.groups.io/g/devel/message/110605 >> >> ? >> >> I'm

Re: [edk2-devel] [PATCH v4 8/8] ReadMe.rst: Add CodeQL/analyze directory under other licenses

2023-11-03 Thread Michael Kubacki
On 11/3/2023 9:06 AM, Laszlo Ersek wrote: On 11/2/23 21:03, Michael Kubacki wrote: From: Michael Kubacki The code in this directory is licensed under Apache License, Version 2.0. Therefore, the directory is listed under paths with licenses other than BSD-2-Clause Plus Patent. The directory

[edk2-devel] Bitbucket mirror stopped updating in March 2022

2023-11-03 Thread Rebecca Cran
I just noticed the Bitbucket mirror that's listed in Maintainers.txt hasn't had any new commits since March 2022. EDK II -- W: http://www.tianocore.org/edk2/ L: https://edk2.groups.io/g/devel/ T: git - https://github.com/tianocore/edk2.git T: git (mirror) -

[edk2-devel] [PATCH v1 7/7] UefiCpuPkg/PiSmmCpuDxeSmm: Consume SmmCpuSyncLib

2023-11-03 Thread Wu, Jiaxin
There is the SmmCpuSyncLib Library class define the SMM CPU sync flow, which is aligned with existing SMM CPU driver sync behavior. This patch is to consume SmmCpuSyncLib instance directly. With this change, SMM CPU Sync flow/logic can be customized with different implementation no matter for any

[edk2-devel] [PATCH v1 2/7] UefiCpuPkg/PiSmmCpuDxeSmm: Reduce times of BSP and AP Sync for SMM Exit

2023-11-03 Thread Wu, Jiaxin
After review, there are unnecessary steps for BSP and AP sync for SMM exit. This patch is to reduce one round BSP and AP sync so as to improve SMI performance: BSP: WaitForAllAPs <-- AP: ReleaseBsp BSP: ReleaseAllAPs --> AP: WaitForBsp Change-Id: Ic33f42f3daa7ff1847e524d0c3d9cd4fcdefa61b Cc: Eric

[edk2-devel] [PATCH v1 3/7] UefiCpuPkg: Adds SmmCpuSyncLib library class

2023-11-03 Thread Wu, Jiaxin
Intel is planning to provide different SMM CPU Sync implementation along with some specific registers to improve the SMI performance, hence need SmmCpuSyncLib Library for Intel. This patch is to: 1.Adds SmmCpuSyncLib Library class in UefiCpuPkg.dec. 2.Adds SmmCpuSyncLib.h function declaration

[edk2-devel] [PATCH v1 0/7] Refine SMM CPU Sync flow and abstract SmmCpuSyncLib

2023-11-03 Thread Wu, Jiaxin
The series patches are to refine SMM CPU Sync flow. After the refinement, it's easy to abstract SmmCpuSyncLib for any user to provide different SMM CPU Sync implementation. Cc: Eric Dong Cc: Ray Ni Cc: Zeng Star Cc: Gerd Hoffmann Cc: Rahul Kumar Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan

[edk2-devel] [PATCH v1 1/7] UefiCpuPkg/PiSmmCpuDxeSmm: Optimize Semaphore Sync between BSP and AP

2023-11-03 Thread Wu, Jiaxin
This patch is to define 3 new functions (WaitForBsp & ReleaseBsp & ReleaseOneAp) used for the semaphore sync between BSP & AP. With the change, BSP and AP Sync flow will be easy understand as below: BSP: ReleaseAllAPs or ReleaseOneAp --> AP: WaitForBsp BSP: WaitForAllAPs <-- AP:

[edk2-devel] [PATCH v1 4/7] UefiCpuPkg: Implements SmmCpuSyncLib library instance

2023-11-03 Thread Wu, Jiaxin
Implements SmmCpuSyncLib Library class. The instance follows the existing SMM CPU driver (PiSmmCpuDxeSmm) sync implementation: 1.Abstract Counter and Run semaphores into SmmCpuSyncCtx. 2.Abstract CPU arrival count operation to SmmCpuSyncGetArrivedCpuCount(), SmmCpuSyncCheckInCpu(),

[edk2-devel] [PATCH v1 5/7] OvmfPkg: Specifies SmmCpuSyncLib instance

2023-11-03 Thread Wu, Jiaxin
The SmmCpuSyncLib instance is included in UefiCpuLibs.dsc.inc. This patch is to specify SmmCpuSyncLib instance in OvmfPkg by using "!include UefiCpuPkg/UefiCpuLibs.dsc.inc". Change-Id: I2ab1737425e26a7bfc4f564b3b7f15ca5c2268fb Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Eric Dong

[edk2-devel] [PATCH v1 6/7] UefiPayloadPkg: Specifies SmmCpuSyncLib instance

2023-11-03 Thread Wu, Jiaxin
The SmmCpuSyncLib instance is included in UefiCpuLibs.dsc.inc. This patch is to specify SmmCpuSyncLib instance in UefiPayloadPkg by using "!include UefiCpuPkg/UefiCpuLibs.dsc.inc". Change-Id: Ib303a9cdf260ac1ffc146e5f2e68834dec00ff25 Cc: Guo Dong Cc: Sean Rhodes Cc: James Lu Cc: Gua Guo Cc:

[edk2-devel] [PATCH v1] UefiCpuPkg/PiSmmCpuDxeSmm: Fix CP Exception when CET enable

2023-11-03 Thread Wu, Jiaxin
Shadow stack will stop update after CET disable (DisableCet in DisableReadOnlyPageWriteProtect), but normal smi stack will be continue updated with the function return and enter (DisableReadOnlyPageWriteProtect & EnableReadOnlyPageWriteProtect), thus leading stack mismatch after CET re-enabled

Re: [edk2-devel] [PATCH v1] UefiCpuPkg/PiSmmCpuDxeSmm: Fix CP Exception when CET enable

2023-11-03 Thread Wu, Jiaxin
Hi Laszlo, Thanks the feedback. > > Is this somehow related to > > [edk2-devel] [PATCH] UefiCpuPkg/PiSmmCpuDxeSmm: Clear CR4.CET before > restoring MSR IA32_S_CET > > at > > https://edk2.groups.io/g/devel/message/110605 > > ? > > I'm not familiar with control flow integrity, but both

Re: [edk2-devel] [PATCH 1/1] BaseTools: Update PatchCheck.py to allow whitespace issues in .rtf files

2023-11-03 Thread Rebecca Cran
Liming, could you review this please? It's blocking another patch from being committed. -- Rebecca On 11/1/2023 6:20 PM, Rebecca Cran wrote: Allow .rtf files created by applications such as Notepad to be committed as-is without further manual editing by skipping the requirements for CRLF, no

Re: [edk2-devel] Bitbucket mirror stopped updating in March 2022

2023-11-03 Thread Rebecca Cran
On 11/3/2023 9:00 AM, Laszlo Ersek wrote: This repo link originally goes back to commit 4202afa45dea ("EDK II: Add Maintainers.txt file", 2014-10-14). Therefore I *guess* the mirror was set up by Jordan. Can we ask (or query) bitbucket.org how many "clone" commands it has serviced? My gut

Re: [edk2-devel] [PATCH v4 8/8] ReadMe.rst: Add CodeQL/analyze directory under other licenses

2023-11-03 Thread Michael Kubacki
On 11/3/2023 10:46 AM, Laszlo Ersek wrote: On 11/3/23 15:16, Michael Kubacki wrote: On 11/3/2023 9:06 AM, Laszlo Ersek wrote: On 11/2/23 21:03, Michael Kubacki wrote: From: Michael Kubacki The code in this directory is licensed under Apache License, Version 2.0. Therefore, the directory is

Re: [edk2-devel] [PATCH v1] OvmfPkg/PlatformInitLib: Don't override user specified PciMmio64Size

2023-11-03 Thread Laszlo Ersek
On 11/3/23 14:15, Laszlo Ersek wrote: > On 11/3/23 06:15, Vivek Kasireddy wrote: >> If the user specified a size for the PCI MMIO window via the option: >> -fw_cfg name=opt/ovmf/X-PciMmio64Mb,string=32768 >> then this patch ensures that the mmio window is not resized again. >> >> Essentially, this

Re: [edk2-devel] [PATCH v4 8/8] ReadMe.rst: Add CodeQL/analyze directory under other licenses

2023-11-03 Thread Laszlo Ersek
On 11/3/23 15:46, Laszlo Ersek wrote: > Given that that is not the case, just apply my R-b. :) > I don't object to any of the v4 patches getting merged as posted. To clarify: - for patches 1 through 7: Acked-by: Laszlo Ersek - for patch 8: Reviewed-by: Laszlo Ersek Thanks for your

Re: [edk2-devel] Bitbucket mirror stopped updating in March 2022

2023-11-03 Thread Laszlo Ersek
On 11/3/23 15:49, Rebecca Cran wrote: > I just noticed the Bitbucket mirror that's listed in Maintainers.txt > hasn't had any new commits since March 2022. > > > EDK II > -- > W: http://www.tianocore.org/edk2/ > L: https://edk2.groups.io/g/devel/ > T: git -

Re: [edk2-devel] [PATCH v2] RedfishPkg: RedfishDiscoverDxe: Fix issue if IPv4 installed after RestEx

2023-11-03 Thread Mike Maslenkin
On Wed, Nov 1, 2023 at 11:17 PM Igor Kulchytskyy wrote: > > Supported function of the driver changed to wait for all newtwork > interface to be installed. > Filer out the network interfaces which are not supported by > Redfish Host Interface. > > Cc: Abner Chang > Cc: Nickle Wang > Cc: Mike

[edk2-devel] [PATCH v4 04/14] OvmfPkg: Add ImagePropertiesRecordLib Instance

2023-11-03 Thread Taylor Beebe
Add an instance of ImagePropertiesRecordLib which will be used by the DXE Core. Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Signed-off-by: Taylor Beebe Reviewed-by: Michael D Kinney Acked-by: Jiewen Yao --- OvmfPkg/AmdSev/AmdSevX64.dsc| 1 +

[edk2-devel] [PATCH v4 06/14] MdeModulePkg: Update MemoryAttributesTable.c to Reduce Global Variable Use

2023-11-03 Thread Taylor Beebe
This patch updates MemoryAttributesTable.c to reduce reliance on global variables and allow some logic to move to a library. Cc: Jian J Wang Cc: Liming Gao Cc: Dandan Bi Signed-off-by: Taylor Beebe Reviewed-by: Liming Gao --- MdeModulePkg/Core/Dxe/Misc/MemoryAttributesTable.c | 102

[edk2-devel] [PATCH v4 00/14] Add ImagePropertiesRecordLib and Fix MAT Bugs

2023-11-03 Thread Taylor Beebe
v4: - Expose additional functions in the Library API - Add NULL checks to library functions and return a status where applicable. v3: - Refactor patch series so the transition of logic from the DXE MAT logic to the new library is more clear. - Update function headers to improve clarity and

[edk2-devel] [PATCH v4 08/14] MdeModulePkg: Add ImagePropertiesRecordLib Host-Based Unit Test

2023-11-03 Thread Taylor Beebe
Create a host-based unit test for the ImagePropertiesRecordLib SplitTable() logic. This test has 4 cases which tests different potential image and memory map layouts. 3/4 of these tests fail with the logic in its current state to provide proof of the bugs in the current MAT logic. Cc: Jian J Wang

[edk2-devel] [PATCH v4 09/14] MdeModulePkg: Fix Bugs in MAT Logic

2023-11-03 Thread Taylor Beebe
Fix the bugs in the MAT logic before switching the UEFI and SMM MAT logic to use the new library. Cc: Jian J Wang Cc: Liming Gao Cc: Dandan Bi Signed-off-by: Taylor Beebe Reviewed-by: Liming Gao --- MdeModulePkg/Core/Dxe/Misc/MemoryAttributesTable.c | 2 +-

[edk2-devel] [PATCH v4 07/14] MdeModulePkg: Move Some DXE MAT Logic to ImagePropertiesRecordLib

2023-11-03 Thread Taylor Beebe
Move some DXE MAT logic to ImagePropertiesRecordLib to consolidate code and enable unit testability. Cc: Jian J Wang Cc: Liming Gao Cc: Dandan Bi Signed-off-by: Taylor Beebe Reviewed-by: Liming Gao --- MdeModulePkg/Core/Dxe/Misc/MemoryAttributesTable.c | 774

[edk2-devel] [PATCH v4 10/14] MdeModulePkg: Add NULL checks and Return Status to ImagePropertiesRecordLib

2023-11-03 Thread Taylor Beebe
Update function headers to clarify the contract of each function and improve readability. Add NULL checks to all functions that take a pointer as an argument. Add return status to functions that may need to return early due to invalid input. Cc: Jian J Wang Cc: Liming Gao Cc: Dandan Bi

[edk2-devel] [PATCH v4 11/14] UefiCpuPkg: Use Attribute From SMM MemoryAttributesTable if Nonzero

2023-11-03 Thread Taylor Beebe
The function EnforceMemoryMapAttribute() in the SMM MAT logic will ensure that the CODE and DATA memory types have the desired attributes. The consumer of the SMM MAT should only override the Attributes field in the MAT if it is nonzero. This also allows the UEFI and SMM MAT logic to use

[edk2-devel] [PATCH v4 12/14] MdeModulePkg: Transition SMM MAT Logic to Use ImagePropertiesRecordLib

2023-11-03 Thread Taylor Beebe
Now that the bugs are fixed in the MAT logic, we can remove the duplicate logic from PiSmmCore/MemoryAttributesTable.c and use ImagePropertiesRecordLib instead. Cc: Jian J Wang Cc: Liming Gao Cc: Dandan Bi Cc: Jiaxin Wu Cc: Ray Ni Signed-off-by: Taylor Beebe Reviewed-by: Liming Gao ---

[edk2-devel] [PATCH v4 05/14] UefiPayloadPkg: Add ImagePropertiesRecordLib Instance

2023-11-03 Thread Taylor Beebe
Add an instance of ImagePropertiesRecordLib which will be used by the DXE Core. Cc: Guo Dong Cc: Sean Rhodes Cc: James Lu Cc: Gua Guo Signed-off-by: Taylor Beebe Reviewed-by: Michael D Kinney Reviewed-by: Gua Guo --- UefiPayloadPkg/UefiPayloadPkg.dsc | 1 + 1 file changed, 1 insertion(+)

[edk2-devel] [PATCH v4 13/14] MdeModulePkg: Add Logic to Create/Delete Image Properties Records

2023-11-03 Thread Taylor Beebe
Add logic to create and delete image properties records. Where applicable, redirect existing code to use the new library. Cc: Jian J Wang Cc: Liming Gao Cc: Dandan Bi Cc: Jiaxin Wu Cc: Ray Ni Signed-off-by: Taylor Beebe Reviewed-by: Liming Gao ---

[edk2-devel] [PATCH v4 14/14] MdeModulePkg: Update DumpImageRecord() in ImagePropertiesRecordLib

2023-11-03 Thread Taylor Beebe
Update DumpImageRecord() to be DumpImageRecords(), and improve the debug output. The function will output at DEBUG_INFO instead, and the function will be run in DXE and SMM MAT logic when the MAT is installed at EndOfDxe on DEBUG builds. Cc: Jian J Wang Cc: Liming Gao Cc: Dandan Bi Cc: Jiaxin

[edk2-devel] [PATCH v4 01/14] MdeModulePkg: Add ImagePropertiesRecordLib

2023-11-03 Thread Taylor Beebe
Create a library for manipulating image properties records. The library is currently blank and will be filled in a future patch to help with reviewer readability. Cc: Jian J Wang Cc: Liming Gao Cc: Dandan Bi Signed-off-by: Taylor Beebe Reviewed-by: Liming Gao ---

[edk2-devel] [PATCH v4 02/14] ArmVirtPkg: Add ImagePropertiesRecordLib Instance

2023-11-03 Thread Taylor Beebe
Add an instance of ImagePropertiesRecordLib which will be used by the DXE Core. Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Sami Mujawar Cc: Gerd Hoffmann Signed-off-by: Taylor Beebe Reviewed-by: Michael D Kinney --- ArmVirtPkg/ArmVirt.dsc.inc | 1 + 1 file changed, 1 insertion(+) diff --git

[edk2-devel] [PATCH v4 03/14] EmulatorPkg: Add ImagePropertiesRecordLib Instance

2023-11-03 Thread Taylor Beebe
Add an instance of ImagePropertiesRecordLib which will be used by the DXE Core. Cc: Andrew Fish Cc: Ray Ni Signed-off-by: Taylor Beebe Reviewed-by: Michael D Kinney --- EmulatorPkg/EmulatorPkg.dsc | 1 + 1 file changed, 1 insertion(+) diff --git a/EmulatorPkg/EmulatorPkg.dsc

Re: [edk2-devel] [PATCH] MdeModulePkg/PciHostBridgeDxe: Add readback after final Cfg-Write

2023-11-03 Thread Michael D Kinney
> -Original Message- > From: devel@edk2.groups.io On Behalf Of Laszlo > Ersek > Sent: Friday, November 3, 2023 12:19 AM > To: devel@edk2.groups.io; jlo...@gmail.com > Cc: Leif Lindholm ; Ard Biesheuvel > ; Sami Mujawar ; > Wang, Jian J ; Gao, Liming > ; Wu, Hao A ; Ni, Ray > ; Pedro

Re: [edk2-devel] [PATCH v2] RedfishPkg: RedfishDiscoverDxe: Fix issue if IPv4 installed after RestEx

2023-11-03 Thread Igor Kulchytskyy via groups.io
Hi Mike, You are absolutely right. I moved that NetworkInterfaceGetSubnetInfo function up, not copied it. But somehow it was copied. My mistake. I will fix it and resubmit. Thank you, Igor -Original Message- From: Mike Maslenkin Sent: Friday, November 3, 2023 11:54 AM To: Igor

Re: [edk2-devel] [PATCH] MdeModulePkg/PciHostBridgeDxe: Add readback after final Cfg-Write

2023-11-03 Thread Michael Brown
On 03/11/2023 16:03, Kinney, Michael D wrote: PCI Configuration read/write operations are non-posted, so the PCI Configuration write operation should complete without the need for an additional transaction. If you are seeing an issue, then it may be in the implementation of the

[edk2-devel] [PATCH 1/1] BaseTools/tools_def: drop -mgeneral-regs-only for AArch64 CLANGDWARF

2023-11-03 Thread Yeping Song
Commit 0df6c8c157af9 ("BaseTools/tools_def AARCH64: avoid SIMD registers in XIP code") adds -mgeneral-regs-only to GCC_AARCH64_CC_XIPFLAGS, in order to avoid a bug present in certain versions of GCC. This was never a problem for clang. That's given the history of what the problem is. Then we can

Re: [edk2-devel] [PATCH] IntelFsp2Pkg/SwitchStack: Reserve 32B when calling C function in 64bit

2023-11-03 Thread Nate DeSimone
Good catch! Reviewed-by: Nate DeSimone -Original Message- From: devel@edk2.groups.io On Behalf Of Ni, Ray Sent: Tuesday, October 31, 2023 1:22 AM To: devel@edk2.groups.io Cc: Chiu, Chasel Subject: [edk2-devel] [PATCH] IntelFsp2Pkg/SwitchStack: Reserve 32B when calling C function in

Re: [edk2-devel] [PATCH v1] UefiCpuPkg/PiSmmCpuDxeSmm: Fix CP Exception when CET enable

2023-11-03 Thread Wu, Jiaxin
Hi Laszlo, Thanks comments. > > I have two comments: > > > (1) both the pre-patch code and the post-patch code have several > instances of the following pattern: > > Boolean = (Expression != 0) ? TRUE : FALSE; > > This is an anti-pattern. It should only be: > > Boolean = Expression !=

[edk2-devel] [PATCH v2] UefiCpuPkg/PiSmmCpuDxeSmm: Fix CP Exception when CET enable

2023-11-03 Thread Wu, Jiaxin
Shadow stack will stop update after CET disable (DisableCet in DisableReadOnlyPageWriteProtect), but normal smi stack will be continue updated with the function return and enter (DisableReadOnlyPageWriteProtect & EnableReadOnlyPageWriteProtect), thus leading stack mismatch after CET re-enabled

Re: [edk2-devel] [PATCH edk2-platforms v2 0/4] IpmiFeaturePkg: Add server management features

2023-11-03 Thread Nate DeSimone
The series has been pushed as 0cedeab~..6d60278 -Original Message- From: devel@edk2.groups.io On Behalf Of Zhen Gong Sent: Sunday, October 29, 2023 1:28 PM To: devel@edk2.groups.io Cc: Gong, Zhen Subject: [edk2-devel] [PATCH edk2-platforms v2 0/4] IpmiFeaturePkg: Add server management