lkml.org 
[lkml]   [2018]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.9 046/107] x86/cpu/intel: Evaluate smp_num_siblings early
    Date
    4.9-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Thomas Gleixner <tglx@linutronix.de>

    commit 1910ad5624968f93be48e8e265513c54d66b897c upstream

    Make use of the new early detection function to initialize smp_num_siblings
    on the boot cpu before the MP-Table or ACPI/MADT scan happens. That's
    required for force disabling SMT.

    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    Acked-by: Ingo Molnar <mingo@kernel.org>
    Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    arch/x86/kernel/cpu/intel.c | 7 +++++++
    1 file changed, 7 insertions(+)

    --- a/arch/x86/kernel/cpu/intel.c
    +++ b/arch/x86/kernel/cpu/intel.c
    @@ -283,6 +283,13 @@ static void early_init_intel(struct cpui
    }

    check_mpx_erratum(c);
    +
    + /*
    + * Get the number of SMT siblings early from the extended topology
    + * leaf, if available. Otherwise try the legacy SMT detection.
    + */
    + if (detect_extended_topology_early(c) < 0)
    + detect_ht_early(c);
    }

    #ifdef CONFIG_X86_32

    \
     
     \ /
      Last update: 2018-08-14 19:58    [W:2.455 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site