From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932165AbbEHNZn (ORCPT ); Fri, 8 May 2015 09:25:43 -0400 Received: from terminus.zytor.com ([198.137.202.10]:48298 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932143AbbEHNZj (ORCPT ); Fri, 8 May 2015 09:25:39 -0400 Date: Fri, 8 May 2015 06:24:39 -0700 From: tip-bot for Michael Ellerman Message-ID: Cc: paulus@samba.org, akpm@osdl.org, linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org, mingo@kernel.org, bp@alien8.de, mpe@ellerman.id.au, hpa@zytor.com, anton@samba.org, peterz@infradead.org, tglx@linutronix.de 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 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-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.