From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: linux-kernel@vger.kernel.org, linux-rt-devel@lists.linux.dev,
Ben Segall <bsegall@google.com>,
Catalin Marinas <catalin.marinas@arm.com>,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Ingo Molnar <mingo@redhat.com>,
Juri Lelli <juri.lelli@redhat.com>, Mel Gorman <mgorman@suse.de>,
Peter Zijlstra <peterz@infradead.org>,
Shrikanth Hegde <sshegde@linux.ibm.com>,
Steven Rostedt <rostedt@goodmis.org>,
Thomas Gleixner <tglx@linutronix.de>,
Valentin Schneider <vschneid@redhat.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
Will Deacon <will@kernel.org>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v3 3/9] arm: Rely on generic printing of preemption model.
Date: Wed, 12 Feb 2025 15:58:07 +0000 [thread overview]
Message-ID: <Z6zFD2HcAtQJWIOY@shell.armlinux.org.uk> (raw)
In-Reply-To: <20250212134115.2583667-4-bigeasy@linutronix.de>
On Wed, Feb 12, 2025 at 02:41:09PM +0100, Sebastian Andrzej Siewior wrote:
> __die() invokes later __show_regs() -> show_regs_print_info() which
> prints the current preemption model.
> Remove it from the initial line.
>
> Cc: Russell King <linux@armlinux.org.uk>
Please either drop this - or correct it as per my r-b below. Thanks.
> Cc: linux-arm-kernel@lists.infradead.org
> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> ---
> arch/arm/kernel/traps.c | 11 ++---------
> 1 file changed, 2 insertions(+), 9 deletions(-)
>
> diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c
> index 6ea645939573f..afbd2ebe5c39d 100644
> --- a/arch/arm/kernel/traps.c
> +++ b/arch/arm/kernel/traps.c
> @@ -258,13 +258,6 @@ void show_stack(struct task_struct *tsk, unsigned long *sp, const char *loglvl)
> barrier();
> }
>
> -#ifdef CONFIG_PREEMPT
> -#define S_PREEMPT " PREEMPT"
> -#elif defined(CONFIG_PREEMPT_RT)
> -#define S_PREEMPT " PREEMPT_RT"
> -#else
> -#define S_PREEMPT ""
> -#endif
> #ifdef CONFIG_SMP
> #define S_SMP " SMP"
> #else
> @@ -282,8 +275,8 @@ static int __die(const char *str, int err, struct pt_regs *regs)
> static int die_counter;
> int ret;
>
> - pr_emerg("Internal error: %s: %x [#%d]" S_PREEMPT S_SMP S_ISA "\n",
> - str, err, ++die_counter);
> + pr_emerg("Internal error: %s: %x [#%d]" S_SMP S_ISA "\n",
> + str, err, ++die_counter);
>
> /* trap and error numbers are mostly meaningless on ARM */
> ret = notify_die(DIE_OOPS, str, regs, err, tsk->thread.trap_no, SIGSEGV);
> --
> 2.47.2
>
>
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
next prev parent reply other threads:[~2025-02-12 15:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-12 13:41 [PATCH v3 0/9] preempt: Add a generic function to return the preemption string Sebastian Andrzej Siewior
2025-02-12 13:41 ` [PATCH v3 1/9] sched: " Sebastian Andrzej Siewior
2025-02-12 13:41 ` [PATCH v3 2/9] lib/dump_stack: Use preempt_model_str() Sebastian Andrzej Siewior
2025-02-12 13:41 ` [PATCH v3 3/9] arm: Rely on generic printing of preemption model Sebastian Andrzej Siewior
2025-02-12 15:58 ` Russell King (Oracle) [this message]
2025-02-12 13:41 ` [PATCH v3 4/9] arm64: " Sebastian Andrzej Siewior
2025-02-12 18:41 ` Catalin Marinas
2025-02-12 13:41 ` [PATCH v3 5/9] powerpc: " Sebastian Andrzej Siewior
2025-02-12 13:41 ` [PATCH v3 6/9] s390: " Sebastian Andrzej Siewior
2025-02-12 13:41 ` [PATCH v3 7/9] x86: " Sebastian Andrzej Siewior
2025-02-12 13:41 ` [PATCH v3 8/9] xtensa: " Sebastian Andrzej Siewior
2025-02-12 13:41 ` [PATCH v3 9/9] tracing: Use preempt_model_str() Sebastian Andrzej Siewior
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=Z6zFD2HcAtQJWIOY@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=bigeasy@linutronix.de \
--cc=bsegall@google.com \
--cc=catalin.marinas@arm.com \
--cc=dietmar.eggemann@arm.com \
--cc=juri.lelli@redhat.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-devel@lists.linux.dev \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=sshegde@linux.ibm.com \
--cc=tglx@linutronix.de \
--cc=vincent.guittot@linaro.org \
--cc=vschneid@redhat.com \
--cc=will@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;
as well as URLs for NNTP newsgroup(s).