Skip to content

Conversation

@gmahadevan
Copy link
Contributor

@gmahadevan gmahadevan commented Dec 17, 2024

Fixes to the Variable Store Integrity feature. The fixes are to the way the code handles traversing blocks in the Flash device.
The fixes address boot failures with this crash signature:

ASSERT [FvbNorFlashStandaloneMm] /out/nvidia/optee_ftpm.t234-uefi/StandaloneMmOptee_RELEASE/edk2-nvidia/Silicon/NVIDIA/Drivers/FvbNorFlashDxe/FvbNorFlashStandaloneMm.c(937): ((BOOLEAN)(0==1))

When the write pointer moves to write a new record, it
takes care not to straddle erase blocks; when reading back
account for this.
Fix a memory leak in the NvVarIntLibrary.

Bug 4788402
Change-Id: I5ff718c066860ca9f20a7bfa4a006b57405f1911
Signed-off-by: Girish Mahadevan <[email protected]>
Reviewed-on: https://git-master.nvidia.com/r/c/tegra/bootloader/uefi/edk2-nvidia/+/3244202
Reviewed-by: svcacv <[email protected]>
Reviewed-by: Ashish Singhal <[email protected]>
GVS: buildbot_gerritrpt <[email protected]>
Reviewed-by: svc-sw-mobile-l4t <[email protected]>
When figuring out the LBA for the current block we accidentally
used the partition offset and not the block size.

Change-Id: I9d0cb3f38694663b832a3d34bd8dbcf9d73096f2
Signed-off-by: Girish Mahadevan <[email protected]>
@gmahadevan gmahadevan changed the title Varint readfix rel36 Varint readfix r36.4.0 Dec 17, 2024
@AlexKlimaj
Copy link

Hello, when will this be merged? Do you have pre-compiled binaries to install? I am unable to get the firmware building using the docker instructions.

@gmahadevan
Copy link
Contributor Author

gmahadevan commented Feb 5, 2025 via email

@AlexKlimaj
Copy link

We have updated to 36.4.3 and so far have not seen the SPI read issue.

@eligavril
Copy link

Hi,

When will this fix be merged to r36.4.4-updates? Or to main branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants