Re: [Qemu-devel] [PATCH 2.4] hw/arm/boot: Increase fdt alignment

2015-07-13 Thread Peter Maydell
On 13 July 2015 at 17:39, Alexander Graf wrote: > Ugh, we don't know the size yet at this point. And calling load_fdt multiple > times feels like a can of worms I don't want to open. So yeah, I'll just > make it depend on the RAM size - if there are >= 128MB RAM in our VM we > align on 2MB. This

Re: [Qemu-devel] [PATCH 2.4] hw/arm/boot: Increase fdt alignment

2015-07-13 Thread Alexander Graf
On 07/13/15 18:27, Peter Maydell wrote: On 13 July 2015 at 17:20, Alexander Graf wrote: On 07/13/15 18:13, Peter Maydell wrote: On 13 July 2015 at 16:56, Alexander Graf wrote: The Linux kernel on aarch64 creates a page table entry at early bootup that spans the 2MB range on memory spanning t

Re: [Qemu-devel] [PATCH 2.4] hw/arm/boot: Increase fdt alignment

2015-07-13 Thread Alexander Graf
On 07/13/15 18:27, Peter Maydell wrote: On 13 July 2015 at 17:20, Alexander Graf wrote: On 07/13/15 18:13, Peter Maydell wrote: On 13 July 2015 at 16:56, Alexander Graf wrote: The Linux kernel on aarch64 creates a page table entry at early bootup that spans the 2MB range on memory spanning t

Re: [Qemu-devel] [PATCH 2.4] hw/arm/boot: Increase fdt alignment

2015-07-13 Thread Peter Maydell
On 13 July 2015 at 17:20, Alexander Graf wrote: > On 07/13/15 18:13, Peter Maydell wrote: >> >> On 13 July 2015 at 16:56, Alexander Graf wrote: >>> >>> The Linux kernel on aarch64 creates a page table entry at early bootup >>> that spans the 2MB range on memory spanning the fdt start address: >>>

Re: [Qemu-devel] [PATCH 2.4] hw/arm/boot: Increase fdt alignment

2015-07-13 Thread Alexander Graf
On 07/13/15 18:13, Peter Maydell wrote: On 13 July 2015 at 16:56, Alexander Graf wrote: The Linux kernel on aarch64 creates a page table entry at early bootup that spans the 2MB range on memory spanning the fdt start address: [ ALIGN_DOWN(fdt, 2MB) ... ALIGN_DOWN(fdt, 2MB) + 2MB ] This mea

Re: [Qemu-devel] [PATCH 2.4] hw/arm/boot: Increase fdt alignment

2015-07-13 Thread Peter Maydell
On 13 July 2015 at 16:56, Alexander Graf wrote: > The Linux kernel on aarch64 creates a page table entry at early bootup > that spans the 2MB range on memory spanning the fdt start address: > > [ ALIGN_DOWN(fdt, 2MB) ... ALIGN_DOWN(fdt, 2MB) + 2MB ] > > This means that when our current 4k alignm

[Qemu-devel] [PATCH 2.4] hw/arm/boot: Increase fdt alignment

2015-07-13 Thread Alexander Graf
The Linux kernel on aarch64 creates a page table entry at early bootup that spans the 2MB range on memory spanning the fdt start address: [ ALIGN_DOWN(fdt, 2MB) ... ALIGN_DOWN(fdt, 2MB) + 2MB ] This means that when our current 4k alignment happens to fall at the end of the aligned region, Linux