Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1216132ybi; Tue, 16 Jul 2019 11:21:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJXMmFtMD2NU/5mZaddvigtZH6BMR6jYnhsFK7lxap/OECFmMASPPVEvoCzhFtxhmLCrXQ X-Received: by 2002:a63:5860:: with SMTP id i32mr8841915pgm.124.1563301296727; Tue, 16 Jul 2019 11:21:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563301296; cv=none; d=google.com; s=arc-20160816; b=sB5e8BTZ7sWMC4rDI2RI6VyDWsx9ndEhDVIxqLU+wobgiRVMRJCDqU98GfhugzpAfT um2qiKpvdSJ4Xa10TIuxXcvEGjH7CKKYVKb7+FRen7Qq03aYPWVfXdxKb5XrQbwzi8SI pDmKsDem3IXPoI1dCdpW5RKtBgXhIbChvi4+ryv6E3iYTADOR73g6Q/YW2bxsxrMHM5D kLioGy69eSB8c3XCXsrR+11hVphRPPrbyrq/xugNvtWcLRPx47hpv9WkDiOPyRcAXoFA nYRSyV5z0Oy/CAqvYpqfKmgF9vCFsAlMKSKiv7k6EP+GAKlpBf1qbU6w0703ALEMNjuw 35CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date; bh=IonTceya6O8D8RnWPHwROCMojH4sXKe5lMVQfakl/cI=; b=Q4/bwMPOPwVzb+IYE5xrRcTIuGHA4rkkNvXnv1HNolbpQbEQ2z7DPcALn3mdA6an5e NULzaBRhvsqE3f/N1GjO9xZO5S8FpeypeaLk5AZCOicoQhO6nVfez4z1/f69N5KrLtth hzfDehI6X5XTU11z1fraG/lEMqM2DMSMgYez/pgiLhACqWcUrzC1EiamgCiWmtD1l/v2 BTL1IDgBC65BqUlHzH/BoO2QAuvCVZ2GhUgSwJyXRm0YzyMJTAq6lNxpYvuE9Nz8f7U6 nhT1/5JkwIsBhLxjxroRRiEliVfQp7dBL2QP4aPzjO2IGgrz3xKtvC1uhi9giJ2s4DvQ DFrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cp2si20210919plb.437.2019.07.16.11.21.20; Tue, 16 Jul 2019 11:21:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388391AbfGPSVA (ORCPT + 99 others); Tue, 16 Jul 2019 14:21:00 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:58658 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388360AbfGPSVA (ORCPT ); Tue, 16 Jul 2019 14:21:00 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x6GIHRuK126663 for ; Tue, 16 Jul 2019 14:20:58 -0400 Received: from e14.ny.us.ibm.com (e14.ny.us.ibm.com [129.33.205.204]) by mx0a-001b2d01.pphosted.com with ESMTP id 2tshrsd9jb-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 16 Jul 2019 14:20:58 -0400 Received: from localhost by e14.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 16 Jul 2019 19:20:57 +0100 Received: from b01cxnp23034.gho.pok.ibm.com (9.57.198.29) by e14.ny.us.ibm.com (146.89.104.201) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 16 Jul 2019 19:20:52 +0100 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x6GIKp1553281116 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Jul 2019 18:20:51 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4C66AB2067; Tue, 16 Jul 2019 18:20:51 +0000 (GMT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 285F9B205F; Tue, 16 Jul 2019 18:20:51 +0000 (GMT) Received: from paulmck-ThinkPad-W541 (unknown [9.80.225.134]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Tue, 16 Jul 2019 18:20:51 +0000 (GMT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 2E12116C8EBE; Tue, 16 Jul 2019 11:20:51 -0700 (PDT) Date: Tue, 16 Jul 2019 11:20:51 -0700 From: "Paul E. McKenney" To: Thomas Gleixner Cc: Linus Torvalds , LKML , Andrew Morton , Greg Kroah-Hartman , Ingo Molnar , Peter Zijlstra , Steven Rostedt , Sebastian Siewior , Christoph Hellwig , Tejun Heo , Lukas Bulwahn , Daniel Wagner , Tom Zanussi , Daniel Bristot de Oliveira , Clark Williams , Julia Cartwright , Marc Zyngier , Frederic Weisbecker Subject: Re: [patch 1/1] Kconfig: Introduce CONFIG_PREEMPT_RT Reply-To: paulmck@linux.ibm.com References: <20190715150402.798499167@linutronix.de> <20190715150601.205143057@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190715150601.205143057@linutronix.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 19071618-0052-0000-0000-000003DFC3F6 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00011440; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000286; SDB=6.01233101; UDB=6.00649715; IPR=6.01014413; MB=3.00027748; MTD=3.00000008; XFM=3.00000015; UTC=2019-07-16 18:20:56 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19071618-0053-0000-0000-000061B752D6 Message-Id: <20190716182051.GC14271@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-07-16_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907160224 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 15, 2019 at 05:04:03PM +0200, Thomas Gleixner wrote: > Add a new entry to the preemption menu which enables the real-time support > for the kernel. The choice is only enabled when an architecture supports > it. > > It selects PREEMPT as the RT features depend on it. To achieve that the > existing PREEMPT choice is renamed to PREEMPT_LL which select PREEMPT as > well. > > No functional change. > > Signed-off-by: Thomas Gleixner This would make it easier to get some of the remaining RCU patches from -rt to mainline, for example, the rcutorture changes proposed recently. Acked-by: Paul E. McKenney > --- > arch/Kconfig | 3 +++ > kernel/Kconfig.preempt | 25 +++++++++++++++++++++++-- > 2 files changed, 26 insertions(+), 2 deletions(-) > > --- a/arch/Kconfig > +++ b/arch/Kconfig > @@ -809,6 +809,9 @@ config ARCH_NO_COHERENT_DMA_MMAP > config ARCH_NO_PREEMPT > bool > > +config ARCH_SUPPORTS_RT > + bool > + > config CPU_NO_EFFICIENT_FFS > def_bool n > > --- a/kernel/Kconfig.preempt > +++ b/kernel/Kconfig.preempt > @@ -35,10 +35,10 @@ config PREEMPT_VOLUNTARY > > Select this if you are building a kernel for a desktop system. > > -config PREEMPT > +config PREEMPT_LL > bool "Preemptible Kernel (Low-Latency Desktop)" > depends on !ARCH_NO_PREEMPT > - select PREEMPT_COUNT > + select PREEMPT > select UNINLINE_SPIN_UNLOCK if !ARCH_INLINE_SPIN_UNLOCK > help > This option reduces the latency of the kernel by making > @@ -55,7 +55,28 @@ config PREEMPT > embedded system with latency requirements in the milliseconds > range. > > +config PREEMPT_RT > + bool "Fully Preemptible Kernel (Real-Time)" > + depends on EXPERT && ARCH_SUPPORTS_RT > + select PREEMPT > + help > + This option turns the kernel into a real-time kernel by replacing > + various locking primitives (spinlocks, rwlocks, etc) with > + preemptible priority-inheritance aware variants, enforcing > + interrupt threading and introducing mechanisms to break up long > + non-preemtible sections. This makes the kernel, except for very > + low level and critical code pathes (entry code, scheduler, low > + level interrupt handling) fully preemtible and brings most > + execution contexts under scheduler control. > + > + Select this if you are building a kernel for systems which > + require real-time guarantees. > + > endchoice > > config PREEMPT_COUNT > bool > + > +config PREEMPT > + bool > + select PREEMPT_COUNT > >