From: "Pali Rohár" <pali@kernel.org>
To: Tom Rini <trini@konsulko.com>
Cc: Stefan Roese <sr@denx.de>, u-boot@lists.denx.de
Subject: Re: Broken watchdog in u-boot master branch
Date: Mon, 10 Oct 2022 19:44:05 +0200 [thread overview]
Message-ID: <20221010174405.5rvz7aclukn567gj@pali> (raw)
In-Reply-To: <20221010174038.GP2020586@bill-the-cat>
On Monday 10 October 2022 13:40:38 Tom Rini wrote:
> On Mon, Oct 10, 2022 at 07:22:56PM +0200, Pali Rohár wrote:
> > On Monday 10 October 2022 12:28:18 Tom Rini wrote:
> > > On Sun, Oct 09, 2022 at 09:12:25PM +0200, Pali Rohár wrote:
> > > > Hello! Watchdog code seems to be broken in u-boot master branch.
> > > > On Nokia N900 I'm getting following message in qemu:
> > > >
> > > > cyclic function rx51_watchdog took too long: 10000us vs 1000us max, disabling
> > > >
> > > > Seems that watchdog core code is not prepared for "slower" watchdogs
> > > > which communicate over slower i2c bus, like it is the case for N900.
> > > >
> > > > Disabling slower watchdog is a bad idea as it would result in reboot
> > > > loop instead of slower - but working code.
> > >
> > > So, looking at this in more detail, we have
> > > CONFIG_CYCLIC_MAX_CPU_TIME_US as a configuration option (which is where
> > > the too long comes from). And picking a random CI run:
> > > https://source.denx.de/u-boot/u-boot/-/jobs/511177
> > > I do see we hit this in CI once, but not every time, QEMU runs here. Is
> > > that the max time is configurable enough to satisfy your concerns here?
> >
> > It is needed to investigate, how to _properly_ fix this issue, not just
> > workarounded it. Probably other boards may be affected.
>
> So it's the cyclic watchdog code, which we merged as early as possible
> that's the reason here. And it was merged as early as we could to see if
> there's problems. Are there problems? We're seeing "system too slow,
> disabling" on QEMU, sometimes, and the value of too slow is
> configurable. I know you reported other problems with n900 HW, so we
> can't see if it's failing there
I was tested it with older asm code (as described in that other email,
via git checkout commit -- file) on n900 HW and watchdog problem is
there too. Phone reboots in about 20 seconds. But as I do not have
serial console, I do not know if that "disabling" message is printed
there too (but I guess it is).
> and I don't have any omap3 HW setup in
> my lab atm, just newer generation boards and don't see the problem
> there. Which is why I'm asking, is being able to configure the "too
> slow" value enough? Or is there something else that needs to be done?
next prev parent reply other threads:[~2022-10-10 17:44 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-09 19:12 Broken watchdog in u-boot master branch Pali Rohár
2022-10-10 13:55 ` Tom Rini
2022-10-10 16:19 ` Pali Rohár
2022-10-11 7:18 ` Rasmus Villemoes
2022-10-11 7:25 ` Pali Rohár
2022-10-17 6:52 ` Stefan Roese
2022-10-10 16:28 ` Tom Rini
2022-10-10 17:22 ` Pali Rohár
2022-10-10 17:40 ` Tom Rini
2022-10-10 17:44 ` Pali Rohár [this message]
2022-10-10 17:56 ` Tom Rini
2022-10-10 18:01 ` Pali Rohár
2022-10-10 18:14 ` Tom Rini
2022-10-10 19:24 ` Tom Rini
2022-10-10 19:33 ` Pali Rohár
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=20221010174405.5rvz7aclukn567gj@pali \
--to=pali@kernel.org \
--cc=sr@denx.de \
--cc=trini@konsulko.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.