Re: [patch 17/17] x86/fpu: Move FPU initialization into arch_cpu_finalize_init()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Nikolay Borisov <nik.borisov@xxxxxxxx>
- Subject: Re: [patch 17/17] x86/fpu: Move FPU initialization into arch_cpu_finalize_init()
- From: Guenter Roeck <linux@xxxxxxxxxxxx>
- Date: Fri, 1 Sep 2023 14:09:17 -0700
- Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>, LKML <linux-kernel@xxxxxxxxxxxxxxx>, x86@xxxxxxxxxx, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>, "Ahmed S. Darwish" <darwi@xxxxxxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, Russell King <linux@xxxxxxxxxxxxxxx>, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, Huacai Chen <chenhuacai@xxxxxxxxxx>, WANG Xuerui <kernel@xxxxxxxxxx>, loongarch@xxxxxxxxxxxxxxx, Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>, linux-m68k@xxxxxxxxxxxxxxx, Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx>, linux-mips@xxxxxxxxxxxxxxx, Yoshinori Sato <ysato@xxxxxxxxxxxxx>, Rich Felker <dalias@xxxxxxxx>, John Paul Adrian Glaubitz <glaubitz@xxxxxxxxxxxxxxxxxxx>, linux-sh@xxxxxxxxxxxxxxx, "David S. Miller" <davem@xxxxxxxxxxxxx>, sparclinux@xxxxxxxxxxxxxxx, Richard Weinberger <richard@xxxxxx>, Anton Ivanov <anton.ivanov@xxxxxxxxxxxxxxxxxx>, Johannes Berg <johannes@xxxxxxxxxxxxxxxx>, linux-um@xxxxxxxxxxxxxxxxxxx, Richard Henderson <richard.henderson@xxxxxxxxxx>, "James E.J. Bottomley" <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx>, Michael Ellerman <mpe@xxxxxxxxxxxxxx>, Chris Zankel <chris@xxxxxxxxxx>, Tom Lendacky <thomas.lendacky@xxxxxxx>, semenzato@xxxxxxxxxx
- In-reply-to: <6a09294e-2c07-585b-336b-20d07e7e08ba@suse.com>
- References: <20230613223827.532680283@linutronix.de> <20230613224545.902376621@linutronix.de> <ba1b11e5-b3f0-457b-8920-d57d470626c3@roeck-us.net> <6a09294e-2c07-585b-336b-20d07e7e08ba@suse.com>
On Fri, Sep 01, 2023 at 09:02:19PM +0300, Nikolay Borisov wrote:
>
>
> On 1.09.23 г. 20:30 ч., Guenter Roeck wrote:
> > Hi,
> >
> > On Wed, Jun 14, 2023 at 01:39:46AM +0200, Thomas Gleixner wrote:
> > > Initializing the FPU during the early boot process is a pointless
> > > exercise. Early boot is convoluted and fragile enough.
> > >
> > > Nothing requires that the FPU is set up early. It has to be initialized
> > > before fork_init() because the task_struct size depends on the FPU register
> > > buffer size.
> > >
> > > Move the initialization to arch_cpu_finalize_init() which is the perfect
> > > place to do so.
> > >
> > > No functional change.
> > >
> > > This allows to remove quite some of the custom early command line parsing,
> > > but that's subject to the next installment.
> > >
> > > Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> >
> > The backport of this patch into chromeos-5.10 and chromeos-5.15 via stable
> > relase merges is causing various Chromebooks (not all of them) to crash
> > early during boot. Subsequent fixes have not addressed the problem for us,
> > so we already reverted the patch from chromeos-5.15 and will revert it
> > from chromeos-5.10 as well.
> >
> > I don't know if this is a Chromebook specific problem, or if it affects
> > mainline, so this is just a heads-up in case others experience similar
> > problems.
>
>
> Another thing - if you choose to revert the arch_finalize patch then bear in
> mind that the GDS' 'force' option is rendered inoperable as the FPU can't be
> disabled due to the way things are sequenced.
I understand, but that is still better than not being able to boot
in the first place.
Thanks,
Guenter
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]