Re: [PATCH] powerpc/perf: Freeze PMC5/6 if we're not using them on Power8

2013-06-13 Thread Anshuman Khandual
On 06/13/2013 06:46 AM, Michael Ellerman wrote: On Power8 we can freeze PMC5 and 6 if we're not using them. Normally they run all the time. Signed-off-by: Michael Ellerman mich...@ellerman.id.au --- arch/powerpc/include/asm/reg.h |1 + arch/powerpc/perf/power8-pmu.c |4 2

Re: [PATCH] MDIO: FSL_PQ_MDIO: Fix bug on incorrect offset of tbipa register

2013-06-13 Thread Oded Gabbay
On 06/12/2013 09:31 PM, Scott Wood wrote: On 06/12/2013 10:08:29 AM, Sebastian Andrzej Siewior wrote: On 06/12/2013 02:47 PM, Oded Gabbay wrote: This patch fixes a bug in the fsl_pq_mdio.c module and in relevant device-tree files regarding the correct offset of the tbipa register in the

Re: [BUG] PCI related panic on powerpc based board with 3.10-rcX

2013-06-13 Thread Rojhalat Ibrahim
On Wednesday 12 June 2013 16:50:26 Scott Wood wrote: On 06/12/2013 03:19:30 AM, Rojhalat Ibrahim wrote: On Tuesday 11 June 2013 12:28:59 Scott Wood wrote: Yes, I figured it was non-PCIe because the code change that you said helped was on the non-PCIe branch of the if/else. Generally it's

[PATCH] powerpc/pci: Fix setup of Freescale PCI / PCIe controllers

2013-06-13 Thread Rojhalat Ibrahim
Commit 50d8f87d2b3 (powerpc/fsl-pci Make PCIe hotplug work with Freescale PCIe controllers) does not handle non-PCIe controllers properly, which causes a panic during boot for certain configurations. This patch fixes the issue for 83xx devices by calling the proper setup function. For booke/86xx

Re: [RFC PATCH powerpc] Set cpu sibling mask before online cpu

2013-06-13 Thread Li Zhong
On Tue, 2013-06-11 at 14:03 +0530, Srivatsa S. Bhat wrote: On 06/11/2013 12:30 PM, Benjamin Herrenschmidt wrote: On Thu, 2013-05-16 at 18:20 +0800, Li Zhong wrote: It seems following race is possible: .../... vdso_getcpu_init(); #endif - notify_cpu_starting(cpu); -

RE: [PATCH 1/2] powerpc: add Book E support to 64-bit hibernation

2013-06-13 Thread Wang Dongsheng-B40534
-Original Message- From: Wood Scott-B07421 Sent: Thursday, June 13, 2013 6:04 AM To: Wang Dongsheng-B40534 Cc: b...@kernel.crashing.org; johan...@sipsolutions.net; an...@enomsg.org; ga...@kernel.crashing.org; linuxppc-dev@lists.ozlabs.org; Wang Dongsheng- B40534 Subject: Re:

[PATCH] powerpc: Fix stack overflow crash in resume_kernel when ftracing

2013-06-13 Thread Michael Ellerman
It's possible for us to crash when running with ftrace enabled, eg: Bad kernel stack pointer bd12 at c000a454 cpu 0x3: Vector: 300 (Data Access) at [cffe3d40] pc: c000a454: resume_kernel+0x34/0x60 lr: c000335c:

Re: [PATCH] powerpc/sysfs: disable hotplug for the boot cpu

2013-06-13 Thread Zhao Chenhui
On Wed, Jun 12, 2013 at 01:25:22PM +1000, Benjamin Herrenschmidt wrote: On Mon, 2013-06-03 at 18:43 +0800, Zhao Chenhui wrote: On Sat, Jun 01, 2013 at 07:49:44AM +1000, Benjamin Herrenschmidt wrote: On Tue, 2013-05-28 at 15:59 +0800, Zhao Chenhui wrote: Some features depend on the boot

Re: [PATCH] powerpc: Fix stack overflow crash in resume_kernel when ftracing

2013-06-13 Thread Steven Rostedt
On Thu, 2013-06-13 at 21:04 +1000, Michael Ellerman wrote: Although that should be sufficient to fix the bug, we also mark the runlatch routines as notrace. They are called very early in the exception entry and we are asking for trouble tracing them. They are also fairly uninteresting and

Re: [PATCH] powerpc: Fix stack overflow crash in resume_kernel when ftracing

2013-06-13 Thread Michael Ellerman
On Thu, 2013-06-13 at 08:45 -0400, Steven Rostedt wrote: On Thu, 2013-06-13 at 21:04 +1000, Michael Ellerman wrote: Although that should be sufficient to fix the bug, we also mark the runlatch routines as notrace. They are called very early in the exception entry and we are asking for

Re: [PATCH] powerpc: Fix stack overflow crash in resume_kernel when ftracing

2013-06-13 Thread Steven Rostedt
On Fri, 2013-06-14 at 00:31 +1000, Michael Ellerman wrote: On Thu, 2013-06-13 at 08:45 -0400, Steven Rostedt wrote: On Thu, 2013-06-13 at 21:04 +1000, Michael Ellerman wrote: Although that should be sufficient to fix the bug, we also mark the runlatch routines as notrace. They are

Re: [PATCH 15/27] powerpc/eeh: I/O chip EEH state retrieval

2013-06-13 Thread Gavin Shan
On Thu, Jun 13, 2013 at 02:42:17PM +1000, Benjamin Herrenschmidt wrote: On Thu, 2013-06-13 at 12:26 +0800, Gavin Shan wrote: So the answer is we can do it by makeing the assumption that f/w won't return valid delay and we're going to use default value (1 second) for guest on powernv or phyp, or

Re: [BUG] PCI related panic on powerpc based board with 3.10-rcX

2013-06-13 Thread Scott Wood
On 06/13/2013 02:21:24 AM, Rojhalat Ibrahim wrote: On Wednesday 12 June 2013 16:50:26 Scott Wood wrote: On 06/12/2013 03:19:30 AM, Rojhalat Ibrahim wrote: On Tuesday 11 June 2013 12:28:59 Scott Wood wrote: Yes, I figured it was non-PCIe because the code change that you said helped was

Re: [PATCH 1/2] powerpc: add Book E support to 64-bit hibernation

2013-06-13 Thread Scott Wood
On 06/13/2013 04:55:43 AM, Wang Dongsheng-B40534 wrote: +#else + /* Save SPRGs */ + RESTORE_SPRG(0) + RESTORE_SPRG(1) + RESTORE_SPRG(2) + RESTORE_SPRG(3) + RESTORE_SPRG(4) + RESTORE_SPRG(5) + RESTORE_SPRG(6) + RESTORE_SPRG(7) Why do we

[Trivial PATCH 00/33] Remove uses of typedef ctl_table

2013-06-13 Thread Joe Perches
It's clearer to use struct ctl_table instead Joe Perches (33): arm: kernel: isa: Convert use of typedef ctl_table to struct ctl_table frv: Convert use of typedef ctl_table to struct ctl_table ia64: crash: Convert use of typedef ctl_table to struct ctl_table mips: lasat: sysctl: Convert

[Trivial PATCH 05/33] powerpc: idle: Convert use of typedef ctl_table to struct ctl_table

2013-06-13 Thread Joe Perches
This typedef is unnecessary and should just be removed. Signed-off-by: Joe Perches j...@perches.com --- arch/powerpc/kernel/idle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/idle.c b/arch/powerpc/kernel/idle.c index 939ea7e..d7216c9 100644 ---

[Trivial PATCH 12/33] macintosh: Convert use of typedef ctl_table to struct ctl_table

2013-06-13 Thread Joe Perches
This typedef is unnecessary and should just be removed. Signed-off-by: Joe Perches j...@perches.com --- drivers/macintosh/mac_hid.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/macintosh/mac_hid.c b/drivers/macintosh/mac_hid.c index 6a82388..80d30e8 100644