Thread (11 messages) flat view 11 messages, 5 authors, 2012-09-13

Re: [PATCH] of: specify initrd location using 64-bit

From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: 2012-09-13 06:48:05
Also in: linux-arm-kernel, linux-mips, linuxppc-dev, lkml

On 09/13/2012 12:08 AM, Rob Herring wrote:
quoted
Geert is right here. If it is a physical address, it should be
phys_addr_t.
While generally true, for the DT specific code I think it should be a
fixed u64. The size of the address is defined by the FDT, not the
kernel. It is very likely we could have a FDT that specifies addresses
in 64-bit values, but then we boot a kernel is compiled for !LPAE.
phys_addr_t is currently sized based on LPAE setting.
If your kernel is 32bit without PAE and your DTB address is >32ibt than
you can't handle it. If you don't notice this in your dt code than you
remap the wrong memory ioremap().
Rob
Sebastian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help