[PATCH v2 3/3] powerpc/perf: Clear MMCR2 when enabling PMU

2014-07-07 Thread Joel Stanley
On POWER8 when switching to a KVM guest we set bits in MMCR2 to freeze the PMU counters. Aside from on boot they are then never reset, resulting in stuck perf counters for any user in the guest or host. We now set MMCR2 to 0 whenever enabling the PMU, which provides a sane state for perf to use th

[PATCH v2 2/3] powerpc/perf: Add PPMU_ARCH_207S define

2014-07-07 Thread Joel Stanley
Instead of separate bits for every POWER8 PMU feature, have a single one for v2.07 of the architecture. This saves us adding a MMCR2 define for a future patch. Cc: sta...@vger.kernel.org Signed-off-by: Joel Stanley Acked-by: Michael Ellerman --- arch/powerpc/include/asm/perf_event_server.h | 3

[PATCH v2 1/3] powerpc/kvm: Remove redundant save of SIER AND MMCR2

2014-07-07 Thread Joel Stanley
These two registers are already saved in the block above. Aside from being unnecessary, by the time we get down to the second save location r8 no longer contains MMCR2, so we are clobbering the saved value with PMC5. MMCR2 primarily consists of counter freeze bits. So restoring the value of PMC5 i

[PATCH v2 0/3] POWER8 PMU bugfixes

2014-07-07 Thread Joel Stanley
These three patches are required for correct operation of perf counters on POWER8 boxes when running KVM guests. There were two bugs; not clearing MMCR2 and writing over the saved value when entering a guest. However the first obscured the second. Thanks to who mpe helped diagnose the issue and po

Re: powerpc allyesconfig fix

2014-07-07 Thread Stephen Rothwell
Hi Nicholas, On Tue, 8 Jul 2014 01:04:09 -0400 Nicholas Krause wrote: > > powerpc:allmodconfig has been failing for some time with the following > error. This patch has already bee submitted directly by Guenter, however for future reference: when you submit someone else's patch, you should inc

[PATCH v11 4/7] powerpc: add pmd_[dirty|mkclean] for THP

2014-07-07 Thread Minchan Kim
MADV_FREE needs pmd_dirty and pmd_mkclean for detecting recent overwrite of the contents since MADV_FREE syscall is called for THP page. This patch adds pmd_dirty and pmd_mkclean for THP page MADV_FREE support. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: "Aneesh Kumar K.V" Cc: linuxppc-d

[PATCH] powerpc/cell: Fix compilation with CONFIG_COREDUMP=n

2014-07-07 Thread Michael Ellerman
Commit 046d662f4818 "coredump: make core dump functionality optional" made the coredump optional, but didn't update the spufs code that depends on it. That leads to build errors such as: arch/powerpc/platforms/built-in.o: In function `.spufs_arch_write_note': coredump.c:(.text+0x22cd4): undefi

[PATCH v2] Use the POWER8 Micro Partition Prefetch Engine in KVM HV on POWER8

2014-07-07 Thread Stewart Smith
The POWER8 processor has a Micro Partition Prefetch Engine, which is a fancy way of saying "has way to store and load contents of L2 or L2+MRU way of L3 cache". We initiate the storing of the log (list of addresses) using the logmpp instruction and start restore by writing to a SPR. The logmpp ins

[PATCH][v2]devicetree/binding/powerpc/fsl: Add binding for CPLD

2014-07-07 Thread Priyanka Jain
Some Freescale boards like T1040RDB have on board CPLD connected on the IFC bus. Add binding for this in board.txt file Signed-off-by: Priyanka Jain --- Changes for v2: Incorporated Scott's comments .../devicetree/bindings/powerpc/fsl/board.txt | 16 1 files changed, 16

powerpc allyesconfig fix

2014-07-07 Thread Nicholas Krause
powerpc:allmodconfig has been failing for some time with the following error. arch/powerpc/kernel/exceptions-64s.S: Assembler messages: arch/powerpc/kernel/exceptions-64s.S:1312: Error: attempt to move .org backwards make[1]: *** [arch/powerpc/kernel/head_64.o] Error 1 A number of attempts to fix

Fwd: Fwd: Allyesconfig for powerpc still Failing

2014-07-07 Thread Nick Krause
From: Guenter Roeck on Mon, Jul 7, 2014 at 11:57 PM wrote Subject: Re: Fwd: Allyesconfig for powerpc still Failing To: Nick Krause , "linux-ker...@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" On 07/07/2014 08:38 PM, Nick Krause wrote: > > On 07/07/2014 07:45 PM, Nick Krause wrote: >> >> >

RE: [PATCH] devicetree/bindings: Add binding for micron n25q512a memory

2014-07-07 Thread Priyanka Jain
> -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, July 08, 2014 2:56 AM > To: Jain Priyanka-B32167 > Cc: devicet...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; linux- > s...@vger.kernel.org; linux-...@lists.infradead.org > Subject: Re: [PATCH] devicetree/bindings: Add bi

Re: [PATCH 1/3] PCI/MSI: Add pci_enable_msi_partial()

2014-07-07 Thread Michael Ellerman
On Wed, 2014-07-02 at 14:22 -0600, Bjorn Helgaas wrote: > On Tue, Jun 10, 2014 at 03:10:30PM +0200, Alexander Gordeev wrote: > > There are PCI devices that require a particular value written > > to the Multiple Message Enable (MME) register while aligned on > > power of 2 boundary value of actually

Re: Fwd: Allyesconfig for powerpc still Failing

2014-07-07 Thread Guenter Roeck
On 07/07/2014 08:38 PM, Nick Krause wrote: On 07/07/2014 07:45 PM, Nick Krause wrote: Today I tested the allyesconfig for powerpc and it seems to be still failing according to my tests. Below are the error messages I get before the jobs finish and exit failing the build. Cheers Nick arch/powerp

RE: [PATCH] devicetree/bindings/powerpc/fsl: Add binding for board

2014-07-07 Thread Priyanka Jain
> -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, July 08, 2014 3:00 AM > To: Jain Priyanka-B32167 > Cc: devicet...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org > Subject: Re: [PATCH] devicetree/bindings/powerpc/fsl: Add binding for > board > > On Mon, 2014-07-07 at 14:06

Re: [RFC PATCH 3/4] KVM: PPC: e500: TLB emulation for IND entries

2014-07-07 Thread Scott Wood
On Thu, 2014-07-03 at 17:45 +0300, Mihai Caraman wrote: > Handle indirect entries (IND) in TLB emulation code. Translation size of IND > entries differ from the size of referred Page Tables (Linux guests now use IND > of 2MB for 4KB PTs) and this require careful tweak of the existing logic. > > TL

Fwd: Allyesconfig for powerpc still Failing

2014-07-07 Thread Nick Krause
On Mon, Jul 7, 2014 at 11:03 PM wrote Benjamin Herrenschmidt On Mon, 2014-07-07 at 22:45 -0400, Nick Krause wrote: > Today I tested the allyesconfig for powerpc and it seems to be still > failing according to my tests. > Below are the error messages I get before the jobs finish and exit > failing

Re: [PATCH] powerpc: Disable RELOCATABLE for COMPILE_TEST with PPC64

2014-07-07 Thread Benjamin Herrenschmidt
On Mon, 2014-07-07 at 20:03 -0700, Guenter Roeck wrote: > ping ... > > Ben, I know this is not perfect, but on the other side it is simple > and would be easy to backport. With this in place, a complete/clean > fix would not be as urgent. Any chance to get it applied ? Yes, that definitely helps,

Re: Allyesconfig for powerpc still Failing

2014-07-07 Thread Nick Krause
Just hoped this log may help you in your issues with the train wreck. If you need any help with the issues here please let me know. Cheers Nick :) On Mon, Jul 7, 2014 at 11:03 PM, Benjamin Herrenschmidt wrote: > On Mon, 2014-07-07 at 22:45 -0400, Nick Krause wrote: >> Today I tested the allyescon

Re: Allyesconfig for powerpc still Failing

2014-07-07 Thread Guenter Roeck
On 07/07/2014 07:45 PM, Nick Krause wrote: Today I tested the allyesconfig for powerpc and it seems to be still failing according to my tests. Below are the error messages I get before the jobs finish and exit failing the build. Cheers Nick arch/powerpc/kernel/exceptions-64s.S: Assembler messages

Re: Allyesconfig for powerpc still Failing

2014-07-07 Thread Benjamin Herrenschmidt
On Mon, 2014-07-07 at 22:45 -0400, Nick Krause wrote: > Today I tested the allyesconfig for powerpc and it seems to be still > failing according to my tests. > Below are the error messages I get before the jobs finish and exit > failing the build. > Cheers Nick > arch/powerpc/kernel/exceptions-64s.

Re: [PATCH] powerpc: Disable RELOCATABLE for COMPILE_TEST with PPC64

2014-07-07 Thread Guenter Roeck
ping ... Ben, I know this is not perfect, but on the other side it is simple and would be easy to backport. With this in place, a complete/clean fix would not be as urgent. Any chance to get it applied ? Nick, this doesn't fix the allyesconfig build - it still fails with relocation errors. But i

Allyesconfig for powerpc still Failing

2014-07-07 Thread Nick Krause
Today I tested the allyesconfig for powerpc and it seems to be still failing according to my tests. Below are the error messages I get before the jobs finish and exit failing the build. Cheers Nick arch/powerpc/kernel/exceptions-64s.S: Assembler messages: arch/powerpc/kernel/exceptions-64s.S:1331:

Re: [RFC PATCH 2/4] KVM: PPC: Book3E: Handle LRAT error exception

2014-07-07 Thread Scott Wood
On Fri, 2014-07-04 at 10:15 +0200, Alexander Graf wrote: > On 03.07.14 16:45, Mihai Caraman wrote: > > diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c > > index a192975..ab1077f 100644 > > --- a/arch/powerpc/kvm/booke.c > > +++ b/arch/powerpc/kvm/booke.c > > @@ -1286,6 +1286,46 @@

Re: Kernel build issues after yesterdays merge by Linus

2014-07-07 Thread Anton Blanchard
Hi Tony, > > Shows how much we use make install :) Below is a quick hack to get > > you going but we should look at either fixing the Ubuntu > > installkernel to handle extra optional args, or stop passing them > > from the ppc64 kernel install.sh script. > > It seems like passign the zImage fil

Re: [PATCH] ibmvfc: fix little endian issues

2014-07-07 Thread Brian King
On 06/26/2014 07:03 PM, Tyrel Datwyler wrote: > Added big endian annotations to relevant data structure fields, and necessary > byte swappings to support little endian builds. Acked-by: Brian King Thanks, Brian -- Brian King Power Linux I/O IBM Linux Technology Center __

Re: [3/3,v4] powerpc/t2080rdb: Add T2080RDB board support

2014-07-07 Thread Scott Wood
On Mon, 2014-07-07 at 05:26 -0500, Liu Shengzhou-B36685 wrote: > > -Original Message- > > From: Wood Scott-B07421 > > Sent: Thursday, June 26, 2014 7:35 AM > > To: Liu Shengzhou-B36685 > > Cc: linuxppc-dev@lists.ozlabs.org > > Subject: Re: [3/3,v4] powerpc/t2080rdb: Add T2080RDB board suppo

Re: [PATCH] devicetree/bindings/powerpc/fsl: Add binding for board

2014-07-07 Thread Scott Wood
On Mon, 2014-07-07 at 14:06 +0530, Priyanka Jain wrote: > Signed-off-by: Priyanka Jain > --- > .../devicetree/bindings/powerpc/fsl/board.txt | 17 - > 1 files changed, 16 insertions(+), 1 deletions(-) > > diff --git a/Documentation/devicetree/bindings/powerpc/fsl/board.txt

Re: [PATCH][v2] devicetree/binding/powerpc/fsl: Add binding for CPLD

2014-07-07 Thread Scott Wood
On Fri, 2014-07-04 at 10:03 +0530, Priyanka Jain wrote: > Some Freescale boards like T1040RDB have on board CPLD connected on > the IFC bus. Add binding for this in board.txt file > > Signed-off-by: Priyanka Jain > --- > Changes for v2: > convert board name to lower-case based on Scott's suggest

Re: [PATCH] devicetree/bindings: Add binding for micron n25q512a memory

2014-07-07 Thread Scott Wood
On Thu, 2014-07-03 at 23:08 -0500, Jain Priyanka-B32167 wrote: > > > -Original Message- > > From: Wood Scott-B07421 > > Sent: Friday, July 04, 2014 3:40 AM > > To: Jain Priyanka-B32167 > > Cc: devicet...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; linux- > > s...@vger.kernel.org; linux

Re: [PATCH 1/3] PCI/MSI: Add pci_enable_msi_partial()

2014-07-07 Thread Alexander Gordeev
On Mon, Jul 07, 2014 at 01:40:48PM -0600, Bjorn Helgaas wrote: > As you can tell, I'm a little skeptical about this. It's a fairly big > change, it affects the arch interface, it seems to be targeted for > only a single chipset (though it's widely used), and we already > support a standard solutio

Re: [PATCH 1/3] PCI/MSI: Add pci_enable_msi_partial()

2014-07-07 Thread Bjorn Helgaas
On Fri, Jul 4, 2014 at 2:57 AM, Alexander Gordeev wrote: > On Wed, Jul 02, 2014 at 02:22:01PM -0600, Bjorn Helgaas wrote: >> On Tue, Jun 10, 2014 at 03:10:30PM +0200, Alexander Gordeev wrote: >> > There are PCI devices that require a particular value written >> > to the Multiple Message Enable (MM

Re: [PATCH 1/3] PCI/MSI: Add pci_enable_msi_partial()

2014-07-07 Thread Bjorn Helgaas
On Fri, Jul 4, 2014 at 2:58 AM, Alexander Gordeev wrote: > On Thu, Jul 03, 2014 at 09:20:52AM +, David Laight wrote: >> From: Bjorn Helgaas >> > On Tue, Jun 10, 2014 at 03:10:30PM +0200, Alexander Gordeev wrote: >> > > There are PCI devices that require a particular value written >> > > to the

Re: [PATCH] of: Add vendor prefix for EON Corporation

2014-07-07 Thread Scott Wood
On Mon, 2014-07-07 at 17:29 +0800, Shengzhou Liu wrote: > Signed-off-by: Shengzhou Liu > --- > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + > 1 file changed, 1 insertion(+) Again, please CC all relevant mailing lists. Where is the devicetree list? And mention why this patch is

Re: [PATCH v4] powerpc/powernv: hwmon driver for power, fan rpm, voltage and temperature

2014-07-07 Thread Guenter Roeck
On 07/06/2014 11:56 PM, Benjamin Herrenschmidt wrote: On Fri, 2014-07-04 at 19:25 -0700, Guenter Roeck wrote: +cooling-fan#8-data { + sensor-id = <0x7052107>; + phandle = <0x1028>; + linux,phandle = <0x1028>; + compatible = "ibm,opal-sensor-cooling-fan"; phandle and lin

RE: [3/3,v4] powerpc/t2080rdb: Add T2080RDB board support

2014-07-07 Thread shengzhou....@freescale.com
> -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, June 26, 2014 7:35 AM > To: Liu Shengzhou-B36685 > Cc: linuxppc-dev@lists.ozlabs.org > Subject: Re: [3/3,v4] powerpc/t2080rdb: Add T2080RDB board support > > On Wed, Jun 11, 2014 at 06:10:06PM +0800, Shengzhou Liu wrote: > >

[PATCH] of: Add vendor prefix for EON Corporation

2014-07-07 Thread Shengzhou Liu
Signed-off-by: Shengzhou Liu --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 1a6793b..3c10a21 100644 --- a/Documentati

RE: [PATCH 0/3] iommu/fsl: Fixes for the PAMU driver.

2014-07-07 Thread Varun Sethi
Thanks Joerg. > -Original Message- > From: Joerg Roedel [mailto:j...@8bytes.org] > Sent: Monday, July 07, 2014 2:02 PM > To: Sethi Varun-B16395 > Cc: io...@lists.linux-foundation.org; linux-ker...@vger.kernel.org; > linuxppc-dev@lists.ozlabs.org; alex.william...@redhat.com > Subject: Re: [

[PATCH] devicetree/bindings/powerpc/fsl: Add binding for board

2014-07-07 Thread Priyanka Jain
Signed-off-by: Priyanka Jain --- .../devicetree/bindings/powerpc/fsl/board.txt | 17 - 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/Documentation/devicetree/bindings/powerpc/fsl/board.txt b/Documentation/devicetree/bindings/powerpc/fsl/board.txt index f3

Re: [PATCH 0/3] iommu/fsl: Fixes for the PAMU driver.

2014-07-07 Thread Joerg Roedel
On Tue, Jun 24, 2014 at 07:27:14PM +0530, Varun Sethi wrote: > This patch set contains fixes for the PAMU driver. > The patches are based on 3.16-rc1. > > Varun Sethi (3): > Fix PAMU window size check. > Fix the device domain attach condition. > Fix the error condition during iommu group c