lkml.org 
[lkml]   [2023]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC PATCH v3 32/32] x86/fred: disable FRED by default in its early stage
    Date
    Disable FRED by default in its early stage.

    To enable FRED, a new kernel command line option "fred" needs to be added.

    Signed-off-by: Xin Li <xin3.li@intel.com>
    ---
    Documentation/admin-guide/kernel-parameters.txt | 4 ++++
    arch/x86/kernel/cpu/common.c | 3 +++
    2 files changed, 7 insertions(+)

    diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
    index 1d2f92edb5a1..7d0a0c303e06 100644
    --- a/Documentation/admin-guide/kernel-parameters.txt
    +++ b/Documentation/admin-guide/kernel-parameters.txt
    @@ -1519,6 +1519,10 @@
    Warning: use of this parameter will taint the kernel
    and may cause unknown problems.

    + fred
    + Forcefully enable flexible return and event delivery,
    + which is otherwise disabled by default.
    +
    ftrace=[tracer]
    [FTRACE] will set and start the specified tracer
    as early as possible in order to facilitate early
    diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
    index 550da2a61ae2..8f1a6cdb0108 100644
    --- a/arch/x86/kernel/cpu/common.c
    +++ b/arch/x86/kernel/cpu/common.c
    @@ -1461,6 +1461,9 @@ static void __init cpu_parse_early_param(void)
    char *argptr = arg, *opt;
    int arglen, taint = 0;

    + if (!cmdline_find_option_bool(boot_command_line, "fred"))
    + setup_clear_cpu_cap(X86_FEATURE_FRED);
    +
    #ifdef CONFIG_X86_32
    if (cmdline_find_option_bool(boot_command_line, "no387"))
    #ifdef CONFIG_MATH_EMULATION
    --
    2.34.1
    \
     
     \ /
      Last update: 2023-03-27 00:34    [W:8.801 / U:0.072 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site