mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Fabio Estevam <fabio.estevam@freescale.com>
To: s.hauer@pengutronix.de
Cc: Fabio Estevam <fabio.estevam@freescale.com>, barebox@lists.infradead.org
Subject: [PATCH] mx53-qsb: Fix boot hang during reboot stress test
Date: Mon, 29 Jun 2015 10:26:12 -0300	[thread overview]
Message-ID: <1435584372-5306-1-git-send-email-fabio.estevam@freescale.com> (raw)

Fix the DDR init sequence the same way as done by aee0013e53b339a5
from U-boot in order to prevent the boot hang under reboot stress test.

Quoting this commit log:

"Currently by running the following test:
    
=> setenv bootcmd reset
=> save
=> reset
    
, we observe a hang after approximately 20-30 minutes of stress reboot test.
    
Investigation of this issue revealed that when a single DDR chip select is used,
the hang does not happen. It only happens when the two chip selects are active.
    
MX53 reference manual states at "28.6.2 Memory ZQ calibration sequence":
 
"The controller must keep the memory lines quiet (except for CK) for the ZQ
calibration time as defined in the Jedec (512 cycles for ZQCL after reset, 256
for other ZQCL and 64 for ZQCS)."
    
According to the SDE_0 and SDE_1 bit descriptions from register ESDCTL_ESDCTL:

"Writing 1 to SDE0 or SDE1 will initiate power up delays as JEDEC defines.
Power up delays are a function of the configured memory type (DDR2/DDR3/LPDDR2)"

So make sure to activate one chip select at time (CS0 first and then CS1 later),
so that the required JEDEC delay is respected for each chip select.
    
With this change applied the board has gone through three days of reboot stress
test without any hang."

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/boards/freescale-mx53-qsb/flash-header-imx53-loco.imxcfg | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boards/freescale-mx53-qsb/flash-header-imx53-loco.imxcfg b/arch/arm/boards/freescale-mx53-qsb/flash-header-imx53-loco.imxcfg
index 95bcd19..f43b484 100644
--- a/arch/arm/boards/freescale-mx53-qsb/flash-header-imx53-loco.imxcfg
+++ b/arch/arm/boards/freescale-mx53-qsb/flash-header-imx53-loco.imxcfg
@@ -30,7 +30,7 @@ wm 32 0x63fd9090 0x4d444c44
 wm 32 0x63fd907c 0x01370138
 wm 32 0x63fd9080 0x013b013c
 wm 32 0x63fd9018 0x00011740
-wm 32 0x63fd9000 0xc3190000
+wm 32 0x63fd9000 0x83190000
 wm 32 0x63fd900c 0x9f5152e3
 wm 32 0x63fd9010 0xb68e8a63
 wm 32 0x63fd9014 0x01ff00db
@@ -43,6 +43,7 @@ wm 32 0x63fd901c 0x00008033
 wm 32 0x63fd901c 0x00028031
 wm 32 0x63fd901c 0x052080b0
 wm 32 0x63fd901c 0x04008040
+wm 32 0x63fd9000 0xc3190000
 wm 32 0x63fd901c 0x0000803a
 wm 32 0x63fd901c 0x0000803b
 wm 32 0x63fd901c 0x00028039
-- 
1.9.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2015-06-29 13:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-29 13:26 Fabio Estevam [this message]
2015-07-01  5:11 ` Sascha Hauer

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=1435584372-5306-1-git-send-email-fabio.estevam@freescale.com \
    --to=fabio.estevam@freescale.com \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.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