From: Marc Zyngier <maz@kernel.org>
To: Zhang Xincheng <zhangxincheng@uniontech.com>
Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org,
oleksandr@natalenko.name, hdegoede@redhat.com,
bigeasy@linutronix.de, mark.rutland@arm.com, michael@walle.cc
Subject: Re: [PATCH] interrupt: discover and disable very frequent interrupts
Date: Fri, 30 Sep 2022 10:23:50 +0100 [thread overview]
Message-ID: <86bkqx6wrd.wl-maz@kernel.org> (raw)
In-Reply-To: <20220930064042.14564-1-zhangxincheng@uniontech.com>
On Fri, 30 Sep 2022 07:40:42 +0100,
Zhang Xincheng <zhangxincheng@uniontech.com> wrote:
>
> From: zhangxincheng <zhangxincheng@uniontech.com>
>
> In some cases, a peripheral's interrupt will be triggered frequently,
> which will keep the CPU processing the interrupt and eventually cause
> the RCU to report rcu_sched self-detected stall on the CPU.
>
> [ 838.131628] rcu: INFO: rcu_sched self-detected stall on CPU
> [ 838.137189] rcu: 0-....: (194839 ticks this GP) idle=f02/1/0x4000000000000004
> softirq=9993/9993 fqs=97428
> [ 838.146912] rcu: (t=195015 jiffies g=6773 q=0)
> [ 838.151516] Task dump for CPU 0:
> [ 838.154730] systemd-sleep R running task 0 3445 1 0x0000000a
>
> Signed-off-by: zhangxincheng <zhangxincheng@uniontech.com>
> Change-Id: I9c92146f2772eae383c16c8c10de028b91e07150
> Signed-off-by: zhangxincheng <zhangxincheng@uniontech.com>
Irrespective of the patch itself, I would really like to understand
why you consider that it is a better course of action to kill a device
(and potentially the whole machine) than to let the storm eventually
calm down? A frequent interrupt is not necessarily the sign of
something going wrong. It is the sign of a busy system. I prefer my
systems busy rather than dead.
Furthermore, I see no rationale here about the number of interrupt
that *you* consider as being "too many" over what period of time (it
seems to me that both parameters are firmly hardcoded).
Something like this should be limited to a debug feature. It would
also be a lot more useful if it was built as an interrupt *limiting*
feature, rather then killing the interrupt forever (which is IMHO a
ludicrous thing to do).
Thanks,
M.
--
Without deviation from the norm, progress is not possible.
next prev parent reply other threads:[~2022-09-30 9:24 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-30 6:40 [PATCH] interrupt: discover and disable very frequent interrupts Zhang Xincheng
2022-09-30 7:05 ` Hans de Goede
2022-09-30 9:23 ` Marc Zyngier [this message]
2022-09-30 9:57 ` Zhang Xincheng
2022-09-30 10:37 ` Marc Zyngier
2022-10-09 1:31 ` Zhang Xincheng
2022-10-09 2:13 ` Marc Zyngier
2022-10-09 10:02 ` Zhang Xincheng
2022-10-17 11:21 ` Thomas Gleixner
2022-10-18 1:05 ` Zhang Xincheng
2022-10-08 5:21 ` [interrupt] 998288b7e8: RIP:cpuidle_enter_state kernel test robot
2022-10-08 5:21 ` kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2022-09-30 8:31 [PATCH] interrupt: discover and disable very frequent interrupts 张鑫城
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=86bkqx6wrd.wl-maz@kernel.org \
--to=maz@kernel.org \
--cc=bigeasy@linutronix.de \
--cc=hdegoede@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=michael@walle.cc \
--cc=oleksandr@natalenko.name \
--cc=tglx@linutronix.de \
--cc=zhangxincheng@uniontech.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 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.