Re: [tip: sched/urgent] sched/deadline: Fix dl_server getting stuck

From: Peter Zijlstra
Date: Thu Oct 09 2025 - 05:27:03 EST


On Mon, Sep 29, 2025 at 05:19:27PM +0200, Marek Szyprowski wrote:

> Thanks for some hints, but unfortunately ARM64 doesn't support
> earlyprintk, so I was not able to use this method.

I've been told it is called earlycon= on arm; still sets up
early_console and make early_printk() work.

My patches just re-route everything printk() into early_printk().

> However I've played a bit with this code and found that this strange
> wake-up of the CPU7 seems to be caused by the timer. If I restore
>
>   if (!dl_se->server_has_tasks(dl_se))
>           return HRTIMER_NORESTART;
>
> part in the dl_server_timer, the everything works again as before this
> patch.

Right, so something on your platform is not working right. Stray timers
should not wake up CPUs.

> This issue is however not Exynos5433 ARM 64bit specific. Similar lockup
> happens on Exynos5422 ARM 32bit boards, although there is no message in
> that case. Does it mean that handling of the hrtimers on Exynos boards
> is a bit broken in the context of CPU hotplug?

There is this thread:

https://lkml.kernel.org/r/20251009080007.GH3245006@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I suspect this might be the same issue and we've made a little progress
there.