From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/4] ARM: mx6: Prevent overflow in DRAM size detection
Date: Wed, 20 Aug 2014 12:22:24 +0200 [thread overview]
Message-ID: <53F476E0.2010505@denx.de> (raw)
In-Reply-To: <1407109631-5470-2-git-send-email-marex@denx.de>
On 04/08/2014 01:47, Marek Vasut wrote:
> The MX6 DRAM controller can be configured to handle 4GiB of DRAM, but
> only 3840 MiB of that can be really used. In case the controller is
> configured to operate a 4GiB module, the imx_ddr_size() function will
> correctly compute that there is 4GiB of DRAM in the system. Firstly,
> the return value is 32-bit, so the function will effectively return
> zero. Secondly, the MX6 cannot address the full 4GiB, but only 3840MiB
> of all that. Thus, clamp the returned size to 3840MiB in such case.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> ---
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
next prev parent reply other threads:[~2014-08-20 10:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-03 23:47 [U-Boot] [PATCH 1/4] ARM: mx5: Fix CHSCCDR name Marek Vasut
2014-08-03 23:47 ` [U-Boot] [PATCH 2/4] ARM: mx6: Prevent overflow in DRAM size detection Marek Vasut
2014-08-04 4:50 ` Tim Harvey
2014-08-20 10:22 ` Stefano Babic [this message]
2014-08-03 23:47 ` [U-Boot] [PATCH 3/4] ARM: mx6: Handle the MMDCx_MDCTL COL field caprices Marek Vasut
2014-08-20 10:27 ` Stefano Babic
2014-08-03 23:47 ` [U-Boot] [PATCH 4/4] ARM: mx6: Enable Thumb build for SPL Marek Vasut
2014-08-06 9:23 ` Tim Harvey
2014-08-20 10:28 ` Stefano Babic
2014-08-20 10:21 ` [U-Boot] [PATCH 1/4] ARM: mx5: Fix CHSCCDR name Stefano Babic
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=53F476E0.2010505@denx.de \
--to=sbabic@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 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.