All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bin Meng <bmeng.cn@gmail.com>
To: u-boot@lists.denx.de
Subject: RPi4 U-Boot freeze
Date: Fri, 4 Sep 2020 09:48:58 +0800	[thread overview]
Message-ID: <CAEUhbmV5wFhKaLzUyQ1GJm-r49Lo=z4W0_f9OopatAvypne01g@mail.gmail.com> (raw)
In-Reply-To: <5ccb22ec4dd32d9ce283b14894ea39a6@agner.ch>

On Thu, Sep 3, 2020 at 7:23 PM Stefan Agner <stefan@agner.ch> wrote:
>
> Any thoughts on this issue?
>
> Just to be sure, I did some memory testing on the 2GB module, but no
> issues found.
>
> I still somehow suspected that something else might be wrong with my
> hardware, so I bought a new RPi4 (this time with 4GB of RAM) but the
> very same with that:
>
> U-Boot 2020.01 (Aug 23 2020 - 22:02:31 +0000)
>
> DRAM:  3.9 GiB
> <freeze>
>
> I still think there is something wrong with caching. From what I
> understand caches are enabled by the RPi (4) firmware. Is it safe to run
> 32-bit ARM U-Boot with enabled caches?
>
> --
> Stefan
>
> On 2020-08-23 19:06, Stefan Agner wrote:
> > Hi,
> >
> > I noticed a quite common freeze when running 32-bit U-Boot 2020.01
> > (rpi_4_32b_defconfig) on a 2GB RPi4 model:
> >
> > U-Boot 2020.01 (Aug 07 2020 - 13:00:23 +0000)
> >
> > DRAM:  1.9 GiB
> > <freeze, no more output>
> >
> > This happens fairly often, I would say 4 out of 5 boot tries. However,
> > if it boots, everything seems to run fine.
> >
> > The issue seems to go away when using 2020.04 or any newer release,
> > however, when trying to find the actual patch fixing the issue using git
> > bisect I ended up with a MMC merge request which really seems unrelated
> > (36bdcf7f3b). It seems that the problem is quite evasive and disappears
> > if certain structure are aligned differently etc.
> >
> > Enabling initcall debugging showed that U-Boot crashes right after
> > relocation:

I suspect there are some timing issues in the DDR training codes.

Regards,
Bin

  reply	other threads:[~2020-09-04  1:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-23 17:06 RPi4 U-Boot freeze Stefan Agner
2020-09-03 11:23 ` Stefan Agner
2020-09-04  1:48   ` Bin Meng [this message]
2020-09-07 14:36   ` Peter Robinson
2020-09-10 21:12     ` Stefan Agner
2020-09-14  8:15       ` Matthias Brugger
2020-09-17 20:56         ` Stefan Agner
2020-09-19 11:55         ` Stefan Agner
2020-09-19 21:20           ` Sean Anderson
2020-09-20  9:09             ` Stefan Agner

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='CAEUhbmV5wFhKaLzUyQ1GJm-r49Lo=z4W0_f9OopatAvypne01g@mail.gmail.com' \
    --to=bmeng.cn@gmail.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 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.