]> Git Repo - linux.git/commitdiff
MIPS: Malta: fix alignment of the devicetree buffer
authorOleksij Rempel <[email protected]>
Thu, 2 Sep 2021 07:19:51 +0000 (09:19 +0200)
committerThomas Bogendoerfer <[email protected]>
Thu, 2 Sep 2021 08:18:26 +0000 (10:18 +0200)
Starting with following patch MIPS Malta is not able to boot:
| commit 79edff12060fe7772af08607eff50c0e2486c5ba
| Author: Rob Herring <[email protected]>
| scripts/dtc: Update to upstream version v1.6.0-51-g183df9e9c2b9

The reason is the alignment test added to the fdt_ro_probe_(). To fix
this issue, we need to make sure that fdt_buf is aligned.

Since the dtc patch was designed to uncover potential issue, I handle
initial MIPS Malta patch as initial bug.

Fixes: e81a8c7dabac ("MIPS: Malta: Setup RAM regions via DT")
Signed-off-by: Oleksij Rempel <[email protected]>
Signed-off-by: Thomas Bogendoerfer <[email protected]>
arch/mips/mti-malta/malta-dtshim.c

index 0ddf03df626881d34293e7aea7bd8cd73a32f646..f451268f6c384cb2282f15324e7dc815a4a3780b 100644 (file)
@@ -22,7 +22,7 @@
 #define  ROCIT_CONFIG_GEN1_MEMMAP_SHIFT        8
 #define  ROCIT_CONFIG_GEN1_MEMMAP_MASK (0xf << 8)
 
-static unsigned char fdt_buf[16 << 10] __initdata;
+static unsigned char fdt_buf[16 << 10] __initdata __aligned(8);
 
 /* determined physical memory size, not overridden by command line args         */
 extern unsigned long physical_memsize;
This page took 0.053122 seconds and 4 git commands to generate.