All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Mundt <lethal@linux-sh.org>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] sh: Add CONFIG_PARAM_* to set boot parameters.
Date: Tue, 08 Dec 2009 08:18:53 +0000	[thread overview]
Message-ID: <20091208081853.GA25932@linux-sh.org> (raw)
In-Reply-To: <20091130170254.65d2a0ab.yoshii.takashi@renesas.com>

On Tue, Dec 08, 2009 at 02:01:26PM +0900, yoshii.takashi@renesas.com wrote:
> Paul, thank you for your comments.
> 
> > But this breaks the entire boot ABI, and probably only for the reason ...
> Well, it is not clear because the ABI is uncertain. (I mean, I think so:)
> If you are saying ABI is important, I agree with you, and I will postpone the
> patch. And we should refrain from changing ABI related thing until the ABI
> become clear and fixed.
> 
I wasn't aware there was any ambiguity with the boot ABI, only that
certain boot loaders failed to set up the argument page properly. This is
something that was cloned from x86 originally, so it's not exactly an
exotic feature, and any sensible boot loader has no problems supporting
it.

> Here is the boot ABI guessed from current implementation and my bad memory.
> Please give your comments. > All the developers.
> After fixed, I'd like to have this as Documentation/sh/boot.txt.
> 
Thanks for your work on this, this is certainly a good start!

> Linux/SH boot protocol
> ----------------------
> 
> == Boot procedure
> 
> 1. Initialize memory system.
>  Do BSC and SDRAM and PFC setting if needed to enable to access to main
>  memory and external peripherals. That won't be done by kernel.
> 
These days we inherit the BSC settings but the PFC settings are almost
entirely blown away by the kernel through the pinmux code. Certain
platforms (ie, romimage targets) also have their own BSC initialization.

Only the BSC settings are generally left untouched, but this will
probably change in the future as more targets move to romimage booting.
Given that most of the BSC settings in the boot loaders are just lazily
copied from one platform to another, doing it properly in the kernel is
certainly a step up.

> Name: (Mode_flag?)
> Address/size: empty_zero_page+0x18/long
> 
>  This is not a part of boot ABI.
>  In vmlinux, this field carries the value indicate 29bit/32bit.
> 
Correct, this is the 32bit boot flag. It's provided as a hint to figure
out whether the boot loader has entered from 32-bit boot or not.
Presently we don't do anything with this however.

> U-Boot:
>  (Please fill this)
> 
And this would be where the problem arises. U-Boot should be able to
handle this without issue, but it's not obvious that it does at present
(hence all of the workaround patches).

> kexec:
>  (Please fill this)
> 
In the kexec case the page is zeroed and the command line is copied in.
So, only the command line is valid.

  parent reply	other threads:[~2009-12-08  8:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-30  8:02 [PATCH] sh: Add CONFIG_PARAM_* to set boot parameters yoshii.takashi
2009-12-02  1:35 ` Paul Mundt
2009-12-08  5:01 ` yoshii.takashi
2009-12-08  8:18 ` Paul Mundt [this message]
2009-12-08 13:14 ` Stuart MENEFY
2009-12-09 12:00 ` Magnus Damm
2009-12-10  5:00 ` yoshii.takashi
2009-12-10  7:01 ` yoshii.takashi
2009-12-10  8:48 ` yoshii.takashi
2009-12-14  2:10 ` Paul Mundt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091208081853.GA25932@linux-sh.org \
    --to=lethal@linux-sh.org \
    --cc=linux-sh@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.