Re: [edk2-devel] [PATCH] UefiPayloadPkg: Add macro to enable selection of timer

2024-01-04 Thread Ma, Hua
Add maintainers to help review the patch, thank you, Ma Hua On 1/5/2024 1:38 PM, Ma, Hua wrote: Add macro to enable selection of timer - HPET: UEFI Payload will use HPET timer - LAPIC: UEFI Payload will use local APIC timer Signed-off-by: Hua Ma --- UefiPayloadPkg/UefiPayloadPkg.dsc | 16

[edk2-devel] [PATCH] UefiPayloadPkg: Add macro to enable selection of timer

2024-01-04 Thread Ma, Hua
Add macro to enable selection of timer - HPET: UEFI Payload will use HPET timer - LAPIC: UEFI Payload will use local APIC timer Signed-off-by: Hua Ma --- UefiPayloadPkg/UefiPayloadPkg.dsc | 16 UefiPayloadPkg/UefiPayloadPkg.fdf | 4 2 files changed, 20 insertions(+) dif

[edk2-devel] [PATCH v2] MdeModulePkg: Add a check for metadata size in NvmExpress Driver

2022-03-02 Thread Ma, Hua
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3856 Currently this NvmeExpress Driver do not support metadata handling. According to the NVME specs, metadata may be transferred to the host after the logical block data. It can overrun the input buffer which may only be the size of logical bloc

[edk2-devel] [PATCH v1] MdeModulePkg: Add a check for metadata size in NvmExpress Driver

2022-03-02 Thread Ma, Hua
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3856 Currently this NvmeExpress Driver do not support metadata handling. According to the NVME specs, metadata may be transferred to the host after the logical block data. It can overrun the input buffer which may only be the size of logical bloc

Re: [edk2-devel] [PATCH v2] MdeModulePkg/Core/Dxe: Acquire a lock when iterating gHandleList

2021-10-13 Thread Ma, Hua
Hi Jian, Thanks for the comment. Patch v3 is just sent with the update. Please help to review. Thank you, Ma Hua > -Original Message- > From: Wang, Jian J > Sent: Wednesday, October 13, 2021 12:26 PM > To: Ma, Hua ; devel@edk2.groups.io > Cc: Liming Gao ; Bi, Dan

[edk2-devel] [PATCH v3] MdeModulePkg/Core/Dxe: Acquire a lock when iterating gHandleList

2021-10-13 Thread Ma, Hua
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3680 This patch fixes the following issue: The global variable gHandleList is a linked list. This list is locked when a entry is added or removed from the list, but there is no lock when iterating this list in function CoreValidateHandle(). It c

Re: [edk2-devel] [PATCH] MdeModulePkg/Core/Dxe: Acquire a lock when iterating gHandleList

2021-10-12 Thread Ma, Hua
Hi Dandan, Thanks for the comment. Patch v2 is just sent with the update. Please help to review. Thank you, Ma Hua > -Original Message- > From: Bi, Dandan > Sent: Tuesday, October 12, 2021 12:13 PM > To: Ma, Hua ; devel@edk2.groups.io > Cc: Wang, Jian J ; Liming

[edk2-devel] [PATCH v2] MdeModulePkg/Core/Dxe: Acquire a lock when iterating gHandleList

2021-10-12 Thread Ma, Hua
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3680 This patch fixes the following issue: The global variable gHandleList is a linked list. This list is locked when a entry is added or removed from the list, but there is no lock when iterating this list in function CoreValidateHandle(). It c

Re: [edk2-devel] [PATCH] MdeModulePkg/Core/Dxe: Acquire a lock when iterating gHandleList

2021-10-11 Thread Ma, Hua
> -Original Message- > From: Michael Brown > Sent: Monday, October 11, 2021 7:28 PM > To: devel@edk2.groups.io; Ma, Hua > Cc: Wang, Jian J ; Liming Gao > ; Bi, Dandan ; Ni, Ray > > Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/Core/Dxe: Acquire a lock >

[edk2-devel] [PATCH] MdeModulePkg/Core/Dxe: Acquire a lock when iterating gHandleList

2021-10-11 Thread Ma, Hua
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3680 This patch fixes the following issue: The global variable gHandleList is a linked list. This list is locked when a entry is added or removed from the list, but there is no lock when iterating this list in function CoreValidateHandle(). It c

[edk2-devel] [PATCH] MdeModulePkg/Core/Dxe: Add lock protection in CoreLocateHandleBuffer()

2021-09-29 Thread Ma, Hua
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3666 Currently, CoreLocateHandleBuffer() follows three steps: 1) get the size of protocol database firstly 2) allocate the buffer based on the size 3) get the protocol database into the buffer There is no lock protection for the whole three steps