From patchwork Fri May 8 13:24:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "tip-bot for Paul E. McKenney" X-Patchwork-Id: 470060 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 624FF1401AB for ; Fri, 8 May 2015 23:49:52 +1000 (AEST) Received: from ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48A9D1A1700 for ; Fri, 8 May 2015 23:49:52 +1000 (AEST) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id D97251A00E9 for ; Fri, 8 May 2015 23:48:58 +1000 (AEST) Received: by ozlabs.org (Postfix) id C639F140283; Fri, 8 May 2015 23:48:58 +1000 (AEST) Delivered-To: linuxppc-dev@ozlabs.org X-Greylist: delayed 1409 seconds by postgrey-1.35 at bilbo; Fri, 08 May 2015 23:48:58 AEST Received: from mail.zytor.com (terminus.zytor.com [IPv6:2001:1868:205::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 908371401AB for ; Fri, 8 May 2015 23:48:58 +1000 (AEST) Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.14.8/8.14.7) with ESMTP id t48DOebH010149; Fri, 8 May 2015 06:24:45 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.14.8/8.14.7/Submit) id t48DOdHQ010135; Fri, 8 May 2015 06:24:39 -0700 Date: Fri, 8 May 2015 06:24:39 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Michael Ellerman Message-ID: In-Reply-To: <1430720799-18426-1-git-send-email-mpe@ellerman.id.au> References: <1430720799-18426-1-git-send-email-mpe@ellerman.id.au> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf_event: Don't allow vmalloc() backed perf on powerpc Git-Commit-ID: cb307113746b4d184155d2c412e8069aeaa60d42 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on terminus.zytor.com Cc: akpm@osdl.org, peterz@infradead.org, linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, paulus@samba.org, anton@samba.org, hpa@zytor.com, bp@alien8.de, tglx@linutronix.de, mingo@kernel.org X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.18 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: mpe@ellerman.id.au, bp@alien8.de, hpa@zytor.com, linuxppc-dev@ozlabs.org, paulus@samba.org, akpm@osdl.org, mingo@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, peterz@infradead.org, anton@samba.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Commit-ID: cb307113746b4d184155d2c412e8069aeaa60d42 Gitweb: http://git.kernel.org/tip/cb307113746b4d184155d2c412e8069aeaa60d42 Author: Michael Ellerman AuthorDate: Mon, 4 May 2015 16:26:39 +1000 Committer: Ingo Molnar CommitDate: Fri, 8 May 2015 12:26:01 +0200 perf_event: Don't allow vmalloc() backed perf on powerpc On powerpc the perf event interrupt is not masked when interrupts are disabled, allowing it to function as an NMI. This causes problems if perf is using vmalloc. If we take a page fault on the vmalloc region the fault handler will fail the page fault because it detects we are coming in from an NMI (see do_hash_page()). We don't actually need or want vmalloc backed perf so just disable it on powerpc. Signed-off-by: Michael Ellerman Signed-off-by: Peter Zijlstra (Intel) Cc: Cc: Andrew Morton Cc: Anton Blanchard Cc: Borislav Petkov Cc: H. Peter Anvin Cc: Paul Mackerras Cc: Thomas Gleixner Cc: acme@ghostprotocols.net Cc: sukadev@linux.vnet.ibm.com Link: http://lkml.kernel.org/r/1430720799-18426-1-git-send-email-mpe@ellerman.id.au Signed-off-by: Ingo Molnar --- init/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/Kconfig b/init/Kconfig index dc24dec..81050e4 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1637,7 +1637,7 @@ config PERF_EVENTS config DEBUG_PERF_USE_VMALLOC default n bool "Debug: use vmalloc to back perf mmap() buffers" - depends on PERF_EVENTS && DEBUG_KERNEL + depends on PERF_EVENTS && DEBUG_KERNEL && !PPC select PERF_USE_VMALLOC help Use vmalloc memory to back perf mmap() buffers.