Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757684Ab0GNUK7 (ORCPT ); Wed, 14 Jul 2010 16:10:59 -0400 Received: from terminus.zytor.com ([198.137.202.10]:59615 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757668Ab0GNUK4 (ORCPT ); Wed, 14 Jul 2010 16:10:56 -0400 Message-ID: <4C3E194C.90602@zytor.com> Date: Wed, 14 Jul 2010 13:08:44 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Thunderbird/3.0.5 MIME-Version: 1.0 To: Andi Kleen CC: Mathieu Desnoyers , Linus Torvalds , Ingo Molnar , LKML , Andrew Morton , Peter Zijlstra , Steven Rostedt , Steven Rostedt , Frederic Weisbecker , Thomas Gleixner , Christoph Hellwig , Li Zefan , Lai Jiangshan , Johannes Berg , Masami Hiramatsu , Arnaldo Carvalho de Melo , Tom Zanussi , KOSAKI Motohiro , Jeremy Fitzhardinge , "Frank Ch. Eigler" , Tejun Heo Subject: Re: [patch 1/2] x86_64 page fault NMI-safe References: <20100714154923.947138065@efficios.com> <20100714155804.049012415@efficios.com> <20100714170617.GB4955@Krystal> <20100714184642.GA9728@elte.hu> <20100714195617.GC22373@basil.fritz.box> <20100714200552.GA22096@Krystal> <20100714200745.GD22373@basil.fritz.box> In-Reply-To: <20100714200745.GD22373@basil.fritz.box> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 837 Lines: 21 On 07/14/2010 01:07 PM, Andi Kleen wrote: >>> In fact I'm pretty sure it worked originally. Perhaps it regressed? >> >> I'd first ask the obvious to Perf authors: does perf issue vmalloc_sync_all() >> between percpu data allocation and tracing activation ? The generic ring buffer >> library I posted last week does it already as a precaution for this very >> specific reason (making sure NMIs never trigger page faults). > > I suspect the low level per cpu allocation functions should > just call it. > Yes, specifically the point at which we allocate new per cpu memory blocks. -hpa -- 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/