public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Timur Tabi <timur@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] mpc86xx: set the DDR BATs after calculating true DDR size
Date: Tue, 30 Mar 2010 09:37:28 -0500	[thread overview]
Message-ID: <4BB20CA8.30700@freescale.com> (raw)
In-Reply-To: <1269959143-15581-1-git-send-email-galak@kernel.crashing.org>

Kumar Gala wrote:
> +void setup_ddr_bat(phys_addr_t dram_size)
> +{
> +	unsigned long batu, bl;
> +
> +	bl = TO_BATU_BL(min(dram_size, CONFIG_MAX_MEM_MAPPED));
> +
> +	if (BATU_SIZE(bl) != dram_size) {
> +		u64 sz = (u64)dram_size - BATU_SIZE(bl);
> +		print_size(sz, " left unmapped\n");
> +	}

We still have the problem that, on a 1.5GB system, U-Boot will think that there are 1.5GB of DDR, but the BAT will be set to 1GB.  When U-Boot tries to relocate itself, it will machine check.

We need a way to tell U-Boot that we only have 1GB of DDR, but still have it tell Linux that we have 1.5GB of DDR.

-- 
Timur Tabi
Linux kernel developer at Freescale

  reply	other threads:[~2010-03-30 14:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-30 14:25 [U-Boot] [PATCH v2] mpc86xx: set the DDR BATs after calculating true DDR size Kumar Gala
2010-03-30 14:37 ` Timur Tabi [this message]
2010-03-30 15:14   ` Kumar Gala
2010-03-30 15:21     ` Timur Tabi
2010-03-30 15:29       ` Kumar Gala
2010-03-30 15:32         ` Timur Tabi
2010-03-30 15:33           ` Kumar Gala
2010-03-30 15:35             ` Timur Tabi
2010-03-30 17:12             ` Becky Bruce
2010-03-30 17:02 ` Becky Bruce
2010-03-30 17:05   ` Becky Bruce
2010-03-30 18:42   ` Timur Tabi
2010-03-30 21:19   ` Timur Tabi

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=4BB20CA8.30700@freescale.com \
    --to=timur@freescale.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox