From: Frederic Weisbecker <frederic@kernel.org>
To: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Thomas Gleixner <tglx@kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
Anna-Maria Behnsen <anna-maria@linutronix.de>
Subject: Re: [PATCH 1/2] timers/migration: Fix hotplug migrator selection target on asymetric capacity machines
Date: Mon, 8 Jun 2026 16:04:45 +0200 [thread overview]
Message-ID: <aibL_aszTVjZ5ShV@localhost.localdomain> (raw)
In-Reply-To: <928989ef-8cca-4956-aeb6-3cfe5a74785c@samsung.com>
Le Mon, Jun 08, 2026 at 11:45:37AM +0200, Marek Szyprowski a écrit :
> Dear All,
>
> On 20.05.2026 00:09, Frederic Weisbecker wrote:
> > When a top-level migrator is deactivated, either at CPU down hotplug
> > time or when a CPU is domain isolated, a new migrator is elected among
> > the available CPUs and woken up to take over the migration duty.
> >
> > However that election must happen at the scope of a given hierarchy and
> > not globally, which the introduction of per-capacity hierarchies failed
> > to handle.
> >
> > As a result a given hierarchy may end up without migrator to handle
> > global timers.
> >
> > Fix it with making sure that the new migrator belongs to the same
> > hierarchy as the outgoing CPU.
> >
> > Fixes: 098cbaad8e57 ("timers/migration: Split per-capacity hierarchies")
> > Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
>
> This patch landed recently in linux-next as commit e4a70f5fbd43 ("timers/migration:
> Fix hotplug migrator selection target on asymetric capacity machines"). In my tests
> I found that it breaks system suspend/resume on some legacy big.LITTLE ARM machines.
>
>
> Reverting $subject, together with dependent commit d4f198c13611 ("timers/migration:
> Deactivate per-capacity hierarchies under nohz_full") on top of linux-next fixes
> this issue. Here is the log from the system suspend/resume failure introduced by
> the $subject patch:
>
>
> root@target:~# time rtcwake -s10 -mmem
> rtcwake: wakeup from "mem" using /dev/rtc0 at Mon Jun 8 11:17:23 2026
> PM: suspend entry (deep)
> Filesystems sync: 0.000 seconds
> Freezing user space processes
> Freezing user space processes completed (elapsed 0.002 seconds)
> OOM killer disabled.
> Freezing remaining freezable tasks
> Freezing remaining freezable tasks completed (elapsed 0.042 seconds)
> printk: Suspending console(s) (use no_console_suspend to debug)
> ...
> Disabling non-boot CPUs ...
> ------------[ cut here ]------------
> WARNING: kernel/time/timer_migration.c:1505 at
> tmigr_clear_cpu_available+0x3b8/0x3c8, CPU#5: cpuhp/5/40
Thanks but which tree is this? The only warning I see there is on line 1521
1532 (tip:timers/core).
It's probably line 1521 somehow. Is it possible that arch_scale_cpu_capacity()
returns a different result between CPU boot up and CPU down?
Thanks.
--
Frederic Weisbecker
SUSE Labs
next prev parent reply other threads:[~2026-06-08 14:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-19 22:09 [PATCH 0/2] timers/migration: Fixes on top of per capacity hierarchies Frederic Weisbecker
2026-05-19 22:09 ` [PATCH 1/2] timers/migration: Fix hotplug migrator selection target on asymetric capacity machines Frederic Weisbecker
2026-06-02 19:35 ` [tip: timers/core] " tip-bot2 for Frederic Weisbecker
[not found] ` <CGME20260608094538eucas1p1b87572e8b8af819ccb1537c38cd51957@eucas1p1.samsung.com>
2026-06-08 9:45 ` [PATCH 1/2] " Marek Szyprowski
2026-06-08 14:04 ` Frederic Weisbecker [this message]
2026-06-08 14:15 ` Marek Szyprowski
2026-05-19 22:09 ` [PATCH 2/2] timers/migration: Deactivate per-capacity hierarchies under nohz_full Frederic Weisbecker
2026-06-02 19:35 ` [tip: timers/core] " tip-bot2 for Frederic Weisbecker
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=aibL_aszTVjZ5ShV@localhost.localdomain \
--to=frederic@kernel.org \
--cc=anna-maria@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=tglx@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
Powered by JetHome