Re: [PATCH 2/2] cpufreq: qoriq: rename the driver

2014-11-20 Thread Viresh Kumar
On 21 November 2014 12:58, Tang Yuantian wrote: > This driver works on all QorIQ platforms which include > ARM-based cores and PPC-based cores. > Rename it in order to represent better. > > Signed-off-by: Tang Yuantian > --- > drivers/cpufreq/ppc-corenet-cpufreq.c | 371 > --

Re: [PATCH v2 1/2] cpufreq: qoriq: Make the driver usable on all QorIQ platforms

2014-11-20 Thread Viresh Kumar
On 21 November 2014 12:58, Tang Yuantian wrote: > diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm > index 83a75dc..1925ae94 100644 > --- a/drivers/cpufreq/Kconfig.arm > +++ b/drivers/cpufreq/Kconfig.arm > @@ -247,3 +247,11 @@ config ARM_TEGRA_CPUFREQ > default y >

Re: [PATCH v2 3/6] pseries: Create new device hotplug entry point

2014-11-20 Thread Cyril Bur
On Mon, 2014-11-17 at 15:51 -0600, Nathan Fontenot wrote: > Create a new entry point for device hotplug on pseries that will > work for both PowerVM and PowerKVM systems. > > The current process to hotplug (or dlpar) devices (generally the same > process for memory, cpu, and pci devices) on Power

Re: [PATCH v2 5/6] pseries: Implement memory hotplug add in the kernel

2014-11-20 Thread Cyril Bur
On Mon, 2014-11-17 at 15:54 -0600, Nathan Fontenot wrote: > Move handling of memory hotplug add on pseries completely into the kernel. > > The current memory hotplug add path involves the drmgr command doing part > of this work in userspace and requesting the kernel to do additional pieces. > Thi

Re: [PATCH v2 6/6] pseries: Implement memory hotplug remove in the kernel

2014-11-20 Thread Cyril Bur
On Mon, 2014-11-17 at 15:56 -0600, Nathan Fontenot wrote: > Move handling of memory hotplug remove on pseries completely into the kernel. > > The current memory hotplug remove path involves the drmgr command doing part > of this work in userspace and requesting the kernel to do additional pieces.

[PATCH 2/2] cpufreq: qoriq: rename the driver

2014-11-20 Thread Tang Yuantian
This driver works on all QorIQ platforms which include ARM-based cores and PPC-based cores. Rename it in order to represent better. Signed-off-by: Tang Yuantian --- drivers/cpufreq/ppc-corenet-cpufreq.c | 371 -- drivers/cpufreq/qoriq-cpufreq.c | 371 +++

[PATCH v2 1/2] cpufreq: qoriq: Make the driver usable on all QorIQ platforms

2014-11-20 Thread Tang Yuantian
Freescale introduced new ARM core-based SoCs which support dynamic frequency switch feature. DFS on new SoCs are compatible with current PowerPC CoreNet platforms. In order to support those new platforms, this driver needs to be updated. The main changes include: 1. Changed the names of functions

Re: [PATCH 03/10] mm: Convert p[te|md]_numa users to p[te|md]_protnone_numa

2014-11-20 Thread Aneesh Kumar K.V
Mel Gorman writes: > Convert existing users of pte_numa and friends to the new helper. Note > that the kernel is broken after this patch is applied until the other > page table modifiers are also altered. This patch layout is to make > review easier. > . > diff --git a/arch/powerpc/mm/pgtab

[PATCH] Powerpc/Oprofile:Disable pagefaults during user stack read

2014-11-20 Thread Jiang Lu
A page fault occurred during reading user stack in oprofile backtrace would lead following calltrace: WARNING: at linux/kernel/smp.c:210 Modules linked in: CPU: 5 PID: 736 Comm: sh Tainted: G W 3.14.23-WR7.0.0.0_standard #1 task: c000f6208bc0 ti: c0007c72c000 task.ti: c0007c72c000 NI

Re: [RFC PATCH 00/16] Refine PCI host bridge scan interfaces

2014-11-20 Thread Yijing Wang
On 2014/11/21 0:39, Liviu Dudau wrote: > On Thu, Nov 20, 2014 at 01:53:48PM +0100, Tomasz Nowicki wrote: >> On 20.11.2014 13:08, Liviu Dudau wrote: >>> On Thu, Nov 20, 2014 at 12:54:48PM +0100, Tomasz Nowicki wrote: On 17.11.2014 15:13, Arnd Bergmann wrote: > On Monday 17 November 2014 18:

Re: [RFC PATCH 07/16] PCI: Separate pci_host_bridge creation out of pci_create_root_bus()

2014-11-20 Thread Yijing Wang
>>> pci_create_host_bridge() can get pci_host_bridge ops while >>> pci_create_root_bus() gets >>> the bus ops. For find out the MSI controller, the domain number and any >>> other HB >>> specific stuff, you use the HB ops. For config R/W acceses you use bus ops. >>> >> >> I want to unexport pci_c

Re: [PATCH V9 08/18] powrepc/pci: Refactor pci_dn

2014-11-20 Thread Wei Yang
On Thu, Nov 20, 2014 at 12:05:41PM -0700, Bjorn Helgaas wrote: >On Thu, Nov 20, 2014 at 03:20:57PM +0800, Wei Yang wrote: >> On Wed, Nov 19, 2014 at 04:30:24PM -0700, Bjorn Helgaas wrote: >> >On Sun, Nov 02, 2014 at 11:41:24PM +0800, Wei Yang wrote: >> >> From: Gavin Shan >> >> >> >> pci_dn is th

Re: [PATCH V9 08/18] powrepc/pci: Refactor pci_dn

2014-11-20 Thread Gavin Shan
On Thu, Nov 20, 2014 at 12:05:41PM -0700, Bjorn Helgaas wrote: >On Thu, Nov 20, 2014 at 03:20:57PM +0800, Wei Yang wrote: >> On Wed, Nov 19, 2014 at 04:30:24PM -0700, Bjorn Helgaas wrote: >> >On Sun, Nov 02, 2014 at 11:41:24PM +0800, Wei Yang wrote: >> >> From: Gavin Shan >> >> >> >> pci_dn is th

Re: [PATCH 0/10] Replace _PAGE_NUMA with PAGE_NONE protections v2

2014-11-20 Thread Sasha Levin
On 11/20/2014 05:19 AM, Mel Gorman wrote: > V1 failed while running under kvm-tools very quickly and a second report > indicated that it happens on bare metal as well. This version survived > an overnight run of trinity running under kvm-tools here but verification > from Sasha would be appreciated

Re: [PATCH 02/10] mm: Add p[te|md] protnone helpers for use by NUMA balancing

2014-11-20 Thread Linus Torvalds
On Thu, Nov 20, 2014 at 2:19 AM, Mel Gorman wrote: > This is a preparatory patch that introduces protnone helpers for automatic > NUMA balancing. Oh, I hadn't noticed that you had renamed these things. It was probably already true in your V1 version. I do *not* think that "pte_protnone_numa()" m

Re: [PATCH V9 08/18] powrepc/pci: Refactor pci_dn

2014-11-20 Thread Bjorn Helgaas
On Thu, Nov 20, 2014 at 03:20:57PM +0800, Wei Yang wrote: > On Wed, Nov 19, 2014 at 04:30:24PM -0700, Bjorn Helgaas wrote: > >On Sun, Nov 02, 2014 at 11:41:24PM +0800, Wei Yang wrote: > >> From: Gavin Shan > >> > >> pci_dn is the extension of PCI device node and it's created from > >> device node

Re: [RFC PATCH 00/16] Refine PCI host bridge scan interfaces

2014-11-20 Thread Liviu Dudau
On Thu, Nov 20, 2014 at 01:53:48PM +0100, Tomasz Nowicki wrote: > On 20.11.2014 13:08, Liviu Dudau wrote: > >On Thu, Nov 20, 2014 at 12:54:48PM +0100, Tomasz Nowicki wrote: > >>On 17.11.2014 15:13, Arnd Bergmann wrote: > >>>On Monday 17 November 2014 18:21:34 Yijing Wang wrote: > This series is

[PATCH] spi: fsl-spi: Don't use cpm_command on CPM1

2014-11-20 Thread Christophe Leroy
On CPM1, when the SPI parameter RAM is relocated to somewhere else than the default location, in accordance with freescale documentation (refer micropatch SPI application note EB662), init RX/TX params command shall not be used because it doesn't take into account the new location, and overwrites d

Re: [PATCH v2] i2c: Driver to expose PowerNV platform i2c busses

2014-11-20 Thread Neelesh Gupta
On 11/16/2014 10:47 PM, Neelesh Gupta wrote: The patch exposes the available i2c busses on the PowerNV platform to the kernel and implements the bus driver to support i2c and smbus commands. The driver uses the platform device infrastructure to probe the busses on the platform and registers them

Re: [RFC PATCH 00/16] Refine PCI host bridge scan interfaces

2014-11-20 Thread Arnd Bergmann
On Thursday 20 November 2014 13:01:08 Tomasz Nowicki wrote: > On 18.11.2014 13:27, Arnd Bergmann wrote: > > On Tuesday 18 November 2014 20:17:57 Yijing Wang wrote: > >> > > I hope platforms with ACPI or DT could both use pci_create_host_bridge(). > Why we need to use two different wa

RE: [PATCH] [v2] power/fsl: add MDIO dt binding for FMan

2014-11-20 Thread Shaohui Xie
Ping. Best Regards, Shaohui Xie > -Original Message- > From: shh@gmail.com [mailto:shh@gmail.com] > Sent: Friday, November 14, 2014 5:53 PM > To: linuxppc-dev@lists.ozlabs.org; devicet...@vger.kernel.org; Wood > Scott-B07421 > Cc: Medve Emilian-EMMEDVE1; Liberman Igal-B31950; Xie

Re: [RFC PATCH 00/16] Refine PCI host bridge scan interfaces

2014-11-20 Thread Tomasz Nowicki
On 20.11.2014 13:08, Liviu Dudau wrote: On Thu, Nov 20, 2014 at 12:54:48PM +0100, Tomasz Nowicki wrote: On 17.11.2014 15:13, Arnd Bergmann wrote: On Monday 17 November 2014 18:21:34 Yijing Wang wrote: This series is based Linux 3.18-rc1 and Lorenzo Pieralisi's arm PCI domain cleanup patches, l

Re: [RFC PATCH 00/16] Refine PCI host bridge scan interfaces

2014-11-20 Thread Tomasz Nowicki
On 18.11.2014 13:27, Arnd Bergmann wrote: On Tuesday 18 November 2014 20:17:57 Yijing Wang wrote: I hope platforms with ACPI or DT could both use pci_create_host_bridge(). Why we need to use two different ways to process it ? These are completely different use cases: a) For DT, we want loa

Re: [RFC PATCH 00/16] Refine PCI host bridge scan interfaces

2014-11-20 Thread Tomasz Nowicki
On 17.11.2014 15:13, Arnd Bergmann wrote: On Monday 17 November 2014 18:21:34 Yijing Wang wrote: This series is based Linux 3.18-rc1 and Lorenzo Pieralisi's arm PCI domain cleanup patches, link: https://patchwork.ozlabs.org/patch/407585/ Current pci scan interfaces like pci_scan_root_bus() and

Re: [RFC PATCH 00/16] Refine PCI host bridge scan interfaces

2014-11-20 Thread Liviu Dudau
On Thu, Nov 20, 2014 at 12:54:48PM +0100, Tomasz Nowicki wrote: > On 17.11.2014 15:13, Arnd Bergmann wrote: > >On Monday 17 November 2014 18:21:34 Yijing Wang wrote: > >>This series is based Linux 3.18-rc1 and Lorenzo Pieralisi's > >>arm PCI domain cleanup patches, link: > >>https://patchwork.ozlab

Re: [PATCH 03/10] mm: Convert p[te|md]_numa users to p[te|md]_protnone_numa

2014-11-20 Thread Mel Gorman
On Thu, Nov 20, 2014 at 10:38:56AM +, David Laight wrote: > From: Mel Gorman > > Convert existing users of pte_numa and friends to the new helper. Note > > that the kernel is broken after this patch is applied until the other > > page table modifiers are also altered. This patch layout is to m

RE: [PATCH 03/10] mm: Convert p[te|md]_numa users to p[te|md]_protnone_numa

2014-11-20 Thread David Laight
From: Mel Gorman > Convert existing users of pte_numa and friends to the new helper. Note > that the kernel is broken after this patch is applied until the other > page table modifiers are also altered. This patch layout is to make > review easier. Doesn't that break bisection? David __

[PATCH 10/10] mm: numa: Avoid unnecessary TLB flushes when setting NUMA hinting entries

2014-11-20 Thread Mel Gorman
If a PTE or PMD is already marked NUMA when scanning to mark entries for NUMA hinting then it is not necessary to update the entry and incur a TLB flush penalty. Avoid the avoidhead where possible. Signed-off-by: Mel Gorman --- mm/huge_memory.c | 14 -- mm/mprotect.c| 4 2

[PATCH 09/10] mm: numa: Add paranoid check around pte_protnone_numa

2014-11-20 Thread Mel Gorman
pte_protnone_numa is only safe to use after VMA checks for PROT_NONE are complete. Treating a real PROT_NONE PTE as a NUMA hinting fault is going to result in strangeness so add a check for it. BUG_ON looks like overkill but if this is hit then it's a serious bug that could result in corruption so

[PATCH 08/10] x86: mm: Restore original pte_special check

2014-11-20 Thread Mel Gorman
Commit b38af4721f59 ("x86,mm: fix pte_special versus pte_numa") adjusted the pte_special check to take into account that a special pte had SPECIAL and neither PRESENT nor PROTNONE. Now that NUMA hinting PTEs are no longer modifying _PAGE_PRESENT it should be safe to restore the original pte_special

[PATCH 07/10] mm: numa: Do not trap faults on the huge zero page

2014-11-20 Thread Mel Gorman
Faults on the huge zero page are pointless and there is a BUG_ON to catch them during fault time. This patch reintroduces a check that avoids marking the zero page PAGE_NONE. Signed-off-by: Mel Gorman --- include/linux/huge_mm.h | 3 ++- mm/huge_memory.c| 13 - mm/memory.c

[PATCH 06/10] mm: Remove remaining references to NUMA hinting bits and helpers

2014-11-20 Thread Mel Gorman
This patch removes the NUMA PTE bits and associated helpers. As a side-effect it increases the maximum possible swap space on x86-64. One potential source of problems is races between the marking of PTEs PROT_NONE, NUMA hinting faults and migration. It must be guaranteed that a PTE being protected

[PATCH 05/10] mm: Convert p[te|md]_mknonnuma and remaining page table manipulations

2014-11-20 Thread Mel Gorman
With PROT_NONE, the traditional page table manipulation functions are sufficient. Signed-off-by: Mel Gorman Acked-by: Linus Torvalds Acked-by: Aneesh Kumar --- include/linux/huge_mm.h | 3 +-- mm/huge_memory.c| 33 +++-- mm/memory.c | 10 ++-

[PATCH 04/10] ppc64: Add paranoid warnings for unexpected DSISR_PROTFAULT

2014-11-20 Thread Mel Gorman
ppc64 should not be depending on DSISR_PROTFAULT and it's unexpected if they are triggered. This patch adds warnings just in case they are being accidentally depended upon. Signed-off-by: Mel Gorman Acked-by: Aneesh Kumar K.V --- arch/powerpc/mm/copro_fault.c | 8 ++-- arch/powerpc/mm/faul

[PATCH 03/10] mm: Convert p[te|md]_numa users to p[te|md]_protnone_numa

2014-11-20 Thread Mel Gorman
Convert existing users of pte_numa and friends to the new helper. Note that the kernel is broken after this patch is applied until the other page table modifiers are also altered. This patch layout is to make review easier. Signed-off-by: Mel Gorman Acked-by: Linus Torvalds Acked-by: Aneesh Kuma

[PATCH 02/10] mm: Add p[te|md] protnone helpers for use by NUMA balancing

2014-11-20 Thread Mel Gorman
This is a preparatory patch that introduces protnone helpers for automatic NUMA balancing. Signed-off-by: Mel Gorman Acked-by: Linus Torvalds Acked-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/pgtable.h | 11 +++ arch/x86/include/asm/pgtable.h | 16 include/as

[PATCH 0/10] Replace _PAGE_NUMA with PAGE_NONE protections v2

2014-11-20 Thread Mel Gorman
V1 failed while running under kvm-tools very quickly and a second report indicated that it happens on bare metal as well. This version survived an overnight run of trinity running under kvm-tools here but verification from Sasha would be appreciated. Changelog since V1 o ppc64 paranoia checks and

[PATCH 01/10] mm: numa: Do not dereference pmd outside of the lock during NUMA hinting fault

2014-11-20 Thread Mel Gorman
A transhuge NUMA hinting fault may find the page is migrating and should wait until migration completes. The check is race-prone because the pmd is deferenced outside of the page lock and while the race is tiny, it'll be larger if the PMD is cleared while marking PMDs for hinting fault. This patch

Re: [RFC PATCH 07/16] PCI: Separate pci_host_bridge creation out of pci_create_root_bus()

2014-11-20 Thread Liviu Dudau
On Thu, Nov 20, 2014 at 02:47:35AM +, Yijing Wang wrote: > +static void pci_release_host_bridge_dev(struct device *dev) > +{ > + struct pci_host_bridge *bridge = to_pci_host_bridge(dev); > + > + if (bridge->release_fn) > + bridge->release_

Re: Fan management PowerMac7,2

2014-11-20 Thread Martin Kukač
On 11/20/2014 03:37 AM, Michel Dänzer wrote: On 19.11.2014 21:04, Martin Kukač wrote: Hello, I was directed to this list on #ppc64/freenode IRC channel. I have PowerMac7,2 (AGP, 2xPowerPC 970(2.2) 2GHz) and I wanted to try kernel supporting kvm-pr module, which is not in 3.2.63 kernel provided