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:14:41 -0000 Received: from aserp2120.oracle.com ([141.146.126.78]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fTuBD-0005jR-PM for speck@linutronix.de; Fri, 15 Jun 2018 21:14:40 +0200 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5FJEQOv134482 for ; Fri, 15 Jun 2018 19:14:32 GMT Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2120.oracle.com with ESMTP id 2jk0xrt4r7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 15 Jun 2018 19:14:32 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w5FJEV03028472 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 15 Jun 2018 19:14:31 GMT Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w5FJEV8j032573 for ; Fri, 15 Jun 2018 19:14:31 GMT Date: Fri, 15 Jun 2018 15:14:30 -0400 From: Konrad Rzeszutek Wilk Subject: [MODERATED] Re: [patch V3 05/12] cpu/hotplug: Provide knobs to control SMT Message-ID: <20180615191430.GL13695@char.us.oracle.com> References: <20180615162801.748896789@linutronix.de> <20180615162947.853265505@linutronix.de> MIME-Version: 1.0 In-Reply-To: <20180615162947.853265505@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:06PM +0200, speck for Thomas Gleixner wrote: > Subject: [patch V3 05/12] cpu/hotplug: Provide knobs to control SMT > From: Thomas Gleixner > > Provide a command line and a sysfs knob to control SMT. > > The command line options are: > > 'nosmt': Enumerate secondary threads, but do not online them > > 'nosmt=force': Ignore secondary threads completely during enumeration > via MP table and ACPI/MADT. > > The sysfs control file has the following states (read/write): > > 'on': SMT is enabled. Secondary threads can be freely onlined > 'off': SMT is disabled. Secondary threads, even if enumerated > cannot be onlined > 'forceoff': SMT is permanentely disabled. Writes to the control > file are rejected. > > The command line option 'nosmt' sets the sysfs control to 'off'. This > can be changed to 'on' to reenable SMT during runtime. > > The command line option 'nosmt=force' sets the sysfs control to > 'forceoff'. This cannot be changed during runtime. > > When SMT is 'on' and the control file is changed to 'off' then all online > secondary threads are offlined and attempts to online a secondary thread > later are rejected. s/later are/later on are/ With this change or not: Reviewed-by: Konrad Rzeszutek Wilk Thank you!