All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] spl: make image arg or fdt blob address reconfigurable
Date: Wed, 3 May 2017 09:53:10 -0400	[thread overview]
Message-ID: <20170503135310.GV12511@bill-the-cat> (raw)
In-Reply-To: <f992d14c1e1c40f287c11760e0fb6a5c@SFHDAG7NODE3.st.com>

On Tue, May 02, 2017 at 10:43:07PM +0000, Vikas MANOCHA wrote:
> Hi Tom,
> 
> > -----Original Message-----
> > From: Vikas MANOCHA
> > Sent: Wednesday, April 12, 2017 12:47 PM
> > To: 'Tom Rini' <trini@konsulko.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
> > 
> > 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.
> 
> Please let me know if more info is required in order to pick this patch.

I think this is fine, I'll grab it next release, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170503/5430d367/attachment.sig>

  reply	other threads:[~2017-05-03 13:53 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
2017-05-02 22:43       ` Vikas MANOCHA
2017-05-03 13:53         ` Tom Rini [this message]
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=20170503135310.GV12511@bill-the-cat \
    --to=trini@konsulko.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.