[PATCH v3] powerpc/eeh: Wrong place to call pci_get_slot()

2014-07-14 Thread Mike Qiu
pci_get_slot() is called with hold of PCI bus semaphore and it's not safe to be called in interrupt context. However, we possibly checks EEH error and calls the function in interrupt context. To avoid using pci_get_slot(), we turn into device tree for fetching location code. Otherwise, we might run

Re: [PATCH v2] Bugfix: powerpc/eeh: Wrong place to call pci_get_slot()

2014-07-14 Thread Mike Qiu
On 07/15/2014 01:07 PM, Gavin Shan wrote: On Mon, Jul 14, 2014 at 10:33:48PM -0400, Mike Qiu wrote: pci_get_slot() is called with hold of PCI bus semaphore and it's not safe to be called in interrupt context. However, we possibly checks EEH error and calls the function in interrupt context. To a

Re: [PATCH v2] Bugfix: powerpc/eeh: Wrong place to call pci_get_slot()

2014-07-14 Thread Gavin Shan
On Mon, Jul 14, 2014 at 10:33:48PM -0400, Mike Qiu wrote: >pci_get_slot() is called with hold of PCI bus semaphore and it's not >safe to be called in interrupt context. However, we possibly checks >EEH error and calls the function in interrupt context. To avoid using >pci_get_slot(), we turn into d

Re: [PATCH v5 2/2] [BUGFIX] kprobes: Fix "Failed to find blacklist" error on ia64 and ppc64

2014-07-14 Thread Michael Ellerman
On Wed, 2014-07-02 at 07:00 +, Masami Hiramatsu wrote: > On ia64 and ppc64, the function pointer does not point the > entry address of the function, but the address of function > discriptor (which contains the entry address and misc > data.) Since the kprobes passes the function pointer stored

Re: Re: [PATCH v5 2/2] [BUGFIX] kprobes: Fix "Failed to find blacklist" error on ia64 and ppc64

2014-07-14 Thread Michael Ellerman
On Tue, 2014-07-15 at 11:24 +0900, Masami Hiramatsu wrote: > (2014/07/15 11:11), Michael Ellerman wrote: > > On Mon, 2014-07-14 at 10:17 -0700, Tony Luck wrote: > >> On Tue, Jul 8, 2014 at 5:07 AM, Masami Hiramatsu > >> wrote: > >>> Ping? > >>> > >>> This patch can be applied without 1/2, and will

Re: [PATCH 1/6] powerpc/powernv: Enable M64 aperatus for PHB3

2014-07-14 Thread Wei Yang
On Thu, Jul 10, 2014 at 09:53:41PM +0800, Guo Chao wrote: >This patch enable M64 aperatus for PHB3. > >We already had platform hook (ppc_md.pcibios_window_alignment) to affect >the PCI resource assignment done in PCI core so that each PE's M32 resource >was built on basis of M32 segment size. Simil

[PATCH v2] Bugfix: powerpc/eeh: Wrong place to call pci_get_slot()

2014-07-14 Thread Mike Qiu
pci_get_slot() is called with hold of PCI bus semaphore and it's not safe to be called in interrupt context. However, we possibly checks EEH error and calls the function in interrupt context. To avoid using pci_get_slot(), we turn into device tree for fetching location code. Otherwise, we might run

Re: Re: [PATCH v5 2/2] [BUGFIX] kprobes: Fix "Failed to find blacklist" error on ia64 and ppc64

2014-07-14 Thread Masami Hiramatsu
(2014/07/15 11:11), Michael Ellerman wrote: > On Mon, 2014-07-14 at 10:17 -0700, Tony Luck wrote: >> On Tue, Jul 8, 2014 at 5:07 AM, Masami Hiramatsu >> wrote: >>> Ping? >>> >>> This patch can be applied without 1/2, and will fix ia64/ppc64 problem. >> >> Is somebody going to push this upstream? A

Re: [PATCH] powerpc: Revert removing of _INIT_GLOBAL(), _STATIC() and _INIT_STATIC()

2014-07-14 Thread Steven Rostedt
On Tue, 15 Jul 2014 12:05:55 +1000 Benjamin Herrenschmidt wrote: > Cheers, > Ben. > While I got your attention, could you please ack my patch with subject: [RFA][PATCH 09/27] powerpc/ftrace: Add call to ftrace_graph_is_dead() in function graph code so that I can push it through my tree. Th

Re: [PATCH] powerpc: Revert removing of _INIT_GLOBAL(), _STATIC() and _INIT_STATIC()

2014-07-14 Thread Steven Rostedt
On Tue, 15 Jul 2014 12:05:55 +1000 Benjamin Herrenschmidt wrote: > On Mon, 2014-07-14 at 20:12 -0400, Steven Rostedt wrote: > > I wanted to test some new ftrace code on my PASemi electra powerpc box. > > But unfortunately it failed to build. It failed with this: > > > > LD init/built-in.o

Re: [PATCH v5 2/2] [BUGFIX] kprobes: Fix "Failed to find blacklist" error on ia64 and ppc64

2014-07-14 Thread Michael Ellerman
On Mon, 2014-07-14 at 10:17 -0700, Tony Luck wrote: > On Tue, Jul 8, 2014 at 5:07 AM, Masami Hiramatsu > wrote: > > Ping? > > > > This patch can be applied without 1/2, and will fix ia64/ppc64 problem. > > Is somebody going to push this upstream? Another week has gone by, > we are at -rc5, and I'

Re: [PATCH] powerpc: Revert removing of _INIT_GLOBAL(), _STATIC() and _INIT_STATIC()

2014-07-14 Thread Benjamin Herrenschmidt
On Mon, 2014-07-14 at 20:12 -0400, Steven Rostedt wrote: > I wanted to test some new ftrace code on my PASemi electra powerpc box. > But unfortunately it failed to build. It failed with this: > > LD init/built-in.o > arch/powerpc/kernel/head_64.o:arch/powerpc/kernel/exceptions-64s.S:874: >

[PATCH] powerpc: Revert removing of _INIT_GLOBAL(), _STATIC() and _INIT_STATIC()

2014-07-14 Thread Steven Rostedt
I wanted to test some new ftrace code on my PASemi electra powerpc box. But unfortunately it failed to build. It failed with this: LD init/built-in.o arch/powerpc/kernel/head_64.o:arch/powerpc/kernel/exceptions-64s.S:874: relocation truncated to fit: R_PPC64_REL14 against `.text'+1c90 Mak

Re: [PATCH] Bugfix: powerpc/eeh: Wrong place to call pci_get_slot()

2014-07-14 Thread Gavin Shan
On Mon, Jul 14, 2014 at 09:35:18PM +0800, Mike Qiu wrote: >On 07/14/2014 09:01 PM, Gavin Shan wrote: >>On Mon, Jul 14, 2014 at 04:19:23AM -0400, Mike Qiu wrote: .../... >>>Signed-off-by: Mike Qiu >>>--- >>>arch/powerpc/kernel/eeh_pe.c | 29 ++--- >>>1 file changed, 26 inse

Re: [PATCH v5 2/2] [BUGFIX] kprobes: Fix "Failed to find blacklist" error on ia64 and ppc64

2014-07-14 Thread Tony Luck
On Tue, Jul 8, 2014 at 5:07 AM, Masami Hiramatsu wrote: > Ping? > > This patch can be applied without 1/2, and will fix ia64/ppc64 problem. Is somebody going to push this upstream? Another week has gone by, we are at -rc5, and I'm still seeing the Failed to find blacklist a0010133b150 mes

Re: [PATCH v5 0/3] DMA: Freescale: driver cleanups and enhancements

2014-07-14 Thread Vinod Koul
On Wed, May 21, 2014 at 04:03:00PM +0800, hongbo.zh...@freescale.com wrote: > From: Hongbo Zhang > > Hi Dan, > Please have a look at this 3/3 as Vinod mentioned. > > Hi Vinod Koul, > Please have a look at the v5 patch set. I dont see any objection, so applying all 3 with subject changed to refl

Re: [PATCH] Bugfix: powerpc/eeh: Wrong place to call pci_get_slot()

2014-07-14 Thread Mike Qiu
On 07/14/2014 09:01 PM, Gavin Shan wrote: On Mon, Jul 14, 2014 at 04:19:23AM -0400, Mike Qiu wrote: [ 121.133381] WARNING: at drivers/pci/search.c:223 [ 121.133422] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.16.0-rc3+ #72 [ 121.133424] task: c1367af0 ti: c1444000 task.ti: c0

Re: [PATCH 1/6] powerpc/powernv: Enable M64 aperatus for PHB3

2014-07-14 Thread Gavin Shan
On Thu, Jul 10, 2014 at 09:53:41PM +0800, Guo Chao wrote: >This patch enable M64 aperatus for PHB3. > >We already had platform hook (ppc_md.pcibios_window_alignment) to affect >the PCI resource assignment done in PCI core so that each PE's M32 resource >was built on basis of M32 segment size. Simil

Re: [PATCH] Bugfix: powerpc/eeh: Wrong place to call pci_get_slot()

2014-07-14 Thread Gavin Shan
On Mon, Jul 14, 2014 at 04:19:23AM -0400, Mike Qiu wrote: >[ 121.133381] WARNING: at drivers/pci/search.c:223 >[ 121.133422] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.16.0-rc3+ #72 >[ 121.133424] task: c1367af0 ti: c1444000 task.ti: >c1444000 >[ 121.133425] NIP: c

Re: [PATCH 2/2] PCI/MSI: Remove arch_msi_check_device()

2014-07-14 Thread Alexander Gordeev
On Mon, Jul 14, 2014 at 10:11:57AM +0800, Yijing Wang wrote: > > /** > > - * pci_msi_check_device - check whether MSI may be enabled on a device > > + * msi_check_device - check whether MSI may be enabled on a device > > * @dev: pointer to the pci_dev data structure of MSI device function > >

[PATCH] Bugfix: powerpc/eeh: Wrong place to call pci_get_slot()

2014-07-14 Thread Mike Qiu
[ 121.133381] WARNING: at drivers/pci/search.c:223 [ 121.133422] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.16.0-rc3+ #72 [ 121.133424] task: c1367af0 ti: c1444000 task.ti: c1444000 [ 121.133425] NIP: c0497b70 LR: c0037530 CTR: 3003d114 [ 121.1

[PATCH] dmaengine: fix potential race condition in fsl raid

2014-07-14 Thread xuelin.shi
From: Xuelin Shi checking available slots in HW should be under the lock. Signed-off-by: Xuelin Shi --- drivers/dma/fsl_raid.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/dma/fsl_raid.c b/drivers/dma/fsl_raid.c index 935d05a..fccad86 100644 --- a/drivers/dm

[PATCH] dmaengine: fsl raid parity continuation support

2014-07-14 Thread xuelin.shi
From: Xuelin Shi support more than 16 disks parity computation. Signed-off-by: Xuelin Shi --- comment: passed the raid6 recovery test. drivers/dma/fsl_raid.c | 32 +--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/drivers/dma/fsl_raid.c b/drivers