Re: [PATCH 4/4] mm: numa: Slow PTE scan rate if migration failures occur

2015-03-17 Thread Dave Chinner
On Thu, Mar 12, 2015 at 06:49:26PM +, Mel Gorman wrote: > On Thu, Mar 12, 2015 at 09:20:36AM -0700, Linus Torvalds wrote: > > On Thu, Mar 12, 2015 at 6:10 AM, Mel Gorman wrote: > > > > > > I believe you're correct and it matches what was observed. I'm still > > > travelling and wireless is dir

Re: [RFC, v2] powerpc/powernv: Introduce kernel param to control fastsleep workaround behavior

2015-03-17 Thread Michael Ellerman
On Tue, 2015-17-03 at 04:13:53 UTC, "Shreyas B. Prabhu" wrote: > 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 a

[PATCH] selftests/powerpc: Build the copyloops with -maltivec

2015-03-17 Thread Michael Ellerman
The recent change to remove the vrX defines exposed the fact that we are building the copyloops tests without altivec enabled. It depends on the toolchain as to whether altivec is on by default or not, so it only breaks on some toolchains. But we should always enable it. Fixes: c2ce6f9f3dc0 ("powe

[RESEND PATCH] For machine check occurring while in guest, KVM layer tries recovery

2015-03-17 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar and deliver MCE to guest if recovery is failed. For recovered errors we just go back to normal functioning of guest. But there are cases where we may hit MCE in guest with MSR(RI=0), which means MCE interrupt is not recoverable and guest can not function normally it should

Re: [RFC, v2] powerpc/powernv: Introduce kernel param to control fastsleep workaround behavior

2015-03-17 Thread Benjamin Herrenschmidt
On Tue, 2015-03-17 at 19:57 +1100, Michael Ellerman wrote: > > So my first preference is that you just bite the bullet and decide to either > always apply the workaround, or just stick with the current behaviour. That's > a > trade-off between (I think) better idle latency but a risk of checkstop

Re: [PATCH v3 4/5] powerpc/vphn: parsing code rewrite

2015-03-17 Thread Anshuman Khandual
> diff --git a/arch/powerpc/mm/vphn.h b/arch/powerpc/mm/vphn.h > index 96af9a4..fe8b780 100644 > --- a/arch/powerpc/mm/vphn.h > +++ b/arch/powerpc/mm/vphn.h > @@ -6,10 +6,10 @@ > #define VPHN_REGISTER_COUNT 6 > > /* > - * 6 64-bit registers unpacked into 12 32-bit associativity values. To form

Re: [Xen-devel] [PATCH v6 07/30] PCI: Pass PCI domain number combined with root bus number

2015-03-17 Thread Manish Jaggi
On Monday 09 March 2015 08:04 AM, Yijing Wang wrote: Now we could pass PCI domain combined with bus number in u32 argu. Because in arm/arm64, PCI domain number is assigned by pci_bus_assign_domain_nr(). So we leave pci_scan_root_bus() and pci_create_root_bus() in arm/arm64 unchanged. A new funct

Re: [PATCH 05/35 linux-next] tty: constify of_device_id array

2015-03-17 Thread Patrice Chotard
Hi Fabian On 03/16/2015 08:17 PM, Fabian Frederick wrote: of_device_id is always used as const. (See driver.of_match_table and open firmware functions) Signed-off-by: Fabian Frederick --- drivers/tty/serial/st-asc.c | 2 +- For this driver Acked-by: Patrice Chotard

[PATCH v2] powerpc/book3s: Fix the MCE code to use CONFIG_KVM_BOOK3S_64_HANDLER

2015-03-17 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar commit id 2ba9f0d has changed CONFIG_KVM_BOOK3S_64_HV to tristate to allow HV/PR bits to be built as modules. But the MCE code still depends on CONFIG_KVM_BOOK3S_64_HV which is wrong. When user selects CONFIG_KVM_BOOK3S_64_HV=m to build HV/PR bits as a separate module the

Re: [PATCH v3 4/5] powerpc/vphn: parsing code rewrite

2015-03-17 Thread Greg Kurz
On Tue, 17 Mar 2015 15:20:50 +0530 Anshuman Khandual wrote: > > diff --git a/arch/powerpc/mm/vphn.h b/arch/powerpc/mm/vphn.h > > index 96af9a4..fe8b780 100644 > > --- a/arch/powerpc/mm/vphn.h > > +++ b/arch/powerpc/mm/vphn.h > > @@ -6,10 +6,10 @@ > > #define VPHN_REGISTER_COUNT 6 > > > > /* >

Re: [PATCH v3 0/5] VPHN parsing fixes

2015-03-17 Thread Anshuman Khandual
On 02/23/2015 08:44 PM, Greg Kurz wrote: > Michael, > > As suggested in... > > https://lists.ozlabs.org/pipermail/linuxppc-dev/2015-February/124647.html > > ... I repost the whole series with an extra patch to implement selftests > for VPHN (this is the only change between v2 and v3). > > Pleas

Re: [PATCH v4 5/5] selftests/powerpc: Add test for VPHN

2015-03-17 Thread Greg Kurz
On Tue, 17 Mar 2015 15:21:29 +1100 Michael Ellerman wrote: > From: Greg Kurz > > The goal is to verify vphn_unpack_associativity() parses VPHN numbers > correctly. We feed it with a variety of input values and compare with > expected results. > > PAPR+ does not say much about VPHN parsing: I c

Re: [Xen-devel] [PATCH v6 07/30] PCI: Pass PCI domain number combined with root bus number

2015-03-17 Thread Ian Campbell
On Tue, 2015-03-17 at 10:45 +0530, Manish Jaggi wrote: > On Monday 09 March 2015 08:04 AM, Yijing Wang wrote: > > Now we could pass PCI domain combined with bus number > > in u32 argu. Because in arm/arm64, PCI domain number > > is assigned by pci_bus_assign_domain_nr(). So we leave > > pci_scan_ro

Re: [PATCH v4 03/10] arm64: standardize mmap_rnd() usage

2015-03-17 Thread Will Deacon
On Wed, Mar 04, 2015 at 09:10:47PM +, Kees Cook wrote: > In preparation for splitting out ET_DYN ASLR, this refactors the use of > mmap_rnd() to be used similarly to arm and x86. This additionally enables > mmap ASLR on legacy mmap layouts, which appeared to be missing on arm64, > and was alrea

Re: [PATCH v4 03/10] arm64: standardize mmap_rnd() usage

2015-03-17 Thread Kees Cook
On Tue, Mar 17, 2015 at 7:47 AM, Will Deacon wrote: > On Wed, Mar 04, 2015 at 09:10:47PM +, Kees Cook wrote: >> In preparation for splitting out ET_DYN ASLR, this refactors the use of >> mmap_rnd() to be used similarly to arm and x86. This additionally enables >> mmap ASLR on legacy mmap layou

Re: [RFC, v2] powerpc/powernv: Introduce kernel param to control fastsleep workaround behavior

2015-03-17 Thread Shreyas B Prabhu
On Tuesday 17 March 2015 03:09 PM, Benjamin Herrenschmidt wrote: > On Tue, 2015-03-17 at 19:57 +1100, Michael Ellerman wrote: >> >> So my first preference is that you just bite the bullet and decide to either >> always apply the workaround, or just stick with the current behaviour. >> That's a >

Re: [PATCH 4/4] mm: numa: Slow PTE scan rate if migration failures occur

2015-03-17 Thread Linus Torvalds
On Tue, Mar 17, 2015 at 12:06 AM, Dave Chinner wrote: > > TO close the loop here, now I'm back home and can run tests: > > config3.19 4.0-rc1 4.0-rc4 > defaults 8m08s9m34s 9m14s > -o ag_stride=-1 4m04s

Re: [PATCH v2 5/5] crypto: talitos: Add software backlog queue handling

2015-03-17 Thread Horia Geantă
On 3/17/2015 2:19 AM, Kim Phillips wrote: > On Mon, 16 Mar 2015 12:02:51 +0200 > Horia Geantă wrote: > >> On 3/4/2015 2:23 AM, Kim Phillips wrote: >>> Only potential problem is getting the crypto API to set the GFP_DMA >>> flag in the allocation request, but presumably a >>> CRYPTO_TFM_REQ_DMA cr

[PATCH 03/16 linux-next] net/fsl: constify of_device_id array

2015-03-17 Thread Fabian Frederick
of_device_id is always used as const. (See driver.of_match_table and open firmware functions) Signed-off-by: Fabian Frederick --- drivers/net/ethernet/freescale/fec_mpc52xx.c | 2 +- drivers/net/ethernet/freescale/fec_mpc52xx_phy.c | 2 +- drivers/net/ethernet/freescale/fs_enet/fs_

[PATCH 00/16 linux-next] drivers/net: constify of_device_id array

2015-03-17 Thread Fabian Frederick
This small patchset adds const to of_device_id arrays in drivers/net branch. Fabian Frederick (16): net: netcp: constify of_device_id array Altera TSE: constify of_device_id array net/fsl: constify of_device_id array net: ethoc: constify of_device_id array drivers: net: xgene: constify o

Re: [PATCH 00/16 linux-next] drivers/net: constify of_device_id array

2015-03-17 Thread David Miller
From: Fabian Frederick Date: Tue, 17 Mar 2015 19:37:31 +0100 > This small patchset adds const to of_device_id arrays in > drivers/net branch. Series applied, thanks. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/l

[PATCH RFC 00/11] introduce DPAA Ethernet driver

2015-03-17 Thread Madalin Bucur
This patch series introduces the Ethernet driver for the Freescale QorIQ Data Path Acceleration Architecture (DPAA). Together with the driver a managed version of alloc_percpu is provided that simplifies the release of percpu memory. The Freescale DPAA architecture consists in a series of hardware

[PATCH RFC 02/11] dpaa_eth: add support for DPAA Ethernet

2015-03-17 Thread Madalin Bucur
This introduces the Freescale Data Path Acceleration Architecture (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, BMan, PAMU and FMan drivers to deliver Ethernet connectivity on the Freescale DPAA QorIQ platforms. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/

[PATCH RFC 01/11] devres: add devm_alloc_percpu()

2015-03-17 Thread Madalin Bucur
Introduce managed counterparts for alloc_percpu() and free_percpu(). Add devm_alloc_percpu() and devm_free_percpu() into the managed interfaces list. Signed-off-by: Madalin Bucur Tested-by: Madalin-Cristian Bucur --- Documentation/driver-model/devres.txt | 4 +++ drivers/base/devres.c

[PATCH RFC 09/11] dpaa_eth: add debugfs counters

2015-03-17 Thread Madalin Bucur
Add a series of counters to be exported through debugfs: - add detailed counters for reception errors; - add detailed counters for QMan enqueue reject events; - count the number of fragmented skbs received from the stack; - count all frames received on the Tx confirmation path; - add congestion gro

[PATCH RFC 05/11] dpaa_eth: add support for S/G frames

2015-03-17 Thread Madalin Bucur
Add support for Scater/Gather (S/G) frames. The FMan can place the frame content into multiple buffers and provide a S/G Table (SGT) into one first buffer with references to the others. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 6 + .../net/ethernet/

[PATCH RFC 03/11] dpaa_eth: add PM ops

2015-03-17 Thread Madalin Bucur
Add suspend and resume functionality. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 109 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 9 ++ 2 files changed, 118 insertions(+) diff --git a/drivers/net/ethernet/freescale/dpaa/dpa

[PATCH RFC 06/11] dpaa_eth: add driver's Tx queue selection mechanism

2015-03-17 Thread Madalin Bucur
Allow the selection of the transmission queue based on the CPU id. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Kconfig | 11 +++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.c| 3 +++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.h| 6 +

[PATCH RFC 10/11] dpaa_eth: add debugfs entries

2015-03-17 Thread Madalin Bucur
Export per CPU counters through debugfs. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Kconfig| 7 + drivers/net/ethernet/freescale/dpaa/Makefile | 3 + drivers/net/ethernet/freescale/dpaa/dpaa_debugfs.c | 273 + drivers/net/ethernet/f

[PATCH RFC 07/11] dpaa_eth: add ethtool functionality

2015-03-17 Thread Madalin Bucur
Add support for basic ethtool operations. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Makefile | 2 +- .../net/ethernet/freescale/dpaa/dpaa_eth_common.c | 2 + .../net/ethernet/freescale/dpaa/dpaa_eth_common.h | 3 + drivers/net/ethernet/freescale/dpaa/dpaa

[PATCH RFC 08/11] dpaa_eth: add sysfs exports

2015-03-17 Thread Madalin Bucur
Export Frame Queue and Buffer Pool IDs through sysfs. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Makefile | 2 +- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 2 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 2 + .../net/ethernet/freescale/d

[PATCH RFC 11/11] dpaa_eth: add trace points

2015-03-17 Thread Madalin Bucur
Add trace points on the hot processing path. Signed-off-by: Ruxandra Ioana Radulescu --- drivers/net/ethernet/freescale/dpaa/Makefile | 1 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 12 ++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 4 + .../net/ethernet/freescale

Re: linux panic on 4.0.0-rc4

2015-03-17 Thread Peter Hurley
On 03/17/2015 02:33 AM, Pranith Kumar wrote: > On Mon, Mar 16, 2015 at 11:18 PM, Peter Hurley > wrote: >> On 03/16/2015 11:12 PM, Pranith Kumar wrote: >>> On Mon, Mar 16, 2015 at 10:58 PM, Peter Hurley >>> wrote: >> What is your init? > > I am using systemd from debian unstable. >>>

Re: linux panic on 4.0.0-rc4

2015-03-17 Thread Pranith Kumar
On Tue, Mar 17, 2015 at 4:03 PM, Peter Hurley wrote: > > Can you send me a complete dmesg capture from a boot with > this commit reverted? > Here it is. Let me know if you want any boot options enabled. I removed both debug and verbose boot options. [0.00] Using PowerMac machine descript

Re: linux panic on 4.0.0-rc4

2015-03-17 Thread Peter Hurley
On 03/17/2015 04:07 PM, Pranith Kumar wrote: > On Tue, Mar 17, 2015 at 4:03 PM, Peter Hurley > wrote: >> >> Can you send me a complete dmesg capture from a boot with >> this commit reverted? >> > > Here it is. Let me know if you want any boot options enabled. I > removed both debug and verbose b

Re: linux panic on 4.0.0-rc4

2015-03-17 Thread Pranith Kumar
On Tue, Mar 17, 2015 at 4:13 PM, Peter Hurley wrote: > On 03/17/2015 04:07 PM, Pranith Kumar wrote: >> On Tue, Mar 17, 2015 at 4:03 PM, Peter Hurley >> wrote: >>> >>> Can you send me a complete dmesg capture from a boot with >>> this commit reverted? >>> >> >> Here it is. Let me know if you want

Re: linux panic on 4.0.0-rc4

2015-03-17 Thread Peter Hurley
On 03/17/2015 04:16 PM, Pranith Kumar wrote: > On Tue, Mar 17, 2015 at 4:13 PM, Peter Hurley > wrote: >> On 03/17/2015 04:07 PM, Pranith Kumar wrote: >>> On Tue, Mar 17, 2015 at 4:03 PM, Peter Hurley >>> wrote: Can you send me a complete dmesg capture from a boot with this commit

[PATCH RFC 04/11] dpaa_eth: add configurable bpool thresholds

2015-03-17 Thread Madalin Bucur
Allow the user to tweak the refill threshold and the total number of buffers in the buffer pool. The provided values are for one CPU. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Kconfig | 20 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c|

[PATCH] Revert "of: Fix premature bootconsole disable with 'stdout-path'"

2015-03-17 Thread Peter Hurley
This reverts commit 2fa645cb2703d9b3786d850db815414dfeefa51d. The assumption that at least 1 preferred console will be registered when the stdout-path property is set is invalid, which can result in _no_ consoles. Signed-off-by: Peter Hurley --- drivers/of/base.c | 4 +--- 1 file changed, 1 ins

Re: [PATCH v2 2/2] drivers/vfio: Support EEH error injection

2015-03-17 Thread Alex Williamson
On Mon, 2015-03-16 at 18:01 +1100, Gavin Shan wrote: > The patch adds one more EEH sub-command (VFIO_EEH_PE_INJECT_ERR) > to inject the specified EEH error, which is represented by > (struct vfio_eeh_pe_err), to the indicated PE for testing purpose. > > Signed-off-by: Gavin Shan > --- > v2: Put a

Re: [PATCH 4/4] mm: numa: Slow PTE scan rate if migration failures occur

2015-03-17 Thread Dave Chinner
On Tue, Mar 17, 2015 at 09:53:57AM -0700, Linus Torvalds wrote: > On Tue, Mar 17, 2015 at 12:06 AM, Dave Chinner wrote: > > > > TO close the loop here, now I'm back home and can run tests: > > > > config3.19 4.0-rc1 4.0-rc4 > > defaults

Re: [PATCH 4/4] mm: numa: Slow PTE scan rate if migration failures occur

2015-03-17 Thread Linus Torvalds
On Tue, Mar 17, 2015 at 1:51 PM, Dave Chinner wrote: > > On the -o ag_stride=-1 -o bhash=101073 config, the 60s perf stat I > was using during steady state shows: > > 471,752 migrate:mm_migrate_pages ( +- 7.38% ) > > The migrate pages rate is even higher than in 4.0-rc1 (~360,000) > and

Re: [PATCH 4/4] mm: numa: Slow PTE scan rate if migration failures occur

2015-03-17 Thread Dave Chinner
On Tue, Mar 17, 2015 at 02:30:57PM -0700, Linus Torvalds wrote: > On Tue, Mar 17, 2015 at 1:51 PM, Dave Chinner wrote: > > > > On the -o ag_stride=-1 -o bhash=101073 config, the 60s perf stat I > > was using during steady state shows: > > > > 471,752 migrate:mm_migrate_pages ( +- 7.38%

Re: [PATCH v2 5/5] crypto: talitos: Add software backlog queue handling

2015-03-17 Thread Kim Phillips
On Tue, 17 Mar 2015 19:58:55 +0200 Horia Geantă wrote: > On 3/17/2015 2:19 AM, Kim Phillips wrote: > > On Mon, 16 Mar 2015 12:02:51 +0200 > > Horia Geantă wrote: > > > >> On 3/4/2015 2:23 AM, Kim Phillips wrote: > >>> Only potential problem is getting the crypto API to set the GFP_DMA > >>> fla

Re: [PATCH v4 5/5] selftests/powerpc: Add test for VPHN

2015-03-17 Thread Michael Ellerman
On Tue, 2015-03-17 at 12:49 +0100, Greg Kurz wrote: > On Tue, 17 Mar 2015 15:21:29 +1100 > Michael Ellerman wrote: > > > From: Greg Kurz > > > > The goal is to verify vphn_unpack_associativity() parses VPHN numbers > > correctly. We feed it with a variety of input values and compare with > > ex

Re: [PATCH v2 2/2] drivers/vfio: Support EEH error injection

2015-03-17 Thread Gavin Shan
On Tue, Mar 17, 2015 at 02:45:49PM -0600, Alex Williamson wrote: >On Mon, 2015-03-16 at 18:01 +1100, Gavin Shan wrote: >> The patch adds one more EEH sub-command (VFIO_EEH_PE_INJECT_ERR) >> to inject the specified EEH error, which is represented by >> (struct vfio_eeh_pe_err), to the indicated PE f

Re: [PATCH] Revert "of: Fix premature bootconsole disable with 'stdout-path'"

2015-03-17 Thread Michael Ellerman
On Tue, 2015-03-17 at 16:46 -0400, Peter Hurley wrote: > This reverts commit 2fa645cb2703d9b3786d850db815414dfeefa51d. > > The assumption that at least 1 preferred console will be registered > when the stdout-path property is set is invalid, which can result > in _no_ consoles. > > Signed-off-by:

Re: [RFC, v2] powerpc/powernv: Introduce kernel param to control fastsleep workaround behavior

2015-03-17 Thread Michael Ellerman
On Tue, 2015-03-17 at 21:19 +0530, Shreyas B Prabhu wrote: > > On Tuesday 17 March 2015 03:09 PM, Benjamin Herrenschmidt wrote: > > On Tue, 2015-03-17 at 19:57 +1100, Michael Ellerman wrote: > >> > >> >From what I can see below, the decision as to whether you apply the > >> >workaround > >> or no

Re: [PATCH v3 2/2] selftests/powerpc: Add a test of the switch_endian() syscall

2015-03-17 Thread Michael Ellerman
On Tue, 2015-03-17 at 11:35 +0530, Anshuman Khandual wrote: > On 03/17/2015 04:34 AM, Michael Ellerman wrote: > > What are you seeing exactly? > > I am running on a BE PKVM guest but compiling the test case on > a different BE machine which has newer version of the compiler. > > cc (GCC) 4.8.3 20

Re: [PATCHv3] powerpc: convert relocs_check to a shell script using grep

2015-03-17 Thread Michael Ellerman
On Sun, 2015-15-03 at 11:08:47 UTC, Stephen Rothwell wrote: > This runs a bit faster and removes another use of perl from > the kernel build. It tells me: $ make ARCH=powerpc CROSS_COMPILE= -s ppc64_defconfig # # configuration written to .config # $ make ARCH=powerpc CROSS_COMPILE= -s -j240 ...

Re: [PATCHv3] powerpc: convert relocs_check to a shell script using grep

2015-03-17 Thread Stephen Rothwell
Hi Michael, On Wed, 18 Mar 2015 16:19:40 +1100 (AEDT) Michael Ellerman wrote: > > On Sun, 2015-15-03 at 11:08:47 UTC, Stephen Rothwell wrote: > > This runs a bit faster and removes another use of perl from > > the kernel build. > > It tells me: > > $ make ARCH=powerpc CROSS_COMPILE= -s ppc64_d

[PATCHv4] powerpc: comvert relocs_check to a shell script using grep

2015-03-17 Thread Stephen Rothwell
This runs a bit faster and removes another use of perl from the kernel build. Signed-off-by: Stephen Rothwell --- v4: don't do checks on $objdump or $vmlinux as it will become pretty obvious if they are not the correct things (Michael) v3: use $# instead of ${#*} (thanks David Laight) als

Re: [PATCHv4] powerpc: comvert relocs_check to a shell script using grep

2015-03-17 Thread Stephen Rothwell
Hi all, On Wed, 18 Mar 2015 16:46:16 +1100 Stephen Rothwell wrote: > > This runs a bit faster and removes another use of perl from > the kernel build. > > Signed-off-by: Stephen Rothwell I forgot to add in the Acked-By: Tony Breeds -- Cheers, Stephen Rothwells...@canb.