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: "Chang S. Bae" <chang.seok.bae@xxxxxxxxx>, LKML <linux-kernel@xxxxxxxxxxxxxxx>
- Subject: Re: [patch 17/17] x86/fpu: Move FPU initialization into arch_cpu_finalize_init()
- From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
- Date: Wed, 14 Jun 2023 11:52:14 +0200
- Cc: x86@xxxxxxxxxx, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>, Nikolay Borisov <nik.borisov@xxxxxxxx>, "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>
- In-reply-to: <23dc1c47-88ee-6b2d-1a5a-d6c812bb1761@intel.com>
- References: <20230613223827.532680283@linutronix.de> <20230613224545.902376621@linutronix.de> <23dc1c47-88ee-6b2d-1a5a-d6c812bb1761@intel.com>
On Tue, Jun 13 2023 at 22:03, Chang S. Bae wrote:
> On 6/13/2023 4:39 PM, Thomas Gleixner wrote:
>>
>> @@ -2396,6 +2393,13 @@ void __init arch_cpu_finalize_init(void)
>> '0' + (boot_cpu_data.x86 > 6 ? 6 : boot_cpu_data.x86);
>> }
>>
>> + /*
>> + * Must be before alternatives because it might set or clear
>> + * feature bits.
>> + */
>> + fpu__init_system();
>> + fpu__init_cpu();
>
> fpu__init_cpu() appears to be duplicated here because fpu__init_system()
> invoked this already:
>
> void __init fpu__init_system(void)
> {
> ...
> /*
> * The FPU has to be operational for some of the
> * later FPU init activities:
> */
> fpu__init_cpu();
Well, that's _before_ xstate initialization and I couldn't convince
myself that it's good enough. All of this is such a horrible mess...
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]