This is a little series containing the flash corruption fix sent yesterday with an slightly improved commit message and some small improvements on top of this.
v2: - drop broken bugfix, fix the bug when introducing Start+End variables instead. - add patch with UINTN and UINT32 casts. - add patch splitting the DoErase code path into a new function. - add the diagram sent by Laszlo. Gerd Hoffmann (6): OvmfPkg/VirtNorFlashDxe: add casts to UINTN and UINT32 OvmfPkg/VirtNorFlashDxe: clarify block write logic & fix shadowbuffer reads OvmfPkg/VirtNorFlashDxe: add a loop for NorFlashWriteBuffer calls. OvmfPkg/VirtNorFlashDxe: allow larger writes without block erase OvmfPkg/VirtNorFlashDxe: ValidateFvHeader: unwritten state is EOL too OvmfPkg/VirtNorFlashDxe: move DoErase code block into new function OvmfPkg/VirtNorFlashDxe/VirtNorFlash.h | 2 +- OvmfPkg/VirtNorFlashDxe/VirtNorFlash.c | 144 ++++++++++++++-------- OvmfPkg/VirtNorFlashDxe/VirtNorFlashFvb.c | 5 + 3 files changed, 99 insertions(+), 52 deletions(-) -- 2.43.0 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113827): https://edk2.groups.io/g/devel/message/113827 Mute This Topic: https://groups.io/mt/103741661/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-