Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753542Ab0FOMRM (ORCPT ); Tue, 15 Jun 2010 08:17:12 -0400 Received: from e23smtp07.au.ibm.com ([202.81.31.140]:60879 "EHLO e23smtp07.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752635Ab0FOMRK (ORCPT ); Tue, 15 Jun 2010 08:17:10 -0400 Date: Tue, 15 Jun 2010 17:45:06 +0530 From: Srikar Dronamraju To: Oleg Nesterov Cc: Christoph Hellwig , Peter Zijlstra , Ingo Molnar , Masami Hiramatsu , Mel Gorman , Randy Dunlap , Arnaldo Carvalho de Melo , Steven Rostedt , Roland McGrath , "H. Peter Anvin" , Ananth N Mavinakayanahalli , Mark Wielaard , Mathieu Desnoyers , Andrew Morton , Linus Torvalds , Frederic Weisbecker , Jim Keniston , "Rafael J. Wysocki" , "Frank Ch. Eigler" , LKML , "Paul E. McKenney" Subject: Re: [PATCH v5 7/14] x86 support for Uprobes Message-ID: <20100615121506.GM13800@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <20100614082748.29068.21995.sendpatchset@localhost6.localdomain6> <20100614082913.29068.86825.sendpatchset@localhost6.localdomain6> <20100614175423.GG23754@infradead.org> <20100615062332.GE13800@linux.vnet.ibm.com> <20100615115155.GA4831@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20100615115155.GA4831@redhat.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1765 Lines: 44 > > > > > > I'm no x86 port guru, but this looks rather worriesome to me. Why does > > > do_notify_resume have different calling conventions on 32 vs 64-bit? > > > And if there is a good reason that 32-bit has them disabled, why is > > > enabling them in the middle of do_notify_resume okay? > > > > Thanks for bringing this up. I have no idea about why do_notify_resume() > > gets called with interrupts disabled in 32 bit. > > Perhaps just because there is no reason to explicitly enable irqs? > > > I would be happy to know > > the reason and rework based on inputs. I did query a few people about > > this but I havent got an answer on why we they are disabled on 32 bit and > > if its Okay to enable at this place. > > I think it is OK to enable interrupts. do_notify_resume() calls do_signal() > which enables them anyway. > > But there is another question I already asked. Why the code uses > native_irq_enable()? IIRC, you explained that local_irq_enable() doesn't > work for unkown reason. This is strange, and imho should be explained. > local_irq_enable() translates to raw_local_irq_enable(). However raw_local_irq_enable on x86 seems to depend on CONFIG_PARAVIRT. On a machine, where CONFIG_PARAVIRT was defined, local_irq_enable translates to something other than native_irq_enable. It translates to PVOP_VCALLEE0(pv_irq_ops.irq_enable); Is it okay to use local_irq_enable() and then make CONFIG_UPROBES depend on !CONFIG_PARAVIRT? > And I do not see a need to disable irqs again. > > Oleg. > -- 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/