Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 15 Jun 2018 19:16:50 -0000 Received: from userp2120.oracle.com ([156.151.31.85]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fTuDJ-0005nF-9m for speck@linutronix.de; Fri, 15 Jun 2018 21:16:49 +0200 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5FJEJdP095202 for ; Fri, 15 Jun 2018 19:16:42 GMT Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2jk0xrj5yd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 15 Jun 2018 19:16:42 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w5FJGfLU028417 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 15 Jun 2018 19:16:41 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w5FJGfsd005667 for ; Fri, 15 Jun 2018 19:16:41 GMT Date: Fri, 15 Jun 2018 15:16:32 -0400 From: Konrad Rzeszutek Wilk Subject: [MODERATED] Re: [patch V3 10/12] x86/cpu/intel: Evaluate smp_num_siblings early Message-ID: <20180615191632.GM13695@char.us.oracle.com> References: <20180615162801.748896789@linutronix.de> <20180615162948.279100396@linutronix.de> MIME-Version: 1.0 In-Reply-To: <20180615162948.279100396@linutronix.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Fri, Jun 15, 2018 at 06:28:11PM +0200, speck for Thomas Gleixner wrote: > Subject: [patch V3 10/12] x86/cpu/intel: Evaluate smp_num_siblings early > From: Thomas Gleixner > > 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 Reviewed-by: Konrad Rzeszutek Wilk Thank you! > --- > V2: Drop the bogus 32bit conditional > > 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 > @@ -301,6 +301,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 >