Thread (4 messages) 4 messages, 4 authors, 2013-07-01

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

From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: 2013-07-01 07:48:43
Also in: linux-arm-kernel, linux-devicetree, linux-mips

Possibly related (same subject, not in this thread)

On 06/29/2013 01:43 AM, Santosh Shilimkar wrote:
Sebastian,

Apart from waste of 32bit, what is the other concern you
have ?
You pass a u64 as a physical address which is represented in other
parts of the kernel (for a good reason) by phys_addr_t.
I really want to converge on this patch because it
has been a open ended discussion for quite some time. Does
that really break any thing on x86 or your concern is more
from semantics of the physical address.
You want to have your code in so you can continue with your work, that
is okay. The other two arguments why u64 here is a good thing was "due
to what I said earlier" and "+1" and I don't have the time to look
that up.

There should be no problems on x86 if this goes in as it is now.

But think about this: What happens if you boot your ARM device without
PAE and your initrd is in the upper region? If you are lucky the kernel
looks at a different place where it also has a read permission, notices
nothing sane is there, writes a message and continues. And if it is not
allowed to read? It is clearly the user's fault for booting a non-PAE
kernel.
Thanks for help.

Regards,
Santosh
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