Skip to content

Conversation

@gmahadevan
Copy link
Contributor

@gmahadevan gmahadevan commented Nov 16, 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 <gmahadevan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/tegra/bootloader/uefi/edk2-nvidia/+/3244202
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Ashish Singhal <ashishsingha@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: svc-sw-mobile-l4t <svc-sw-mobile-l4t@nvidia.com>
@gmahadevan gmahadevan changed the base branch from main to r35.6.0-updates November 16, 2024 01:50
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 <gmahadevan@nvidia.com>
@gmahadevan gmahadevan changed the title Varint readfix Varint readfix r35.5.0 Dec 17, 2024
@edt-alex
Copy link

edt-alex commented Aug 1, 2025

Has this been superseded by #103 or #118 and can be closed? Or is this addressing a similar but unique issue?

@MartinHerren
Copy link

Has this been superseded by #103 or #118 and can be closed? Or is this addressing a similar but unique issue?

I don't think so as both #103 and #118 target jetpack 6 branches while this PR targets jetpack 5.

There is the sibling of this PR: #113 that target jetpack 6 that might have been superseeded.

Really unclear whether this has been fixed on jp5, seems still present on BSP 35.6.2 as it looks really as an issue we just had. BSP 35.6.3 still not yet released.

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