From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/4] ARM: pxa: prevent PXA270 occasional reboot freezes
Date: Sun, 15 Dec 2013 06:17:22 +0100 [thread overview]
Message-ID: <201312150617.22519.marex@denx.de> (raw)
In-Reply-To: <1387065104.13062.59.camel@host5.omatika.ru>
On Sunday, December 15, 2013 at 12:51:44 AM, Sergei Ianovich wrote:
> On Sat, 2013-12-14 at 18:14 +0100, Marek Vasut wrote:
> > On Saturday, December 14, 2013 at 04:31:31 PM, Sergei Ianovich wrote:
> > > On Sat, 2013-12-14 at 13:29 +0100, Marek Vasut wrote:
> > > > Do you need to write this register in an endless loop ?
> > >
> > > I didn't think this way. We need to have at least 3, but up to 5 cycles
> > > to put SDRAM in SLFRFRSH. It depends on the current state of SDRAM.
> > > There is no way to know.
> >
> > OK, I seem to remember the uglinesses of the PXA DRAM controller, indeed
> > :(
> >
> > > It can probably work if we write just once. But if we have another
> > > thread doing something with SDRAM in between, we will still hang.
> >
> > U-Boot is single-threaded ;-)
> >
> > > I am not sure how likely is the situation, though.
> >
> > It cannot happen, really ;-)
> >
> > BUT (!) I understand your intention. If writing the MDREFR multiple times
> > won't be a problem, I am _not_ opposed to this patch. So please only
> > make sure that's not a problem and if it's not, I won't block this
> > patch.
>
> The relevant doc is [1, section 6.1.5.4]. Refresh rules are rather
> complex. However, clearing DRI and repeatedly writing to MDREFR should
> refresh. The refreshes should advance SDRAM state machine to
> "Self-refresh and Clock-stop". This is what we are trying to achieve.
>
> I've run close to 1000 reboot of patched linux kernel. This mean several
> billions writes to MDREFR. If a write can cause a problem, it should
> have already shown up. So I think it is not a problem.
I saw this kernel patch, yes.
> Nevertheless, I've put a patched U-Boot with a single write to MDREFR to
> test (reset every 2 sec). After several hours, it will be clear, if a
> single write works. Let's do it the right way.
Thank you !
> 1.
> http://www.marvell.com/application-processors/pxa-family/assets/pxa_27x_de
> v_man.pdf
Best regards,
Marek Vasut
next prev parent reply other threads:[~2013-12-15 5:17 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-14 5:41 [U-Boot] [PATCH 0/4] fix and update LP-8x4x to boot DTS kernel Sergei Ianovich
2013-12-14 5:41 ` [U-Boot] [PATCH 1/4] ARM: pxa: prevent PXA270 occasional reboot freezes Sergei Ianovich
2013-12-14 12:29 ` Marek Vasut
2013-12-14 15:31 ` Sergei Ianovich
2013-12-14 17:14 ` Marek Vasut
2013-12-14 23:51 ` Sergei Ianovich
2013-12-15 5:17 ` Marek Vasut [this message]
2013-12-15 9:48 ` Sergei Ianovich
2013-12-15 15:04 ` Marek Vasut
2013-12-14 5:41 ` [U-Boot] [PATCH 2/4] arm: pxa: always init ethaddr for LP-8x4x Sergei Ianovich
2013-12-14 12:30 ` Marek Vasut
2013-12-14 15:39 ` Sergei Ianovich
2013-12-14 17:12 ` Marek Vasut
2013-12-14 20:53 ` Sergei Ianovich
2013-12-14 20:57 ` Marek Vasut
2013-12-14 23:53 ` Sergei Ianovich
2013-12-15 5:17 ` Marek Vasut
2013-12-15 9:44 ` Sergei Ianovich
2013-12-15 15:05 ` Marek Vasut
2013-12-15 18:43 ` Sergei Ianovich
2013-12-14 5:41 ` [U-Boot] [PATCH 3/4] arm: pxa: fix 2nd flash chip address on LP-8x4x Sergei Ianovich
2013-12-14 5:42 ` [U-Boot] [PATCH 4/4] arm: pxa: update LP-8x4x to boot DTS kernel Sergei Ianovich
2013-12-14 12:32 ` Marek Vasut
2013-12-14 15:41 ` Sergei Ianovich
2013-12-14 17:05 ` Marek Vasut
2013-12-15 9:57 ` Sergei Ianovich
2013-12-15 15:06 ` Marek Vasut
2013-12-15 18:56 ` Sergei Ianovich
2013-12-15 19:22 ` Marek Vasut
2013-12-17 1:07 ` Sergei Ianovich
2013-12-17 1:03 ` [U-Boot] [PATCH v2 0/5] fix and update LP-8x4x to boot DT kernel Sergei Ianovich
2013-12-17 1:03 ` [U-Boot] [PATCH v2 1/5] ARM: pxa: prevent PXA270 occasional reboot freezes Sergei Ianovich
2013-12-17 1:03 ` [U-Boot] [PATCH v2 2/5] arm: pxa: fix LP-8x4x USB support Sergei Ianovich
2013-12-18 15:01 ` Marek Vasut
2013-12-18 16:19 ` [U-Boot] [PATCH v3] " Sergei Ianovich
2013-12-18 17:15 ` Marek Vasut
2013-12-17 1:03 ` [U-Boot] [PATCH v2 3/5] arm: pxa: fix 2nd flash chip address on LP-8x4x Sergei Ianovich
2013-12-17 1:03 ` [U-Boot] [PATCH v2 4/5] arm: pxa: update LP-8x4x to boot DT kernel Sergei Ianovich
2013-12-17 1:03 ` [U-Boot] [PATCH v2 5/5] arm: pxa: init ethaddr for LP-8x4x using DT Sergei Ianovich
2013-12-18 15:01 ` [U-Boot] [PATCH v2 0/5] fix and update LP-8x4x to boot DT kernel Marek Vasut
2013-12-18 16:21 ` Sergei Ianovich
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=201312150617.22519.marex@denx.de \
--to=marex@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