From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Ehson Hussain <ehson_husain@hotmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: RCU CPU stall Warnings with JTAG debugging
Date: Wed, 16 May 2018 08:24:53 -0700 [thread overview]
Message-ID: <20180516152453.GC3803@linux.vnet.ibm.com> (raw)
In-Reply-To: <BN3PR14MB0803AB92BA71034E5903C027E7920@BN3PR14MB0803.namprd14.prod.outlook.com>
On Wed, May 16, 2018 at 01:45:45PM +0000, Ehson Hussain wrote:
> Hello Paul,
>
> Hope you're doing great. I'm trying JTAG debugging on an aarch64 SoC (Xilinx Zynqmp zcu102 to be precise); when I halt the cores manually, or hit a breakpoint, I get a CPU stall warning on resuming after the RCU grace period expires.
>
> If I resume quickly enough, I do not get the warning.
>
> My question is, if all cores are stopped during debugging, how does RCU code detect/self-detect stalls on CPU? I have never observed this behavior in older kernels (3.14 and above), with arm cores e.g. armv7 based Freescale iMx6 boards.
My guess is that the jiffies clock is updated after resume to allow for
the time elapsed during the halt. So the system resumes, the jiffies
counter gets a huge increment, and RCU complains about the massive
passage of time.
If you are doing JTAG debugging, I recommend shutting off RCU CPU stall
warnings, for example, using the rcupdate.rcu_cpu_stall_suppress kernel
boot parameter.
I suppose you could also tweak the clock code to pretend that no time
passes while halted, but that could be a very tricky task.
Thanx, Paul
parent reply other threads:[~2018-05-16 15:23 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <BN3PR14MB0803AB92BA71034E5903C027E7920@BN3PR14MB0803.namprd14.prod.outlook.com>]
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=20180516152453.GC3803@linux.vnet.ibm.com \
--to=paulmck@linux.vnet.ibm.com \
--cc=ehson_husain@hotmail.com \
--cc=linux-kernel@vger.kernel.org \
/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