MIPS: boot/compressed: Copy DTB to aligned address
authorPaul Cercueil <paul@crapouillou.net>
Wed, 3 Mar 2021 19:33:05 +0000 (19:33 +0000)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 8 Mar 2021 10:49:47 +0000 (11:49 +0100)
commit7a05293af39fc716d0f51c0164cbb727302396a2
tree31bd8b819760d7b72bdd090a4ab3ec6de3342fff
parenta38fd8748464831584a19438cbb3082b5a2dab15
MIPS: boot/compressed: Copy DTB to aligned address

Since 5.12-rc1, the Device Tree blob must now be properly aligned.

Therefore, the decompress routine must be careful to copy the blob at
the next aligned address after the kernel image.

This commit fixes the kernel sometimes not booting with a Device Tree
blob appended to it.

Fixes: 79edff12060f ("scripts/dtc: Update to upstream version v1.6.0-51-g183df9e9c2b9")
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/compressed/decompress.c
arch/mips/kernel/vmlinux.lds.S