From: Borislav Petkov <bp@alien8.de>
To: Mike Hommey <mh@glandium.org>
Cc: x86@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] x86/boot: Handle fpu-related and clearcpuid command line arguments earlier
Date: Mon, 21 Sep 2020 15:10:05 +0200 [thread overview]
Message-ID: <20200921131005.GF5901@zn.tnic> (raw)
In-Reply-To: <20200920220036.7469-1-mh@glandium.org>
On Mon, Sep 21, 2020 at 07:00:36AM +0900, Mike Hommey wrote:
> FPU initialization handles them currently. However, in the case of
> clearcpuid, some other early initialization code may check for features
> before the FPU initialization code is called. Handling the argument
> earlier allows the command line to influence those early
> initializations.
>
> Signed-off-by: Mike Hommey <mh@glandium.org>
> ---
> arch/x86/kernel/cpu/common.c | 41 ++++++++++++++++++++++++++++++++++++
> arch/x86/kernel/fpu/init.c | 41 ------------------------------------
> 2 files changed, 41 insertions(+), 41 deletions(-)
>
> diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
> index c5d6f17d9b9d..5e2e4d3621bd 100644
> --- a/arch/x86/kernel/cpu/common.c
> +++ b/arch/x86/kernel/cpu/common.c
> @@ -23,6 +23,7 @@
> #include <linux/syscore_ops.h>
> #include <linux/pgtable.h>
>
> +#include <asm/cmdline.h>
> #include <asm/stackprotector.h>
> #include <asm/perf_event.h>
> #include <asm/mmu_context.h>
> @@ -1220,6 +1221,45 @@ static void detect_nopl(void)
> #endif
> }
>
> +/*
> + * We parse cpu parameters early because early_identify_cpu() is executed
> + * before parse_early_param().
> + */
> +static void __init cpu__init_parse_early_param(void)
Yeah, let's call it simply "cpu_parse_early_param".
Also, I forgot to says this, sorry about that, but can you pls do your
patch ontop of tip/master:
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/log/
because there are other changes in that area and your patch as is,
doesn't apply.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
next prev parent reply other threads:[~2020-09-21 13:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-20 1:03 [PATCH] x86/boot: Delay BSP init until after FPU initialization Mike Hommey
2020-09-20 8:36 ` Borislav Petkov
2020-09-20 22:00 ` [PATCH v2] x86/boot: Handle fpu-related and clearcpuid command line arguments earlier Mike Hommey
2020-09-21 13:10 ` Borislav Petkov [this message]
2020-09-21 21:56 ` [PATCH v3] " Mike Hommey
2020-09-22 9:25 ` [tip: x86/fpu] x86/fpu: Handle FPU-related " tip-bot2 for Mike Hommey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200921131005.GF5901@zn.tnic \
--to=bp@alien8.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mh@glandium.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox