Skip to content

Commit 220f535

Browse files
Vineet Guptaczankel
authored andcommitted
xtensa: Flat DeviceTree copy not future-safe
flat DT copy code calls bootmem allocator with @align = 0. This is probably OK with legacy allocator which xtensa uses right now, but this will panic right away with memblock allocator Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Cc: Chris Zankel <chris@zankel.net> Cc: Max Filippov <jcmvbkbc@gmail.com> Cc: Marc Gauthier <marc@tensilica.com> Cc: linux-xtensa@linux-xtensa.org Cc: linux-kernel@vger.kernel.org Acked-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Chris Zankel <chris@zankel.net>
1 parent a99e07e commit 220f535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/xtensa/kernel/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ void __init early_init_devtree(void *params)
256256
static void __init copy_devtree(void)
257257
{
258258
void *alloc = early_init_dt_alloc_memory_arch(
259-
be32_to_cpu(initial_boot_params->totalsize), 0);
259+
be32_to_cpu(initial_boot_params->totalsize), 8);
260260
if (alloc) {
261261
memcpy(alloc, initial_boot_params,
262262
be32_to_cpu(initial_boot_params->totalsize));

0 commit comments

Comments
 (0)