diff options
author | Michael Walle <michael@walle.cc> | 2021-11-01 01:21:56 +0300 |
---|---|---|
committer | Priyanka Jain <priyanka.jain@nxp.com> | 2021-11-09 14:48:23 +0300 |
commit | cdf8534b8a01fd894fcc24f404e1feb5c51d95b2 (patch) | |
tree | 1e33a8bf4ce41d806d642b6eaec64bd7d3440395 /board/kontron/sl28/MAINTAINERS | |
parent | 12d2b42a054f419184386012b14845e2c05f2c86 (diff) | |
download | u-boot-cdf8534b8a01fd894fcc24f404e1feb5c51d95b2.tar.xz |
armv8: layerscape: use memalign() to allocate spintable code
Don't use efi_allocate_pages(). The allocated memory isn't carved out of
the lmb allocations. The memory might then be allocated twice.
Particulary, this might happened with the fdt_high/initrd_high feature
which will relocate the fdt/ramdisk. This might then overlap with the
spin table.
Instead use memalign() which allocates on memory on the heap which is
correctly carved out by lmb.
Please note, that the memory is later reserved in the device tree as
well as in the EFI memory map in ft_fixup_cpu() (in
arch/arm/cpu/armv8/fsl-layerscape/fdt.c).
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'board/kontron/sl28/MAINTAINERS')
0 files changed, 0 insertions, 0 deletions