Re: [PATCH v2 2/2] leds/powernv: Add driver for PowerNV platform

2015-04-14 Thread Vasant Hegde
On 04/14/2015 08:50 PM, Jacek Anaszewski wrote: > Hi Vasant, Hi Jacek, >> >> This patch implements LED driver for PowerNV platform using the existing >> generic LED class framework. It registers classdev structures for all >> individual LEDs detected on the system through LED specific device tree

[PATCH v5 3/3] powerpc/powernv: Introduce sysfs control for fastsleep workaround behavior

2015-04-14 Thread Shreyas B. Prabhu
Fastsleep is one of the idle state which cpuidle subsystem currently uses on power8 machines. In this state L2 cache is brought down to a threshold voltage. Therefore when the core is in fastsleep, the communication between L2 and L3 needs to be fenced. But there is a bug in the current power8 chip

[PATCH v5 2/3] powerpc/powernv: Move cpuidle related code from setup.c to new file

2015-04-14 Thread Shreyas B. Prabhu
This is a cleanup patch; doesn't change any functionality. Moves all cpuidle related code from setup.c to a new file. Signed-off-by: Shreyas B. Prabhu Reviewed-by: Preeti U Murthy --- arch/powerpc/platforms/powernv/Makefile | 2 +- arch/powerpc/platforms/powernv/idle.c | 191 +++

[PATCH v5 1/3] powerpc: Fix cpu_online_cores_map to return only online threads mask

2015-04-14 Thread Shreyas B. Prabhu
Currently, cpu_online_cores_map returns a mask, which for every core with at least one online thread, has the bit for thread 0 of the core set to 1, and the bits for all other threads of the core set to 0. But thread 0 of the core itself may not be online always. In such cases, if the returned mask

[PATCH v5 0/3] powerpc: powernv: Fastsleep workaround behavior

2015-04-14 Thread Shreyas B. Prabhu
Fastsleep is one of the idle state which cpuidle subsystem currently uses on power8 machines. In this state L2 cache is brought down to a threshold voltage. Therefore when the core is in fastsleep, the communication between L2 and L3 needs to be fenced. But there is a bug in the current power8 ch

Re: [PATCH kernel v8 03/31] vfio: powerpc/spapr: Check that IOMMU page is fully contained by system page

2015-04-14 Thread David Gibson
On Fri, Apr 10, 2015 at 04:30:45PM +1000, Alexey Kardashevskiy wrote: > This checks that the TCE table page size is not bigger that the size of > a page we just pinned and going to put its physical address to the table. > > Otherwise the hardware gets unwanted access to physical memory between > t

Re: [PATCH kernel v8 01/31] vfio: powerpc/spapr: Move page pinning from arch code to VFIO IOMMU driver

2015-04-14 Thread David Gibson
On Fri, Apr 10, 2015 at 04:30:43PM +1000, Alexey Kardashevskiy wrote: > This moves page pinning (get_user_pages_fast()/put_page()) code out of > the platform IOMMU code and puts it to VFIO IOMMU driver where it belongs > to as the platform code does not deal with page pinning. > > This makes iommu

Re: [PATCH kernel v8 02/31] vfio: powerpc/spapr: Do cleanup when releasing the group

2015-04-14 Thread David Gibson
On Fri, Apr 10, 2015 at 04:30:44PM +1000, Alexey Kardashevskiy wrote: > This clears the TCE table when a container is being closed as this is > a good thing to leave the table clean before passing the ownership > back to the host kernel. > > Signed-off-by: Alexey Kardashevskiy Reviewed-by: David

Re: [PATCH kernel v8 05/31] vfio: powerpc/spapr: Move locked_vm accounting to helpers

2015-04-14 Thread David Gibson
On Fri, Apr 10, 2015 at 04:30:47PM +1000, Alexey Kardashevskiy wrote: > There moves locked pages accounting to helpers. > Later they will be reused for Dynamic DMA windows (DDW). > > This reworks debug messages to show the current value and the limit. > > This stores the locked pages number in th

Re: [PATCH v4 3/3] powerpc/powernv: Introduce sysfs control for fastsleep workaround behavior

2015-04-14 Thread Shreyas B Prabhu
> > A point that bothers me here is if we can potentially race with cpu > hotplug ? If cpuX and its siblings are offline and it was interrupted to > come online: > > cpuX cpuY > Interrupted to come online > Undo workaround > >

[PATCH 1/4 v4] powerpc/fsl-booke: Add device tree support for T1024/T1023 SoC

2015-04-14 Thread Shengzhou Liu
The T1024 SoC includes the following function and features: - Two 64-bit Power architecture e5500 cores, up to 1.4GHz - private 256KB L2 cache each core and shared 256KB CoreNet platform cache (CPC) - 32-/64-bit DDR3L/DDR4 SDRAM memory controller with ECC and interleaving support - Data Path Accel

Re: [v3] clk: qoriq: Add support for the FMan clock

2015-04-14 Thread Scott Wood
On Tue, 2015-04-14 at 14:15 +0300, Igal.Liberman wrote: > +static int get_fm_clk_idx(int fm_id, int *fm_clk_idx) > +{ > + struct ccsr_guts __iomem *guts_regs = NULL; > + struct device_node *guts; > + uint32_t reg = 0; > + int clk_src = 0; > + > + guts = of_find_matching_node(NUL

[PATCH] powerpc: Show utsname->machine in boot-up banner

2015-04-14 Thread Michael Ellerman
Currently we print "Starting Linux PPC64" at boot. But we don't mention anywhere whether the kernel is big or little endian. If we print the utsname->machine value instead we get either "ppc64" or "ppc64le" which is much more informative, eg: Starting Linux ppc64le #1 SMP Wed Apr 15 12:12:20 AE

Re: [v3, 01/11] powerpc/8xx: remove remaining unnecessary code in FixupDAR

2015-04-14 Thread Scott Wood
On Tue, 2015-04-14 at 00:19 +0200, leroy christophe wrote: > > Le 13/04/2015 22:26, Scott Wood a écrit : > > On Sun, 2015-04-12 at 18:16 +0200, leroy christophe wrote: > >> Le 26/03/2015 22:32, Scott Wood a écrit : > >>> On Tue, Feb 03, 2015 at 12:38:16PM +0100, LEROY Christophe wrote: > Sinc

Re: 'perf upgrade' (was: Re: [PATCH v9 00/11] Add support for JSON event files.)

2015-04-14 Thread Michael Ellerman
On Tue, 2015-04-14 at 14:58 +0200, Ingo Molnar wrote: > * Michael Ellerman wrote: > > > On Tue, 2015-04-14 at 10:55 +0200, Ingo Molnar wrote: > > > * Sukadev Bhattiprolu wrote: > > > > > > > This is another attempt to resurrect Andi Kleen's patchset so users > > > > can specify perf events by t

Re: [PATCH 2/2] powerpc/cell: Fix iommu breakage caused by controller_ops change

2015-04-14 Thread Daniel Axtens
On Tue, 2015-04-14 at 16:49 +1000, Michael Ellerman wrote: > The recent patch to convert cell to use pci_controller_ops had a small > bug which broke machines using an iommu. > Oops. > The set of phb->controller_ops was added after the check for name != > "pci", meaning pcix/pcie PHBs weren't get

Re: [PATCH 4/5] ibmveth: Add support for Large Receive Offload

2015-04-14 Thread Eric Dumazet
On Tue, 2015-04-14 at 15:35 -0500, Thomas Falcon wrote: > Enables receiving large packets from other LPARs. These packets > have a -1 IP header checksum, so we must recalculate to have > a valid checksum. > > Signed-off-by: Brian King > Signed-off-by: Thomas Falcon > --- > drivers/net/ethernet/

Re: [PATCH v2 2/2] leds/powernv: Add driver for PowerNV platform

2015-04-14 Thread Jacek Anaszewski
Hi Vasant, On 03/20/2015 12:04 PM, Vasant Hegde wrote: From: Anshuman Khandual This patch implements LED driver for PowerNV platform using the existing generic LED class framework. It registers classdev structures for all individual LEDs detected on the system through LED specific device tree

Re: [PATCH 1/5] ibmveth: change rx buffer default allocation for CMO

2015-04-14 Thread David Miller
The net-next tree is closed, so new feature submissions are not appropriate at this time. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH 4/5] ibmveth: Add support for Large Receive Offload

2015-04-14 Thread Thomas Falcon
Enables receiving large packets from other LPARs. These packets have a -1 IP header checksum, so we must recalculate to have a valid checksum. Signed-off-by: Brian King Signed-off-by: Thomas Falcon --- drivers/net/ethernet/ibm/ibmveth.c | 15 ++- 1 file changed, 14 insertions(+), 1

[PATCH 5/5] ibmveth: Add ethtool statistics for tx and rx large packets

2015-04-14 Thread Thomas Falcon
This patch includes counters for transmitted and received large packets. Cc: Brian King Signed-off-by: Thomas Falcon --- drivers/net/ethernet/ibm/ibmveth.c | 4 drivers/net/ethernet/ibm/ibmveth.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/net/ethernet/ibm/ibmveth.c b/d

[PATCH 1/5] ibmveth: change rx buffer default allocation for CMO

2015-04-14 Thread Thomas Falcon
This patch enables 64k rx buffer pools by default. If Cooperative Memory Overcommitment (CMO) is enabled, the number of 64k buffers is reduced to save memory. Cc: Brian King Signed-off-by: Thomas Falcon --- drivers/net/ethernet/ibm/ibmveth.c | 3 +++ drivers/net/ethernet/ibm/ibmveth.h | 3 ++-

[PATCH 3/5] ibmveth: Add GRO support

2015-04-14 Thread Thomas Falcon
Cc: Brian King Signed-off-by: Thomas Falcon --- drivers/net/ethernet/ibm/ibmveth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ibm/ibmveth.c b/drivers/net/ethernet/ibm/ibmveth.c index 2911a57..08970c7 100644 --- a/drivers/net/ethernet/ibm/ibmveth.c +

[PATCH 2/5] ibmveth: Add support for TSO

2015-04-14 Thread Thomas Falcon
Add support for TSO. TSO is turned off by default and must be enabled and configured by the user. The driver version number is increased so that users can be sure that they are using ibmveth with TSO support. Cc: Brian King Signed-off-by: Thomas Falcon --- drivers/net/ethernet/ibm/ibmveth.c |

Re: [1/3][PATCH][v2] Device Tree bindings for Freescale TDM controller

2015-04-14 Thread Scott Wood
On Tue, 2015-04-14 at 08:50 -0500, Singh Sandeep-B37400 wrote: > > > +TDM (Time Division Multiplexing) > > > + > > > +DESCRIPTION > > > + > > > +The TDM is full duplex serial port designed to allow various devices > > > +including digital signal processors (DSPs) to communicate with a > > > +variet

Re: [v2] dt/bindings: fsl/guts: Added global-utilities compatibles

2015-04-14 Thread Scott Wood
On Tue, 2015-04-14 at 13:12 +0300, Igal.Liberman wrote: > From: Igal Liberman > > v2 - Addressed Scott's feedback > > Signed-off-by: Igal Liberman > --- > .../devicetree/bindings/powerpc/fsl/guts.txt |4 > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetre

Re: [PATCH] powerpc/dts: Update the core cluster PLL node(s)

2015-04-14 Thread Scott Wood
On Tue, 2015-04-14 at 15:21 -0500, Scott Wood wrote: > On Tue, 2015-04-14 at 12:55 +0300, Igal.Liberman wrote: > > From: Igal Liberman > > > > This patch replaces the following: > > https://patchwork.ozlabs.org/patch/427664/ > > > > This patch is described by the following binding document u

Re: [PATCH] powerpc/dts: Update the core cluster PLL node(s)

2015-04-14 Thread Scott Wood
On Tue, 2015-04-14 at 12:55 +0300, Igal.Liberman wrote: > From: Igal Liberman > > This patch replaces the following: > https://patchwork.ozlabs.org/patch/427664/ > > This patch is described by the following binding document update: > https://patchwork.ozlabs.org/patch/461150/ > > Si

Re: [PATCH] dt/bindings: qoriq-clock: Update core PLL binding

2015-04-14 Thread Scott Wood
On Tue, 2015-04-14 at 12:42 +0300, Igal.Liberman wrote: > From: Igal Liberman > > Added optional divider to "fsl,qoriq-core-pll-2.0". > This option might be used by Freescale hardware accelerators. > > Signed-off-by: Igal Liberman > --- > .../devicetree/bindings/clock/qoriq-clock.txt |

Re: 'perf upgrade' (was: Re: [PATCH v9 00/11] Add support for JSON event files.)

2015-04-14 Thread Andi Kleen
On Tue, Apr 14, 2015 at 10:55:41AM +0200, Ingo Molnar wrote: > > * Sukadev Bhattiprolu wrote: > > > This is another attempt to resurrect Andi Kleen's patchset so users > > can specify perf events by their event names rather than raw codes. > > > > This is a rebase of Andi Kleen's patchset from

Re: [v2] powerpc/dts: Add some SoC specific "fsl,*-device-config" compatibles

2015-04-14 Thread Scott Wood
On Tue, 2015-04-14 at 13:25 +0300, Igal.Liberman wrote: > From: Igal Liberman > > This patch adds "fsl,-device-config" compatibles to guts node. > The added compatibles used in Freescale FMan clock initialization. > > This patches is described by the following binding document update: > h

[PATCH] powerpc: Fix build error seen with powermac smp builds

2015-04-14 Thread Guenter Roeck
hael Ellerman Fixes: a7f4ee1fe93a ("powerpc: Drop return value of smp_ops->probe()") Signed-off-by: Guenter Roeck --- Seen in next-20150414. arch/powerpc/platforms/powermac/smp.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/platforms/powerma

Re: [RESEND PATCH v3 1/2] mm: Introducing arch_remap hook

2015-04-14 Thread Andrew Morton
On Tue, 14 Apr 2015 11:26:13 +0200 Laurent Dufour wrote: > > Do away with __HAVE_ARCH_REMAP and do it like this: > > > > arch/x/include/asm/y.h: > > > > extern void arch_remap(...); > > #define arch_remap arch_remap > > > > include/linux/z.h: > > > > #include > > > > #ifnde

Re: [PATCH kernel] powerpc/pseries: Fix compile of memory hotplug without CONFIG_MEMORY_HOTREMOVE

2015-04-14 Thread Nathan Fontenot
On 04/14/2015 02:01 AM, Alexey Kardashevskiy wrote: > 51925fb3c5 "powerpc/pseries: Implement memory hotplug remove in the kernel" > broke compile when CONFIG_MEMORY_HOTREMOVE is not defined due to missing > symbols. This fixes the issue by adding the missing symbols. > I think the real fix should

[v3] clk: qoriq: Add support for the FMan clock

2015-04-14 Thread Igal . Liberman
From: Igal Liberman This patch depends on the following patches: https://patchwork.ozlabs.org/patch/461151/ https://patchwork.ozlabs.org/patch/461155/ This patche is described by the following binding document update: https://patchwork.ozlabs.org/patch/461166/ v3: Up

[v3] dt/bindings: qoriq-clock: Add binding for FMan clock mux

2015-04-14 Thread Igal . Liberman
From: Igal Liberman v3: Addressed feedback from Scott: - Removed clock specifier description. v2: Addressed feedback from Scott: - Moved the "fman-clk-mux" clock provider details under "clocks" property. Signed-off-by: Igal Liberman --- .../devicetree/bindings/clock/

[v2] powerpc/dts: Add some SoC specific "fsl, *-device-config" compatibles

2015-04-14 Thread Igal . Liberman
From: Igal Liberman This patch adds "fsl,-device-config" compatibles to guts node. The added compatibles used in Freescale FMan clock initialization. This patches is described by the following binding document update: https://patchwork.ozlabs.org/patch/461153/ v2: Updated commit messag

[v2] dt/bindings: fsl/guts: Added global-utilities compatibles

2015-04-14 Thread Igal . Liberman
From: Igal Liberman v2 - Addressed Scott's feedback Signed-off-by: Igal Liberman --- .../devicetree/bindings/powerpc/fsl/guts.txt |4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/powerpc/fsl/guts.txt b/Documentation/devicetree/bindings/powerpc

[PATCH] powerpc/dts: Update the core cluster PLL node(s)

2015-04-14 Thread Igal . Liberman
From: Igal Liberman This patch replaces the following: https://patchwork.ozlabs.org/patch/427664/ This patch is described by the following binding document update: https://patchwork.ozlabs.org/patch/461150/ Signed-off-by: Igal Liberman --- arch/powerpc/boot/dts/fsl/qoriq-clock

RE: [1/3][PATCH][v2] Device Tree bindings for Freescale TDM controller

2015-04-14 Thread sand...@freescale.com
Hi Scott, Thanks for your comments. Reply inline. Regards Sandeep > -Original Message- > From: Wood Scott-B07421 > Sent: Friday, April 03, 2015 6:45 AM > To: Singh Sandeep-B37400 > Cc: linuxppc-...@ozlabs.org > Subject: Re: [1/3][PATCH][v2] Device Tree bindings for Freescale TDM > contr

[PATCH] dt/bindings: qoriq-clock: Update core PLL binding

2015-04-14 Thread Igal . Liberman
From: Igal Liberman Added optional divider to "fsl,qoriq-core-pll-2.0". This option might be used by Freescale hardware accelerators. Signed-off-by: Igal Liberman --- .../devicetree/bindings/clock/qoriq-clock.txt |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

Re: 'perf upgrade' (was: Re: [PATCH v9 00/11] Add support for JSON event files.)

2015-04-14 Thread Ingo Molnar
* Michael Ellerman wrote: > On Tue, 2015-04-14 at 10:55 +0200, Ingo Molnar wrote: > > * Sukadev Bhattiprolu wrote: > > > > > This is another attempt to resurrect Andi Kleen's patchset so users > > > can specify perf events by their event names rather than raw codes. > > > > > > This is a reba

Re: [PATCH v2 2/3] Remove celleb-only SCC PATA drivers

2015-04-14 Thread Tejun Heo
On Tue, Apr 14, 2015 at 01:58:14PM +0200, Bartlomiej Zolnierkiewicz wrote: > If Tejun & Dave are OK with it this patch can go through libata tree. > Otherwise you will need to split it on separate libata/IDE patches. I really don't care which tree this goes through. Dave, if you wanna take it, pl

Re: [PATCH v2 2/3] Remove celleb-only SCC PATA drivers

2015-04-14 Thread Bartlomiej Zolnierkiewicz
Hi, On Tuesday, April 14, 2015 03:28:45 PM Daniel Axtens wrote: > The SCC PATA interface is only used by celleb. > celleb has been dropped [1], so drop the drivers. > > [1] http://patchwork.ozlabs.org/patch/451730/ > > CC: Bartlomiej Zolnierkiewicz > CC: Tejun Heo > CC: "David S. Miller" > C

Re: 'perf upgrade' (was: Re: [PATCH v9 00/11] Add support for JSON event files.)

2015-04-14 Thread Michael Ellerman
On Tue, 2015-04-14 at 10:55 +0200, Ingo Molnar wrote: > * Sukadev Bhattiprolu wrote: > > > This is another attempt to resurrect Andi Kleen's patchset so users > > can specify perf events by their event names rather than raw codes. > > > > This is a rebase of Andi Kleen's patchset from Jul 30, 20

Re: [RESEND PATCH v3 1/2] mm: Introducing arch_remap hook

2015-04-14 Thread Laurent Dufour
On 13/04/2015 22:59, Andrew Morton wrote: > On Mon, 13 Apr 2015 17:02:19 +0300 "Kirill A. Shutemov" > wrote: > >>> Kirill, if I'm right with it, can you suggest the header where to put >>> the "generic" mremap hook's (empty) body? >> >> I initially thought it would be enough to put it into >> ,

'perf upgrade' (was: Re: [PATCH v9 00/11] Add support for JSON event files.)

2015-04-14 Thread Ingo Molnar
* Sukadev Bhattiprolu wrote: > This is another attempt to resurrect Andi Kleen's patchset so users > can specify perf events by their event names rather than raw codes. > > This is a rebase of Andi Kleen's patchset from Jul 30, 2014[1] to 4.0. > (I fixed minor and not so minor conflicts). So t

Re: [PATCH v4 3/3] powerpc/powernv: Introduce sysfs control for fastsleep workaround behavior

2015-04-14 Thread Preeti U Murthy
On 04/14/2015 01:40 PM, Shreyas B Prabhu wrote: > >>> >>> By default, fastsleep_workaround_state = dynamic. In this case, workaround >>> is applied/undone everytime the core enters/exits fastsleep. >>> >>> fastsleep_workaround_state = applyonce. In this case the workaround is >>> applied once on a

Re: [PATCH v4 3/3] powerpc/powernv: Introduce sysfs control for fastsleep workaround behavior

2015-04-14 Thread Preeti U Murthy
Hi Shreyas, On 04/14/2015 07:26 AM, Shreyas B. Prabhu wrote: > + * fastsleep_workaround_state = WORKAROUND_APPLYONCE implies > + * fastsleep workaround needs to be left in 'applied' state on all > + * the cores. Do this by- > + * 1. Patching out the call to 'undo' workaround in

Re: [PATCH v2 02/10] KVM: define common __KVM_GUESTDBG_USE_SW/HW_BP values

2015-04-14 Thread Christoffer Dall
On Mon, Apr 13, 2015 at 03:51:33PM +0100, Alex Bennée wrote: > > Christoffer Dall writes: > > > On Tue, Mar 31, 2015 at 04:08:00PM +0100, Alex Bennée wrote: > >> Currently x86, powerpc and soon arm64 use the same two architecture > >> specific bits for guest debug support for software and hardwa

Re: [PATCH v4 3/3] powerpc/powernv: Introduce sysfs control for fastsleep workaround behavior

2015-04-14 Thread Shreyas B Prabhu
>> >> By default, fastsleep_workaround_state = dynamic. In this case, workaround >> is applied/undone everytime the core enters/exits fastsleep. >> >> fastsleep_workaround_state = applyonce. In this case the workaround is >> applied once on all the cores and never undone. This can be triggered by

[PATCH V2] powerpc/mm: Add trace point for tracking hash pte fault

2015-04-14 Thread Aneesh Kumar K.V
This enables us to understand how many hash fault we are taking when running benchmarks. For ex: -bash-4.2# ./perf stat -e powerpc:hash_fault -e page-faults /tmp/ebizzy.ppc64 -S 30 -P -n 1000 ... Performance counter stats for '/tmp/ebizzy.ppc64 -S 30 -P -n 1000': 1,10,04,075 powe

Re: [PATCH] powerpc/hugetlb: Call mm_dec_nr_pmds() in hugetlb_free_pmd_range()

2015-04-14 Thread Aneesh Kumar K.V
Scott Wood writes: > Commit dc6c9a35b66b5 ("mm: account pmd page tables to the process") > added a counter that is incremented whenever a PMD is allocated and > decremented whenever a PMD is freed. For hugepages on PPC, common code > is used to allocated PMDs, but arch-specific code is used to f

[PATCH kernel] powerpc/pseries: Fix compile of memory hotplug without CONFIG_MEMORY_HOTREMOVE

2015-04-14 Thread Alexey Kardashevskiy
51925fb3c5 "powerpc/pseries: Implement memory hotplug remove in the kernel" broke compile when CONFIG_MEMORY_HOTREMOVE is not defined due to missing symbols. This fixes the issue by adding the missing symbols. Signed-off-by: Alexey Kardashevskiy --- This is made against ad30cb99465 (mpe/next) an