All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vikas MANOCHA <vikas.manocha@st.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] spl: make image arg or fdt blob address reconfigurable
Date: Wed, 12 Apr 2017 19:47:09 +0000	[thread overview]
Message-ID: <efed79023eea46b88cce1a3d618df515@SFHDAG7NODE3.st.com> (raw)
In-Reply-To: <20170412133322.GY19897@bill-the-cat>

Hi Tom,

> -----Original Message-----
> From: Tom Rini [mailto:trini at konsulko.com]
> Sent: Wednesday, April 12, 2017 6:33 AM
> To: Vikas MANOCHA <vikas.manocha@st.com>
> Cc: u-boot at lists.denx.de; Marek Vasut <marex@denx.de>; Stefan Agner <stefan.agner@toradex.com>; Jeremy Hunt
> <Jeremy.Hunt@DEShawResearch.com>
> Subject: Re: [U-Boot] [PATCH] spl: make image arg or fdt blob address reconfigurable
> 
> On Tue, Apr 11, 2017 at 11:44:00PM +0000, Vikas MANOCHA wrote:
> > Hi Tom,
> >
> > > -----Original Message-----
> > > From: Tom Rini [mailto:trini at konsulko.com]
> > > Sent: Monday, April 10, 2017 5:29 AM
> > > To: Vikas MANOCHA <vikas.manocha@st.com>
> > > Cc: u-boot at lists.denx.de; Marek Vasut <marex@denx.de>; Stefan Agner
> > > <stefan.agner@toradex.com>; Jeremy Hunt
> > > <Jeremy.Hunt@DEShawResearch.com>
> > > Subject: Re: [U-Boot] [PATCH] spl: make image arg or fdt blob
> > > address reconfigurable
> > >
> > > On Fri, Apr 07, 2017 at 03:38:13PM -0700, Vikas Manocha wrote:
> > >
> > > > At present fdt blob or argument address being passed to kernel is
> > > > fixed at compile time using macro CONFIG_SYS_SPL_ARGS_ADDR. FDT
> > > > blob from different media like nand, nor flash are copied to the
> > > > address pointed by the macro.
> > > > The problem is, it makes args/fdt blob compulsory to copy which is
> > > > not required in cases like for NOR Flash. This patch removes this limitation.
> > > >
> > > > Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
> > > > ---
> > > >  arch/arm/lib/spl.c        | 7 +++----
> > > >  arch/microblaze/cpu/spl.c | 6 +++---
> > > >  arch/powerpc/lib/spl.c    | 8 ++++----
> > > >  common/spl/spl.c          | 6 ++++--
> > > >  common/spl/spl_nor.c      | 8 +-------
> > > >  include/spl.h             | 5 ++---
> > >
> > > I assume you've tested the spl_nor case afterwards, yes?  Did this
> > > result in some measurable boot time decrease?  Thanks!
> >
> > Yes, I tested it's working on board. Not sure how to measure the impact on boot time.
> 
> There's always good old grabserial. But if you didn't measure bootspeed, did this decrease the code size?  Or fix some other issue?

Thanks Tom for the suggestion.

The benefit of this patch is : It removes copying FDT blob from NOR flash to ram in case of booting from nor flash,  text size reduction
is only 4 Bytes, no change in data/bss size. It might reduce the boot time but boot time impact would depend on the FDT blob copying
time & ram vs flash read speed.

Also it provides a way to change fdt blob address at run-time which might be useful e.g. choosing between two FDT blobs or manipulating FDT address.

Cheers,
Vikas 

> Thanks!
> 
> --
> Tom

  reply	other threads:[~2017-04-12 19:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-07 22:38 [U-Boot] [PATCH] spl: make image arg or fdt blob address reconfigurable Vikas Manocha
2017-04-10 12:29 ` Tom Rini
2017-04-11 23:44   ` Vikas MANOCHA
2017-04-12 13:33     ` Tom Rini
2017-04-12 19:47       ` Vikas MANOCHA [this message]
2017-05-02 22:43       ` Vikas MANOCHA
2017-05-03 13:53         ` Tom Rini
2017-05-08 19:40 ` [U-Boot] " Tom Rini

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=efed79023eea46b88cce1a3d618df515@SFHDAG7NODE3.st.com \
    --to=vikas.manocha@st.com \
    --cc=u-boot@lists.denx.de \
    /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.