From: Lei Yu <yulei.sh@bytedance.com>
To: Joel Stanley <joel@jms.id.au>
Cc: ChiaWei Wang <chiawei_wang@aspeedtech.com>,
Troy Lee <troy_lee@aspeedtech.com>,
Ryan Chen <ryan_chen@aspeedtech.com>,
openbmc <openbmc@lists.ozlabs.org>,
tangyiwei.2022@bytedance.com
Subject: Re: New u-boot-aspeed-sdk runs slow and cause wdt2 timeout on ast2500
Date: Wed, 23 Feb 2022 18:02:31 +0800 [thread overview]
Message-ID: <CAGm54UH8ZrUWms84E-4mzgUvGEdVYJGiq4mWSyCKoTzAtFc9HQ@mail.gmail.com> (raw)
In-Reply-To: <CACPK8Xdu2VzLBW0oMy_bGo=hoJUng25pffGEYXe9xjyqC4=7tQ@mail.gmail.com>
> > > > Could you share us the boot log with timestamps?
> > > > It would be nice to know the time elapsed at each stage.
> > >
> > > Pasted to https://pastebin.com/emseqW6c
> > > It contains two logs, the first one is good, and the second has the issue.
>
> Working:
> [2022-02-23 02:47:03] U-Boot 2019.04 (Jan 24 2022 - 10:18:18 +0000)
> [2022-02-23 02:47:06] ## Loading kernel from FIT Image at 20100000 ...
> [2022-02-23 02:47:12] Starting kernel ...
>
> 3 + 6 seconds.
>
> broken:
> [2022-02-23 02:58:07] U-Boot 2019.04 (Feb 15 2022 - 07:22:14 +0000)
> [2022-02-23 02:58:12] ## Loading kernel from FIT Image at 20100000 ...
> [2022-02-23 02:58:22] Starting kernel ...
>
> 5 + 10 seconds.
>
> Interesting that the pre-hashing part is also slower.
>
> The old branch was based on v00.04.03. The new branch is based on v00.04.09.
>
> I wonder if this is the cause:
>
> $ git diff v00.04.03..v00.04.09 -- configs/evb-ast2500_defconfig
> diff --git a/configs/evb-ast2500_defconfig b/configs/evb-ast2500_defconfig
> index 9fcf55b05ebb..000ed3f90bdd 100644
> --- a/configs/evb-ast2500_defconfig
> +++ b/configs/evb-ast2500_defconfig
> @@ -1,4 +1,5 @@
> CONFIG_ARM=y
> +CONFIG_SYS_DCACHE_OFF=y
> CONFIG_ARCH_ASPEED=y
> CONFIG_SYS_TEXT_BASE=0x0
> CONFIG_SYS_MALLOC_F_LEN=0x2000
>
> Lei, can you re-test with CONFIG_SYS_DCACHE_OFF=n ?
>
Yiwei helped to test with CONFIG_SYS_DCACHE_OFF=n, and it works fine now.
So it seems we get the root cause!
next prev parent reply other threads:[~2022-02-23 10:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-23 2:15 New u-boot-aspeed-sdk runs slow and cause wdt2 timeout on ast2500 Lei Yu
2022-02-23 2:38 ` ChiaWei Wang
2022-02-23 3:01 ` Lei Yu
2022-02-23 4:36 ` ChiaWei Wang
2022-02-23 5:11 ` Joel Stanley
2022-02-23 10:02 ` Lei Yu [this message]
2022-02-24 3:45 ` Joel Stanley
2022-02-23 3:12 ` Thang Nguyen OS
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=CAGm54UH8ZrUWms84E-4mzgUvGEdVYJGiq4mWSyCKoTzAtFc9HQ@mail.gmail.com \
--to=yulei.sh@bytedance.com \
--cc=chiawei_wang@aspeedtech.com \
--cc=joel@jms.id.au \
--cc=openbmc@lists.ozlabs.org \
--cc=ryan_chen@aspeedtech.com \
--cc=tangyiwei.2022@bytedance.com \
--cc=troy_lee@aspeedtech.com \
/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;
as well as URLs for NNTP newsgroup(s).