From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ARM: tegra: Use mem size from MC rather than ODMDATA
Date: Thu, 31 Jul 2014 13:45:32 -0600 [thread overview]
Message-ID: <53DA9CDC.3010402@wwwdotorg.org> (raw)
In-Reply-To: <1404331950-4916-1-git-send-email-swarren@wwwdotorg.org>
On 07/02/2014 02:12 PM, Stephen Warren wrote:
> From: Stephen Warren <swarren@nvidia.com>
>
> In at least Tegra124, the Tegra memory controller (MC) has a register
> that controls the memory size. Read this to determine the memory size
> rather than requiring this to be redundantly encoded into the ODMDATA.
> This way, changes to the BCT (i.e. MC configuration) automatically
> updated SW's view of the memory size, without requiring manual changes
> to the ODMDATA.
>
> Future work potentially required:
> * Clip the memory size to architectural limits; U-Boot probably doesn't
> and won't support either LPAE or Tegra's "swiss cheese" memory layout,
> at least one of which would be required for >2GB RAM.
> * Subtract out any carveout required by firmware on future SoCs.
I noticed that this patch triggers a bug in DT relocation during
bootm/bootz. It'd be best if the following were applied somewhere before
this patch:
http://patchwork.ozlabs.org/patch/375408/
lib: lmb: fix overflow in __lmb_alloc_base w/ large RAM
That's because this patch changes the RAM size on Tegra124 from 2GB-1MB
to 2GB. I believe that change is correct, it just triggers an overflow
in U-Boot's RAM handling which needs to be fixed first.
In practice, I suspect even if this dependency is ignored, there will be
no user-visible impact, because the default environment in Tegra U-Boot
disables DT relocation completely. This problem would only affect
someone who flashed/ran a U-Boot with this patch without resetting their
environment to the default that's embedded into the new U-Boot, and
their environment in flash was older than when we disabled DT
relocation. Since tegra-uboot-flasher always does reset the environment,
I expect most people would never notice this.
prev parent reply other threads:[~2014-07-31 19:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-02 20:12 [U-Boot] [PATCH] ARM: tegra: Use mem size from MC rather than ODMDATA Stephen Warren
2014-07-02 21:18 ` Wolfgang Denk
2014-07-02 21:53 ` Stephen Warren
2014-07-03 7:45 ` Wolfgang Denk
2014-07-03 11:01 ` Tom Rini
2014-07-24 21:00 ` Stephen Warren
2014-07-31 19:45 ` Stephen Warren [this message]
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=53DA9CDC.3010402@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--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.