Re: [BUGFIX][PATCH RESEND] Freezer, CPU hotplug, x86 Microcode: Fixtask freezing failures

From: Borislav Petkov
Date: Thu Oct 06 2011 - 18:34:45 EST


On Thu, Oct 06, 2011 at 06:13:34PM -0400, Tejun Heo wrote:
> Hello,
>
> On Fri, Oct 07, 2011 at 02:05:49AM +0530, Srivatsa S. Bhat wrote:
> ...
> > diff --git a/arch/x86/kernel/microcode_core.c b/arch/x86/kernel/microcode_core.c
> > index f924280..cd7ef2f 100644
> > --- a/arch/x86/kernel/microcode_core.c
> > +++ b/arch/x86/kernel/microcode_core.c
> > @@ -483,7 +483,15 @@ mc_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu)
> > sysfs_remove_group(&sys_dev->kobj, &mc_attr_group);
> > pr_debug("CPU%d removed\n", cpu);
> > break;
> > - case CPU_DEAD:
> > +
> > + /*
> > + * Do not invalidate the microcode if a CPU goes offline,
> > + * because it would be impossible to get the microcode again
> > + * from userspace when the CPU comes back up, if the userspace
> > + * happens to be frozen at that moment by the freezer subsystem,
> > + * for example, due to a suspend operation in progress.
> > + */
> > +
>
> This still looks like a bandaid to me. The exclusion approach didn't
> pan out?

Well, this saves us the needless reloading of the ucode image when the
CPU comes back online and is an annoyance fix and onlining path speedup
in its own right. I, as you, thought that the exclusion approach should
be the proper fix. Srivatsa?

Thanks.

--
Regards/Gruss,
Boris.

Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach
GM: Alberto Bozzo
Reg: Dornach, Landkreis Muenchen
HRB Nr. 43632 WEEE Registernr: 129 19551
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/