Re: [PATCH v2 23/44] arm,smp: Remove trace_.*_rcuidle() usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
- Subject: Re: [PATCH v2 23/44] arm,smp: Remove trace_.*_rcuidle() usage
- From: Ulf Hansson <ulf.hansson@xxxxxxxxxx>
- Date: Tue, 4 Oct 2022 13:08:00 +0200
- Cc: juri.lelli@xxxxxxxxxx, rafael@xxxxxxxxxx, catalin.marinas@xxxxxxx, linus.walleij@xxxxxxxxxx, bsegall@xxxxxxxxxx, guoren@xxxxxxxxxx, pavel@xxxxxx, agordeev@xxxxxxxxxxxxx, linux-arch@xxxxxxxxxxxxxxx, vincent.guittot@xxxxxxxxxx, mpe@xxxxxxxxxxxxxx, chenhuacai@xxxxxxxxxx, christophe.leroy@xxxxxxxxxx, linux-acpi@xxxxxxxxxxxxxxx, agross@xxxxxxxxxx, geert@xxxxxxxxxxxxxx, linux-imx@xxxxxxx, vgupta@xxxxxxxxxx, mattst88@xxxxxxxxx, mturquette@xxxxxxxxxxxx, sammy@xxxxxxxxx, pmladek@xxxxxxxx, linux-pm@xxxxxxxxxxxxxxx, Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>, linux-um@xxxxxxxxxxxxxxxxxxx, npiggin@xxxxxxxxx, tglx@xxxxxxxxxxxxx, linux-omap@xxxxxxxxxxxxxxx, dietmar.eggemann@xxxxxxx, andreyknvl@xxxxxxxxx, gregkh@xxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-perf-users@xxxxxxxxxxxxxxx, senozhatsky@xxxxxxxxxxxx, svens@xxxxxxxxxxxxx, jolsa@xxxxxxxxxx, tj@xxxxxxxxxx, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, mark.rutland@xxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, dave.hansen@xxxxxxxxxxxxxxx, virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx, James.Bottomley@xxxxxxxxxxxxxxxxxxxxx, jcmvbkbc@xxxxxxxxx, thierry.reding@xxxxxxxxx, kernel@xxxxxxxxxx, cl@xxxxxxxxx, linux-s390@xxxxxxxxxxxxxxx, vschneid@xxxxxxxxxx, john.ogness@xxxxxxxxxxxxx, ysato@xxxxxxxxxxxxx, linux-sh@xxxxxxxxxxxxxxx, festevam@xxxxxxxxx, deller@xxxxxx, daniel.lezcano@xxxxxxxxxx, jonathanh@xxxxxxxxxx, dennis@xxxxxxxxxx, lenb@xxxxxxxxxx, linux-xtensa@xxxxxxxxxxxxxxxx, kernel@xxxxxxxxxxxxxx, gor@xxxxxxxxxxxxx, linux-arm-msm@xxxxxxxxxxxxxxx, linux-alpha@xxxxxxxxxxxxxxx, linux-m68k@xxxxxxxxxxxxxxx, loongarch@xxxxxxxxxxxxxxx, shorne@xxxxxxxxx, chris@xxxxxxxxxx, sboyd@xxxxxxxxxx, dinguyen@xxxxxxxxxx, bristot@xxxxxxxxxx, alexander.shishkin@xxxxxxxxxxxxxxx, fweisbec@xxxxxxxxx, lpieralisi@xxxxxxxxxx, atishp@xxxxxxxxxxxxxx, linux@xxxxxxxxxxxxxxxxxx, kasan-dev@xxxxxxxxxxxxxxxx, will@xxxxxxxxxx, boris.ostrovsky@xxxxxxxxxx, khilman@xxxxxxxxxx, linux-csky@xxxxxxxxxxxxxxx, pv-drivers@xxxxxxxxxx, linux-snps-arc@xxxxxxxxxxxxxxxxxxx, mgorman@xxxxxxx, jacob.jun.pan@xxxxxxxxxxxxxxx, Arnd Bergmann <arnd@xxxxxxxx>, ulli.kroll@xxxxxxxxxxxxxx, linux-clk@xxxxxxxxxxxxxxx, rostedt@xxxxxxxxxxx, ink@xxxxxxxxxxxxxxxxxxxx, bcain@xxxxxxxxxxx, tsbogend@xxxxxxxxxxxxxxxx, linux-parisc@xxxxxxxxxxxxxxx, ryabinin.a.a@xxxxxxxxx, sudeep.holla@xxxxxxx, shawnguo@xxxxxxxxxx, davem@xxxxxxxxxxxxx, dalias@xxxxxxxx, tony@xxxxxxxxxxx, amakhalov@xxxxxxxxxx, konrad.dybcio@xxxxxxxxxxxxxx, bjorn.andersson@xxxxxxxxxx, glider@xxxxxxxxxx, hpa@xxxxxxxxx, sparclinux@xxxxxxxxxxxxxxx, linux-hexagon@xxxxxxxxxxxxxxx, linux-riscv@xxxxxxxxxxxxxxxxxxx, vincenzo.frascino@xxxxxxx, anton.ivanov@xxxxxxxxxxxxxxxxxx, jonas@xxxxxxxxxxxx, yury.norov@xxxxxxxxx, richard@xxxxxx, x86@xxxxxxxxxx, linux@xxxxxxxxxxxxxxx, mingo@xxxxxxxxxx, aou@xxxxxxxxxxxxxxxxx, hca@xxxxxxxxxxxxx, richard.henderson@xxxxxxxxxx, stefan.kristiansson@xxxxxxxxxxxxx, openrisc@xxxxxxxxxxxxxxxxxxxx, acme@xxxxxxxxxx, paul.walmsley@xxxxxxxxxx, linux-tegra@xxxxxxxxxxxxxxx, namhyung@xxxxxxxxxx, andriy.shevchenko@xxxxxxxxxxxxxxx, jpoimboe@xxxxxxxxxx, dvyukov@xxxxxxxxxx, jgross@xxxxxxxx, monstr@xxxxxxxxx, linux-mips@xxxxxxxxxxxxxxx, palmer@xxxxxxxxxxx, anup@xxxxxxxxxxxxxx, bp@xxxxxxxxx, johannes@xxxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx
- In-reply-to: <20220919101521.886766952@infradead.org>
- References: <20220919095939.761690562@infradead.org> <20220919101521.886766952@infradead.org>
On Mon, 19 Sept 2022 at 12:18, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> None of these functions should ever be ran with RCU disabled anymore.
>
> Specifically, do_handle_IPI() is only called from handle_IPI() which
> explicitly does irq_enter()/irq_exit() which ensures RCU is watching.
>
> The problem with smp_cross_call() was, per commit 7c64cc0531fa ("arm: Use
> _rcuidle for smp_cross_call() tracepoints"), that
> cpuidle_enter_state_coupled() already had RCU disabled, but that's
> long been fixed by commit 1098582a0f6c ("sched,idle,rcu: Push rcu_idle
> deeper into the idle path").
>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
FWIW:
Reviewed-by: Ulf Hansson <ulf.hansson@xxxxxxxxxx>
Kind regards
Uffe
> ---
> arch/arm/kernel/smp.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> --- a/arch/arm/kernel/smp.c
> +++ b/arch/arm/kernel/smp.c
> @@ -639,7 +639,7 @@ static void do_handle_IPI(int ipinr)
> unsigned int cpu = smp_processor_id();
>
> if ((unsigned)ipinr < NR_IPI)
> - trace_ipi_entry_rcuidle(ipi_types[ipinr]);
> + trace_ipi_entry(ipi_types[ipinr]);
>
> switch (ipinr) {
> case IPI_WAKEUP:
> @@ -686,7 +686,7 @@ static void do_handle_IPI(int ipinr)
> }
>
> if ((unsigned)ipinr < NR_IPI)
> - trace_ipi_exit_rcuidle(ipi_types[ipinr]);
> + trace_ipi_exit(ipi_types[ipinr]);
> }
>
> /* Legacy version, should go away once all irqchips have been converted */
> @@ -709,7 +709,7 @@ static irqreturn_t ipi_handler(int irq,
>
> static void smp_cross_call(const struct cpumask *target, unsigned int ipinr)
> {
> - trace_ipi_raise_rcuidle(target, ipi_types[ipinr]);
> + trace_ipi_raise(target, ipi_types[ipinr]);
> __ipi_send_mask(ipi_desc[ipinr], target);
> }
>
>
>
> _______________________________________________
> Virtualization mailing list
> Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx
> https://lists.linuxfoundation.org/mailman/listinfo/virtualization
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]