You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests of users suggest that correctable bit-flips in SPI-NAND connected via SNFI on MT7622 do not get corrected when reading FIP in BL2. This hints that the BCH/ECC engine is not setup correctly by the driver in ARM TrustedFirmware-A while the exact same drivers works fine in U-Boot.
@hackpascal@onlyfly34 It has been confirmed that this is a regression introduced somewhere between TF-A v2.4 and v2.9. The dirver in TF-A v2.4 does correct all bitflips, while in TF-A v2.9 is doesn't.
dangowrt
added a commit
to dangowrt/arm-trusted-firmware
that referenced
this issue
Aug 11, 2024
dangowrt
changed the title
BCH not correcting bit-flips on SPI-NAND flash connected via SNFI
bit-flips on SPI-NAND flash connected via SNFI result in abort and fatal error
Aug 21, 2024
Tests of users suggest that correctable bit-flips in SPI-NAND connected via SNFI on MT7622 do not get corrected when reading FIP in BL2. This hints that the BCH/ECC engine is not setup correctly by the driver in ARM TrustedFirmware-A while the exact same drivers works fine in U-Boot.
Maybe
mtk_ecc_setup()
is broken or not acting correctly, also becausehttps://github.com/mtk-openwrt/arm-trusted-firmware/blob/mtksoc/plat/mediatek/apsoc_common/drivers/snfi/mtk-snand-ecc.c#L166
is dead code (
i
is unsigned and hence can never be< 0
).The text was updated successfully, but these errors were encountered: