Re: [PATCH v9 12/13] KVM: PPC: Add support for IOMMU in-kernel handling

2013-09-05 Thread Gleb Natapov
On Thu, Sep 05, 2013 at 02:05:09PM +1000, Benjamin Herrenschmidt wrote: > On Tue, 2013-09-03 at 13:53 +0300, Gleb Natapov wrote: > > > Or supporting all IOMMU links (and leaving emulated stuff as is) in on > > > "device" is the last thing I have to do and then you'll ack the patch? > > > > > I am

Re: [PATCH v9 12/13] KVM: PPC: Add support for IOMMU in-kernel handling

2013-09-05 Thread Alexey Kardashevskiy
On 09/06/2013 04:01 PM, Gleb Natapov wrote: > On Fri, Sep 06, 2013 at 09:38:21AM +1000, Alexey Kardashevskiy wrote: >> On 09/06/2013 04:10 AM, Gleb Natapov wrote: >>> On Wed, Sep 04, 2013 at 02:01:28AM +1000, Alexey Kardashevskiy wrote: On 09/03/2013 08:53 PM, Gleb Natapov wrote: > On Mon,

Re: [PATCH v9 12/13] KVM: PPC: Add support for IOMMU in-kernel handling

2013-09-05 Thread Gleb Natapov
On Fri, Sep 06, 2013 at 09:38:21AM +1000, Alexey Kardashevskiy wrote: > On 09/06/2013 04:10 AM, Gleb Natapov wrote: > > On Wed, Sep 04, 2013 at 02:01:28AM +1000, Alexey Kardashevskiy wrote: > >> On 09/03/2013 08:53 PM, Gleb Natapov wrote: > >>> On Mon, Sep 02, 2013 at 01:14:29PM +1000, Alexey Karda

RE: [PATCH V2] powerpc: Add I2C bus multiplexer node for B4 and T4240QDS

2013-09-05 Thread Jia Hongtao-B38951
> -Original Message- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > Sent: Friday, September 06, 2013 2:41 AM > To: Jia Hongtao-B38951 > Cc: linuxppc-dev@lists.ozlabs.org; Wood Scott-B07421; > wei.y...@windriver.com > Subject: Re: [PATCH V2] powerpc: Add I2C bus multiplexer node for

RE: [V2,2/2] powerpc/85xx: workaround for chips with MSI hardware errata

2013-09-05 Thread Jia Hongtao-B38951
> -Original Message- > From: Wood Scott-B07421 > Sent: Friday, September 06, 2013 1:57 AM > To: Jia Hongtao-B38951 > Cc: Wood Scott-B07421; linuxppc-dev@lists.ozlabs.org; > ga...@kernel.crashing.org > Subject: Re: [V2,2/2] powerpc/85xx: workaround for chips with MSI > hardware errata > >

RE: [PATCH] powerpc: Add I2C bus multiplexer node for B4 and T4240QDS

2013-09-05 Thread Tang Yuantian-B29983
> -Original Message- > From: Wood Scott-B07421 > Sent: 2013年9月6日 星期五 2:41 > To: Tang Yuantian-B29983 > Cc: Yang,Wei; Jia Hongtao-B38951; Wood Scott-B07421; linuxppc- > d...@lists.ozlabs.org > Subject: Re: [PATCH] powerpc: Add I2C bus multiplexer node for B4 and > T4240QDS > > On Tue, 2013

[git pull] Please pull powerpc.git next branch

2013-09-05 Thread Benjamin Herrenschmidt
Hi Linus ! Here's the powerpc batch for this merge window. Some of the highlights are: * A bunch of endian fixes ! We don't have full LE support yet in that release but this contains a lot of fixes all over arch/powerpc to use the proper accessors, call the firmware with the right endian mode, e

[PATCH 5/6] powerpc/eeh: Output PHB3 diag-data

2013-09-05 Thread Gavin Shan
The patch adds function ioda_eeh_phb3_phb_diag() to dump PHB3 PHB diag-data. That's called while detecting informative errors or frozen PE on the specific PHB. Signed-off-by: Gavin Shan --- arch/powerpc/include/asm/opal.h | 65 ++ arch/powerpc/platforms/powern

[PATCH 2/6] powerpc/powernv: Support inbound error injection

2013-09-05 Thread Gavin Shan
For now, we only support outbound error injection. Actually, the hardware supports injecting inbound errors as well. The patch enables to inject inbound errors. Signed-off-by: Gavin Shan --- arch/powerpc/platforms/powernv/eeh-ioda.c | 59 1 files changed, 50 insert

[PATCH 1/6] powerpc/powernv: Enable EEH for PHB3

2013-09-05 Thread Gavin Shan
The EEH isn't enabled for PHB3 and the patch intends to enable it. Signed-off-by: Gavin Shan --- arch/powerpc/platforms/powernv/eeh-ioda.c| 26 +++--- arch/powerpc/platforms/powernv/eeh-powernv.c |5 + 2 files changed, 12 insertions(+), 19 deletions(-) diff --g

[PATCH 4/6] powerpc/powernv: Double size of log blob

2013-09-05 Thread Gavin Shan
Each PHB instance (struct pnv_phb) has its corresponding log blob, which is used to hold the retrieved error log from firmware. The current size of that (4096) isn't enough for PHB3 case and the patch makes that double to 8192. Signed-off-by: Gavin Shan --- arch/powerpc/platforms/powernv/pci.h |

[PATCH 6/6] powerpc/eeh: Reorder output messages

2013-09-05 Thread Gavin Shan
We already had some output messages from EEH core. Occasionally, we can see the output messages from EEH core before the stack dump. That's not what we expected. The patch fixes that and shows the stack dump prior to output messages from EEH core. Signed-off-by: Gavin Shan --- arch/powerpc/kerne

[PATCH 3/6] powerpc/eeh: Output error number

2013-09-05 Thread Gavin Shan
The patch prints the error number while failing to retrieve error log from firmware. It's helpful for debugging. Signed-off-by: Gavin Shan --- arch/powerpc/platforms/powernv/eeh-ioda.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/powernv/eeh-

[PATCH 0/6] EEH Support for PHB3

2013-09-05 Thread Gavin Shan
Naturally, EEH has been supported for PHB3, but we had some mask bits to disable it because the firmware isn't ready. The series of patch instends to remove those "mask bits" and enable EEH for PHB3. Besides, the output messages from EEH has been reordered to reflect the correct steps during EEH re

Re: [PATCH v9 12/13] KVM: PPC: Add support for IOMMU in-kernel handling

2013-09-05 Thread Alexey Kardashevskiy
On 09/06/2013 04:10 AM, Gleb Natapov wrote: > On Wed, Sep 04, 2013 at 02:01:28AM +1000, Alexey Kardashevskiy wrote: >> On 09/03/2013 08:53 PM, Gleb Natapov wrote: >>> On Mon, Sep 02, 2013 at 01:14:29PM +1000, Alexey Kardashevskiy wrote: On 09/01/2013 10:06 PM, Gleb Natapov wrote: > On Wed,

Re: [PATCH V2 2/2] powerpc/85xx: workaround for chips with MSI hardware errata

2013-09-05 Thread Scott Wood
On Thu, 2013-09-05 at 13:34 -0500, Kumar Gala wrote: > On Apr 2, 2013, at 9:03 PM, Jia Hongtao wrote: > > + msi->feature |= MSI_HW_ERRATA_ENDIAN; > > + } > > + > > /* > > * Remember the phandle, so that we can match with any PCI nodes > > * that have an "fsl,msi" p

[PATCH v2] powerpc: Default arch idle could cede processor on pseries

2013-09-05 Thread Vaidyanathan Srinivasan
Hi, Idle routines on pseries were rearranged so that cpuidle can do an optimized idle state selection. However, until cpuidle takes over during boot, the idle loop spins for a short while. This actually affected bootup time since spinning idle sibling threads slows down master cpu that executes

Re: [PATCH v2 3/3] powerpc/85xx: add hardware automatically enter pw20 state

2013-09-05 Thread Scott Wood
On Tue, 2013-08-27 at 16:41 +0800, Dongsheng Wang wrote: > From: Wang Dongsheng > > Using hardware features make core automatically enter PW20 state. > Set a TB count to hardware, the effective count begins when PW10 > is entered. When the effective period has expired, the core will > proceed fro

Re: [PATCH V2] powerpc: Add I2C bus multiplexer node for B4 and T4240QDS

2013-09-05 Thread Kumar Gala
On Sep 4, 2013, at 9:41 PM, Jia Hongtao wrote: > In both B4 and T4240QDS platform PCA9547 I2C bus multiplexer is used. > The sub-nodes are also reorganized according to right I2C topology. > > Signed-off-by: Jia Hongtao > --- > V2 change log: > Reorganized the sub-nodes under I2C multiplexer to

Re: [PATCH] powerpc: Add I2C bus multiplexer node for B4 and T4240QDS

2013-09-05 Thread Scott Wood
On Tue, 2013-09-03 at 22:30 -0500, Tang Yuantian-B29983 wrote: > Hi, > > These eeproms are never used by kernel. So no need to add them. The device tree describes the hardware, not what Linux does with it. -Scott ___ Linuxppc-dev mailing list Linuxp

Re: [V2,2/2] powerpc/85xx: workaround for chips with MSI hardware errata

2013-09-05 Thread Scott Wood
On Wed, 2013-09-04 at 23:00 -0500, Jia Hongtao-B38951 wrote: > > -Original Message- > > From: Jia Hongtao-B38951 > > Sent: Monday, July 01, 2013 5:36 PM > > To: Wood Scott-B07421 > > Cc: linuxppc-dev@lists.ozlabs.org; ga...@kernel.crashing.org > > Subject: RE: [V2,2/2] powerpc/85xx: workaro

Re: [PATCH V2 2/2] powerpc/85xx: workaround for chips with MSI hardware errata

2013-09-05 Thread Kumar Gala
On Apr 2, 2013, at 9:03 PM, Jia Hongtao wrote: > The MPIC version 2.0 has a MSI errata (errata PIC1 of mpc8544), It causes > that neither MSI nor MSI-X can work fine. This is a workaround to allow > MSI-X to function properly. > > Signed-off-by: Liu Shuo > Signed-off-by: Li Yang > Signed-off-b

Re: [PATCH v9 12/13] KVM: PPC: Add support for IOMMU in-kernel handling

2013-09-05 Thread Gleb Natapov
On Wed, Sep 04, 2013 at 02:01:28AM +1000, Alexey Kardashevskiy wrote: > On 09/03/2013 08:53 PM, Gleb Natapov wrote: > > On Mon, Sep 02, 2013 at 01:14:29PM +1000, Alexey Kardashevskiy wrote: > >> On 09/01/2013 10:06 PM, Gleb Natapov wrote: > >>> On Wed, Aug 28, 2013 at 06:50:41PM +1000, Alexey Karda

Re: [PATCH] powerpc: Fix possible deadlock on page fault

2013-09-05 Thread Aneesh Kumar K.V
Benjamin Herrenschmidt writes: > On Thu, 2013-09-05 at 17:18 +0530, Aneesh Kumar K.V wrote: >> Paul Mackerras writes: >> >> > On Thu, Sep 05, 2013 at 12:47:02PM +0530, Aneesh Kumar K.V wrote: >> > >> >> @@ -280,6 +280,13 @@ int __kprobes do_page_fault(struct pt_regs *regs, >> >> unsigned long

Re: [PATCH] powerpc: Fix possible deadlock on page fault

2013-09-05 Thread Benjamin Herrenschmidt
On Thu, 2013-09-05 at 17:18 +0530, Aneesh Kumar K.V wrote: > Paul Mackerras writes: > > > On Thu, Sep 05, 2013 at 12:47:02PM +0530, Aneesh Kumar K.V wrote: > > > >> @@ -280,6 +280,13 @@ int __kprobes do_page_fault(struct pt_regs *regs, > >> unsigned long address, > >> > >>perf_sw_event(PER

[PATCH -V2] powerpc: Fix possible deadlock on page fault

2013-09-05 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" stack_grow_into/14082 is trying to acquire lock: (&mm->mmap_sem){++}, at: [] .might_fault+0x78/0xe0 but task is already holding lock: (&mm->mmap_sem){++}, at: [] .do_page_fault+0x24c/0x910 other info that might help us debug this: Possible unsafe lockin

Re: [PATCH] powerpc: Fix possible deadlock on page fault

2013-09-05 Thread Aneesh Kumar K.V
Paul Mackerras writes: > On Thu, Sep 05, 2013 at 12:47:02PM +0530, Aneesh Kumar K.V wrote: > >> @@ -280,6 +280,13 @@ int __kprobes do_page_fault(struct pt_regs *regs, >> unsigned long address, >> >> perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS, 1, regs, address); >> >> +/* >> + * We

Re: [PATCH] powerpc: Fix possible deadlock on page fault

2013-09-05 Thread Paul Mackerras
On Thu, Sep 05, 2013 at 12:47:02PM +0530, Aneesh Kumar K.V wrote: > @@ -280,6 +280,13 @@ int __kprobes do_page_fault(struct pt_regs *regs, > unsigned long address, > > perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS, 1, regs, address); > > + /* > + * We want to do this outside mmap_sem

[PATCH v2 3/6] powerpc/pci: use pci_is_pcie() to simplify code

2013-09-05 Thread Yijing Wang
Use pci_is_pcie() to simplify code. Acked-by: Kumar Gala Reviewed-by: Gavin Shan Signed-off-by: Yijing Wang Cc: Gavin Shan Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-ker...@vger.kernel.org --- arch/powerpc/kernel/eeh.c |3 +-- arch/powe

[PATCH] powerpc: Fix possible deadlock on page fault

2013-09-05 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" stack_grow_into/14082 is trying to acquire lock: (&mm->mmap_sem){++}, at: [] .might_fault+0x78/0xe0 but task is already holding lock: (&mm->mmap_sem){++}, at: [] .do_page_fault+0x24c/0x910 other info that might help us debug this: Possible unsafe lockin