commit | 2d2f1559ca170a5c918af698b2f29c8c3aaac088 | [log] [tgz] |
---|---|---|
author | Reuben Dowle <reuben.dowle@4rf.com> | Tue Sep 01 21:32:01 2020 +0000 |
committer | Tom Rini <trini@konsulko.com> | Fri Sep 11 17:13:56 2020 -0400 |
tree | 93782078ccf62a0559a5b152171bb7ece6f5a717 | |
parent | 63a95ab408cc9aa78d06056a8447f8a5cd1bfce5 [diff] |
Fix data abort caused by mis-aligning FIT data Attempting to place device tree immediately after an image in memory can lead to mis-aligned data accesses if that image size is not divisible by the alignment requirements of the architecture. Data aborts caused by this were observed on a custom Marvel A388 based system, where the image was a uboot FIT file. The total size varies depending on the uboot device tree size, which does not always lead to correct alignment. The minimum alignment specified for ARM [1] and ARM64 [2] linux booting has been used [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/arm/booting.rst#n126 [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/arm64/booting.rst#n45 Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>