diff options
author | Rabara Niravkumar L <[email protected]> | 2022-03-05 09:41:18 +0800 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2022-03-16 09:56:39 +0100 |
commit | e1bca853dddcb57cbf084acbf35e3654cef6fc75 (patch) | |
tree | f72231843fdc138fb9c6cb261e5775bb0482ee05 /lib/test_fortify/write_overflow-memcpy.c | |
parent | b0596da1a019c092ca5ab64d6999f5e28d52865e (diff) |
EDAC/altera: Add SDRAM ECC check for U-Boot
A bug in legacy U-Boot causes a crash during SDRAM boot if ECC is not
enabled in the bitstream but enabled in the Linux config.
Memory mapped read of the ECC Enabled bit was only enabled if U-Boot
determined ECC was enabled in the bitstream.
The Linux driver checks the ECC enable bit using a memory map read.
In the ECC disabled bitstream case, U-Boot didn't enable ECC register
memory map reads and since they are not allowed this results in a crash.
Always read the ECC Enable register through a SMC call which is always
allowed and it works with legacy and current U-Boot.
[ bp: Massage commit message. ]
Signed-off-by: Rabara Niravkumar L <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Acked-by: Dinh Nguyen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions