Re: [PATCH] powerpc64: use fixed lock token for !CONFIG_PPC_SPLPAR

2015-03-08 Thread Benjamin Herrenschmidt
On Sat, 2015-03-07 at 19:19 +0800, Kevin Hao wrote: > It makes no sense to use a variant lock token on a platform which > doesn't support for shared-processor logical partitions. Actually we > can eliminate a memory load by using a fixed lock token on these > platforms. Does this provide an actual

[RFC v0 PATCH] kvm: powerpc: Allow reuse of vCPU object

2015-03-08 Thread bharata . rao
From: Bharata B Rao Since KVM isn't equipped to handle closure of vcpu fd from userspace(QEMU) correctly, certain work arounds have to be employed to allow reuse of vcpu array slot in KVM during cpu hot plug/unplug from guest. One such proposed workaround is to park the vcpu fd in userspace durin

[PATCH 4/4] powerpc/eeh: remove unused macro IS_BRIDGE

2015-03-08 Thread Wei Yang
Currently, the macro IS_BRIDGE is not used any where. This patch just removes it. Signed-off-by: Wei Yang --- arch/powerpc/kernel/eeh.c |2 -- 1 file changed, 2 deletions(-) diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel/eeh.c index 3b2252e..60df70c 100644 --- a/arch/powerpc/k

[PATCH 3/4] powerpc/eeh: fix powernv_eeh_wait_state delay logic

2015-03-08 Thread Wei Yang
As the comment indicates, powernv_eeh_get_state() will inform EEH core to delay 1 second. This means the delay doesn't happen when powernv_eeh_get_state() returns. This patch moves the delay subtraction just before msleep(), which is the same logic in pseries_eeh_wait_state(). Signed-off-by: Wei

[PATCH 2/4] powerpc/eeh: fix comment for wait_state()

2015-03-08 Thread Wei Yang
To retrieve the PCI slot state, EEH driver would set a timeout for that. While current comment is not aligned to what the code does. This patch fixes those comments according to the code. Signed-off-by: Wei Yang --- arch/powerpc/kernel/eeh_driver.c |2 +- arch/powerpc/platforms/

[PATCH 1/4] powerpc/eeh: fix start/end/flags type in struct pci_io_addr_range{}

2015-03-08 Thread Wei Yang
struct pci_io_addr_range{} stores the information of pci resources. It would be better to keep these related fields have the same type as in struct resource{}. This patch fixes the start/end/flags type in struct pci_io_addr_range{} to have the same type as in struct resource{}. Signed-off-by: Wei

[PATCH 0/4] EEH Cleanup

2015-03-08 Thread Wei Yang
Four patches to cleanup the EEH, in type, comment and logic. Wei Yang (4): powerpc/eeh: fix start/end/flags type in struct pci_io_addr_range{} powerpc/eeh: fix comment for wait_state() powerpc/eeh: fix powernv_eeh_wait_state delay logic powerpc/eeh: remove unused macro IS_BRIDGE arch/pow

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

2015-03-08 Thread Yijing Wang
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 function pci_host_assign_domain_nr() will be introduced for a

[PATCH v6 17/30] powerpc/pci: Use pci_scan_host_bridge() for simplicity

2015-03-08 Thread Yijing Wang
Now we could use pci_scan_host_bridge() to scan pci buses, provide powerpc specific pci_host_bridge_ops. Suggested-by: Arnd Bergmann Signed-off-by: Yijing Wang CC: Benjamin Herrenschmidt CC: linuxppc-dev@lists.ozlabs.org Signed-off-by: Bjorn Helgaas --- arch/powerpc/include/asm/machdep.h

Re: [PATCH v5 16/29] powerpc/pci: Use pci_scan_host_bridge() for simplicity

2015-03-08 Thread Yijing Wang
On 2015/3/6 22:19, Rob Herring wrote: > On Fri, Mar 6, 2015 at 3:33 AM, Yijing Wang wrote: >> Now we could use pci_scan_host_bridge() to scan >> pci buses, provide powerpc specific pci_host_bridge_ops. >> >> Suggested-by: Arnd Bergmann >> Signed-off-by: Yijing Wang >> CC: Benjamin Herrenschmidt

[PATCH v6 16/30] powerpc/pci: Rename pcibios_root_bridge_prepare()

2015-03-08 Thread Yijing Wang
Pcibios_root_bridge_prepare() in powerpc is used to set root bus speed. Rename it to pcibios_set_root_bus_speed() for better readability. Signed-off-by: Yijing Wang CC: Benjamin Herrenschmidt CC: linuxppc-dev@lists.ozlabs.org Signed-off-by: Bjorn Helgaas --- arch/powerpc/include/asm/machdep.h

Re: [PATCH] powerpc: book3e_64: fix the align size for paca_struct

2015-03-08 Thread Kevin Hao
On Sun, Mar 08, 2015 at 08:13:26PM +1100, Benjamin Herrenschmidt wrote: > On Sat, 2015-03-07 at 19:14 +0800, Kevin Hao wrote: > > All the cache line size of the current book3e 64bit SoCs are 64 bytes. > > So we should use this size to align the member of paca_struct. > > With this change we save 19

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

2015-03-08 Thread Mel Gorman
On Sun, Mar 08, 2015 at 11:02:23AM +0100, Ingo Molnar wrote: > > * Linus Torvalds wrote: > > > On Sat, Mar 7, 2015 at 8:36 AM, Ingo Molnar wrote: > > > > > > And the patch Dave bisected to is a relatively simple patch. Why > > > not simply revert it to see whether that cures much of the > > >

Re: [REGRESSION in 3.18][PPC] PA Semi fails to boot after: of/base: Fix PowerPC address parsing hack

2015-03-08 Thread Olof Johansson
On Sat, Mar 7, 2015 at 12:27 AM, Benjamin Herrenschmidt wrote: > On Fri, 2015-03-06 at 16:16 -0800, Alex Perez wrote: > >> I will of course ultimately defer to Olof, but PASemi hasn’t existed >> for years, and there is no entity which could possibly update the DT >> for these reference PASemi deve

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

2015-03-08 Thread Linus Torvalds
On Sun, Mar 8, 2015 at 11:35 AM, Linus Torvalds wrote: >> As a second hack (not to be applied), could we change: >> >> #define _PAGE_BIT_PROTNONE _PAGE_BIT_GLOBAL >> >> to: >> >> #define _PAGE_BIT_PROTNONE (_PAGE_BIT_GLOBAL+1) >> >> to double check that the position of the bit does not

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

2015-03-08 Thread Linus Torvalds
On Sun, Mar 8, 2015 at 3:02 AM, Ingo Molnar wrote: > > Well, there's a difference in what we write to the pte: > > #define _PAGE_BIT_NUMA (_PAGE_BIT_GLOBAL+1) > #define _PAGE_BIT_PROTNONE _PAGE_BIT_GLOBAL > > and our expectation was that the two should be equivalent methods from >

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

2015-03-08 Thread Vasant Hegde
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 nodes. Device tree nodes specify what all kind of LEDs pre

[PATCH 1/2] powerpc/powernv: Add OPAL interfaces for accessing and modifying system LED states

2015-03-08 Thread Vasant Hegde
From: Anshuman Khandual This patch registers the following two new OPAL interfaces calls for the platform LED subsystem. With the help of these new OPAL calls, the kernel will be able to get or set the state of various individual LEDs on the system at any given location code which is passed throu

[PATCH 0/2] LED interface for PowerNV platform

2015-03-08 Thread Vasant Hegde
The following series implements LED driver for PowerNV platform. PowerNV platform has below type of indicators: - System attention indicator (Check log indicator) Indicates there is a problem with the system that needs attention. - Identify Helps the user locate/identify a part

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

2015-03-08 Thread Ingo Molnar
* Linus Torvalds wrote: > On Sat, Mar 7, 2015 at 8:36 AM, Ingo Molnar wrote: > > > > And the patch Dave bisected to is a relatively simple patch. Why > > not simply revert it to see whether that cures much of the > > problem? > > So the problem with that is that "pmd_set_numa()" and friends

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

2015-03-08 Thread Ingo Molnar
* Mel Gorman wrote: > Elapsed time is primarily worse on one benchmark -- numa01 which is > an adverse workload. The user time differences are also dominated by > that benchmark > >4.0.0-rc1 4.0.0-rc1 > 3.19.0 >

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

2015-03-08 Thread Ingo Molnar
* Mel Gorman wrote: > xfsrepair > 4.0.0-rc1 4.0.0-rc1 > 3.19.0 > vanilla slowscan-v2 > vanilla > Min real-fsmark1157.41 ( 0.00%) 1150.38 ( 0.61%)

Re: [PATCH] powerpc: book3e_64: fix the align size for paca_struct

2015-03-08 Thread Benjamin Herrenschmidt
On Sat, 2015-03-07 at 19:14 +0800, Kevin Hao wrote: > All the cache line size of the current book3e 64bit SoCs are 64 bytes. > So we should use this size to align the member of paca_struct. > With this change we save 192 bytes. Also change it to __aligned(size) > since it is preferred over __attrib

Re: [RFC V2 03/12] i2c: at91: make use of the new infrastructure for quirks

2015-03-08 Thread Wolfram Sang
On Wed, Feb 25, 2015 at 05:01:54PM +0100, Wolfram Sang wrote: > From: Wolfram Sang > > Signed-off-by: Wolfram Sang Hi Ludovic, if you have a few minutes, could you please test this series? I'd like to include it in 4.1. and because at91 is using the quirk infrastructure in a more complex way,