From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] image: Don't relocate ramdisk to highmem
Date: Thu, 11 Jul 2013 20:21:17 +0200 [thread overview]
Message-ID: <20130711182117.92DC0383003@gemini.denx.de> (raw)
In-Reply-To: <20130711150014.GA2198@dhcp-172-17-186-34.nvidia.com>
Dear Thierry Reding,
In message <20130711150014.GA2198@dhcp-172-17-186-34.nvidia.com> you wrote:
>
> > I'm pretty sure it's all architectures, and this is a problem for device
> > trees as well. The tricks done to deal with highmem mean it's not
> > suitable for certain tasks, if I recall things right (it's been a
> > while).
>
> Yes, that's my understanding as well. The same changes were done for
> fdt_high a few months back and ramdisks aren't any different in this
> respect. I was a bit surprised that this hadn't been fixed yet, but
> maybe people just aren't using ramdisks anymore these days, or they
> worked around it by setting initrd_high explicitly.
This depends a lot on a number of things. For example, you should be
able to use a ramdisk in NOR flash directly, i. e. without loading it
to RAM first - especially if it;s a comprtessed ramdis image, and the
Kernel will copy/uncompress it anyway. Depending on your memory map
the address range of the NOR flash may be way outside (and above) that
of the system RAM. Are you sure your changes will not break any such
usage?
> Yeah, I wondered whether maybe not relocating the ramdisk (and the FDT)
> in the first place might even be a better default fallback. It makes the
We want to avoid any copy of the ramdisk at all, if possible.
> That's *exactly* what happened to me, only that instead of just not
> finding the ramdisk it would page fault and oops. The first thing I did
> was indeed to just set initrd_high to 0xffffffff but then decided to try
> and properly fix it in an attempt to save others the trouble.
What is a fix for you may be a breakage elsewhere.
> > > Also, when changing the behaviour, you should also update the
> > > comments.
> >
> > Agreed.
>
> I'm not sure which comments you are referring to. I updated the one
> immediately above the changed code and the one above the function
> doesn't contain anything relating to the default behaviour in case
> initrd_high is unset.
...because default behaviour was do do nothing. Now you do something,
so this should be documented.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The only time the world beats a path to your door is when you are in
the bathroom.
next prev parent reply other threads:[~2013-07-11 18:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-10 23:47 [U-Boot] [PATCH] image: Don't relocate ramdisk to highmem Thierry Reding
2013-07-11 9:46 ` Wolfgang Denk
2013-07-11 12:39 ` Tom Rini
2013-07-11 15:00 ` Thierry Reding
2013-07-11 18:21 ` Wolfgang Denk [this message]
2013-07-11 18:29 ` Tom Rini
2013-07-11 19:06 ` Stephen Warren
2013-07-11 20:55 ` Wolfgang Denk
2013-07-11 19:08 ` Thierry Reding
2013-07-11 20:57 ` Wolfgang Denk
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=20130711182117.92DC0383003@gemini.denx.de \
--to=wd@denx.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox