Re: [PATCH v3 05/15] arm64: Don't use disable_nonboot_cpus()
From: Qais Yousef
Date: Fri Mar 20 2020 - 10:07:47 EST
On 03/17/20 11:21, Catalin Marinas wrote:
> On Sun, Feb 23, 2020 at 07:29:32PM +0000, Qais Yousef wrote:
> > disable_nonboot_cpus() is not safe to use when doing machine_down(),
> > because it relies on freeze_secondary_cpus() which in turn is
> > a suspend/resume related freeze and could abort if the logic detects any
> > pending activities that can prevent finishing the offlining process.
> >
> > Beside disable_nonboot_cpus() is dependent on CONFIG_PM_SLEEP_SMP which
> > is an othogonal config to rely on to ensure this function works
> > correctly.
> >
> > Use `reboot_cpu` variable instead of hardcoding 0 as the reboot cpu.
> >
> > Signed-off-by: Qais Yousef <qais.yousef@xxxxxxx>
> > CC: Catalin Marinas <catalin.marinas@xxxxxxx>
> > CC: Will Deacon <will@xxxxxxxxxx>
> > CC: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
> > CC: linux-kernel@xxxxxxxxxxxxxxx
>
> I'm not sure whether these patches have been queued already (still
> unread in my inbox), so here it is:
>
> Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx>
Thanks Catalin!
Russel has requested to split the arm patch into 2 so that the change to
use reboot_cpu is in a separate patch. I'll do the same for arm64 to stay
consistent. I'll add your Acked-by to both patches if that's okay.
Please shout if you have any objection.
Thanks
--
Qais Yousef