From: Mete Durlu <meted@linux.ibm.com>
To: Bradley Morgan <include@grrlz.net>
Cc: agordeev@linux.ibm.com, akpm@linux-foundation.org,
andreas@gaisler.com, borntraeger@linux.ibm.com,
davem@davemloft.net, gor@linux.ibm.com, hca@linux.ibm.com,
linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org,
pmladek@suse.com, sparclinux@vger.kernel.org,
svens@linux.ibm.com
Subject: Re: [PATCH v2 2/3] s390: Implement arch_do_panic
Date: Tue, 28 Jul 2026 12:43:17 +0200 [thread overview]
Message-ID: <5b9f08f0-4412-4841-b7c1-21de21557fe4@linux.ibm.com> (raw)
In-Reply-To: <8E5EEFE6-C655-4319-B659-E3817DD24954@grrlz.net>
On 27/07/2026 15:01, Bradley Morgan wrote:
Hi Bradley,
>> This now means that the panic_timeout value takes precedence over user
>> defined on_panic behavior.
>
> this is the part i want to poke at. distros routinely ship panic=N on
> the cmdline. with this change, anyone who configured on_panic=dump on
> such a system silently stops getting dumps, because
> emergency_restart() runs first and never returns. a reboot instead of
> the dump you explicitly asked for is strictly worse. if you and Sven
> want that semantic, fine, but spell it out properly and give the s390
> docs for on_panic a line about the new precedence.
FWICT, there is no mention of shutdown actions in kernel documentation.
s390's user documentation is a different story. I agree it should be
documented on Linux on IBM systems documentation.
I'd argue that specifying both on_panic=dump and panic=N (N>0) is
a configuration error, but maybe a pr_warn() could be added to the
when on_panic=dump is configured with panic=N is set. That could
hint what is wrong if anyone investigating dmesg and trying to
figure out why system didn't dump.
On another note, dumping via shutdown actions serves as a backup
and kdump is the main dump mechanism nowadays. Kdump always takes
precedence over panic=N.
> also worth saying in the changelog what this actually wins: today the
> INT_MIN notifier never returns, so sys_info, kmsg_dump, the post
> notifier crash_kexec path, the console flushes and the end banner
> never execute on s390 once on_panic fires. after this patch they all
> do. thats the headline and the changelog undersells it.
>
Right, I will add that part to the commit message too.
>> Fixes: ff6b8ea68f4b ("[S390] ipl/dump on panic.")
>
> What's broken? What's buggy?
I can put a couple of sentences on how and why panic=
kernel command line argument was broken for s390.
> s/now allow/now allows/ in the changelog..
Will fix in next version!
Thank you
next prev parent reply other threads:[~2026-07-28 10:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-27 10:36 [PATCH v2 0/3] Introduce arch_do_panic Mete Durlu
2026-07-27 10:36 ` [PATCH v2 1/3] panic: " Mete Durlu
2026-07-27 12:59 ` Bradley Morgan
2026-07-28 10:13 ` Mete Durlu
2026-07-27 10:36 ` [PATCH v2 2/3] s390: Implement arch_do_panic Mete Durlu
2026-07-27 13:01 ` Bradley Morgan
2026-07-28 10:43 ` Mete Durlu [this message]
2026-07-28 11:02 ` Bradley Morgan
2026-07-28 11:40 ` Sven Schnelle
2026-07-28 11:43 ` Bradley Morgan
2026-07-27 10:36 ` [PATCH v2 3/3] sparc: " Mete Durlu
2026-07-27 13:02 ` Bradley Morgan
2026-07-29 8:56 ` [PATCH v2 0/3] Introduce arch_do_panic Heiko Carstens
2026-07-29 10:48 ` Mete Durlu
2026-07-29 12:06 ` Heiko Carstens
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=5b9f08f0-4412-4841-b7c1-21de21557fe4@linux.ibm.com \
--to=meted@linux.ibm.com \
--cc=agordeev@linux.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=andreas@gaisler.com \
--cc=borntraeger@linux.ibm.com \
--cc=davem@davemloft.net \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=include@grrlz.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=pmladek@suse.com \
--cc=sparclinux@vger.kernel.org \
--cc=svens@linux.ibm.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
all inboxes | Powered by JetHome®