Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753956AbbHLP72 (ORCPT ); Wed, 12 Aug 2015 11:59:28 -0400 Received: from e33.co.us.ibm.com ([32.97.110.151]:59118 "EHLO e33.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753567AbbHLP70 (ORCPT ); Wed, 12 Aug 2015 11:59:26 -0400 X-Helo: d03dlp03.boulder.ibm.com X-MailFrom: paulmck@linux.vnet.ibm.com X-RcptTo: linux-kernel@vger.kernel.org Date: Wed, 12 Aug 2015 08:59:19 -0700 From: "Paul E. McKenney" To: Frederic Weisbecker Cc: Andy Lutomirski , "ksummit-discuss@lists.linuxfoundation.org" , "linux-kernel@vger.kernel.org" , Christoph Lameter , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Peter Zijlstra , Chris Metcalf , Rik van Riel , benh@kernel.crashing.org, will.deacon@arm.com, linux-arch@vger.kernel.org Subject: Re: [BELATED CORE TOPIC] context tracking / nohz / RCU state Message-ID: <20150812155919.GU3895@linux.vnet.ibm.com> Reply-To: paulmck@linux.vnet.ibm.com References: <20150811183312.GE3895@linux.vnet.ibm.com> <20150812143819.GE21542@lerouge> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150812143819.GE21542@lerouge> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15081215-0009-0000-0000-00000D31F48B Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1838 Lines: 45 On Wed, Aug 12, 2015 at 04:38:21PM +0200, Frederic Weisbecker wrote: > On Tue, Aug 11, 2015 at 11:33:12AM -0700, Paul E. McKenney wrote: > > On Tue, Aug 11, 2015 at 10:49:36AM -0700, Andy Lutomirski wrote: > > > Some arches may need: > > > > > > i_am_lame_and_forgot_my_previous_context() > > > > > > x86 will soon (4.3 or 4.4, depending on how my syscall cleanup goes) > > > no longer need that. > > > > > > Paul says that some arches need something that goes straight from IRQ > > > to user mode (?) -- sigh. > > > > Straight from IRQ to process-level kernel mode. I ran into this in > > late 2011, and clearly should have documented exactly what code was > > doing this. Something about invoking system calls from within the > > kernel on some architectures. > > > > Hey, if no architectures do this anymore, I could simplify RCU a bit! ;-) > > That issue has always been a bit foggy to me :-) > > We never really stated what exactly the issue was. Just performing syscalls > from kernel mode shouldn't fiddle with the dynticks count. > > IIUC, the issue was that some IRQs triggered and never returned. But we > certainly can't remove the safety code without clearly identifying the > issue... This was not a theoretical problem -- there were real failures. But yes, the safety code is there and seems to work OK, so I do need confirmation of a change before removing it. I do recall someone arguing that the half-interrupts should go away, but I never did hear that they really did go away. Adding linux-arch in the hope that someone can say for sure. Thanx, Paul -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/