RE: [PATCH v2] mtd: m25p80: Make the name of mtd_info fixed

2014-02-13 Thread b48...@freescale.com
Hi Brian, > -Original Message- > From: Brian Norris [mailto:computersforpe...@gmail.com] > Sent: Tuesday, February 11, 2014 3:40 AM > To: Hou Zhiqiang-B48286 > Cc: linux-...@lists.infradead.org; linuxppc-...@ozlabs.org; Wood Scott- > B07421; Hu Mingkai-B21284; linux-...@vger.kernel.org > S

[PATCH 4/6] PCI/powerpc: Use list_for_each_entry() for bus traversal

2014-02-13 Thread Yijing Wang
Replace list_for_each() + pci_bus_b() with the simpler list_for_each_entry(). Signed-off-by: Yijing Wang --- arch/powerpc/kernel/pci_64.c |4 +--- arch/powerpc/platforms/pseries/pci_dlpar.c |6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/power

[PATCH 3/6] PCI/drm: Use list_for_each_entry() for bus traversal

2014-02-13 Thread Yijing Wang
Replace list_for_each() + pci_bus_b() with the simpler list_for_each_entry(). Signed-off-by: Yijing Wang --- drivers/gpu/drm/drm_fops.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c index 7f2af9a..70d2987 100644

[PATCH 5/6] PCI/pcmcia: Use list_for_each_entry() for bus traversal

2014-02-13 Thread Yijing Wang
Replace list_for_each() + pci_bus_b() with the simpler list_for_each_entry(). Signed-off-by: Yijing Wang --- drivers/pcmcia/yenta_socket.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pcmcia/yenta_socket.c b/drivers/pcmcia/yenta_socket.c index 8485761..d1

[PATCH 1/6] PCI,acpiphp: Use list_for_each_entry() for bus traversal

2014-02-13 Thread Yijing Wang
Replace list_for_each() + pci_bus_b() with the simpler list_for_each_entry(). Signed-off-by: Yijing Wang --- drivers/pci/hotplug/acpiphp_glue.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c i

[PATCH 2/6] PCI/arm: Use list_for_each_entry() for bus traversal

2014-02-13 Thread Yijing Wang
Replace list_for_each() + pci_bus_b() with the simpler list_for_each_entry(). Signed-off-by: Yijing Wang --- arch/arm/kernel/bios32.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/arm/kernel/bios32.c b/arch/arm/kernel/bios32.c index 317da88..0a77858 100644 -

[PATCH 6/6] PCI: Remove pci_bus_b() and use list_entry() directly

2014-02-13 Thread Yijing Wang
Replace pci_bus_b() with list_entry(), so we can remove pci_bus_b(). Signed-off-by: Yijing Wang --- drivers/pci/pci.c|6 +++--- drivers/pci/search.c | 10 +- include/linux/pci.h |1 - 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/pci/pci.c b/driver

Re: [PATCH 2/6] PCI/arm: Use list_for_each_entry() for bus traversal

2014-02-13 Thread Russell King - ARM Linux
On Thu, Feb 13, 2014 at 09:13:59PM +0800, Yijing Wang wrote: > Replace list_for_each() + pci_bus_b() with the simpler > list_for_each_entry(). > > Signed-off-by: Yijing Wang Acked-by: Russell King -- FTTC broadband for 0.8mile line: 5.8Mbps down 500kbps up. Estimation in database were 13.1 t

Re: [PATCH] of: give priority to the compatible match in __of_match_node()

2014-02-13 Thread Rob Herring
On Wed, Feb 12, 2014 at 5:38 AM, Kevin Hao wrote: > When the device node do have a compatible property, we definitely > prefer the compatible match besides the type and name. Only if > there is no such a match, we then consider the candidate which > doesn't have compatible entry but do match the t

Re: [PATCH] powerpc: enable CONFIG_HAVE_MEMORYLESS_NODES

2014-02-13 Thread Nishanth Aravamudan
On 28.01.2014 [10:34:57 -0800], Nishanth Aravamudan wrote: > Anton Blanchard found an issue with an LPAR that had no memory in Node > 0. Christoph Lameter recommended, as one possible solution, to use > numa_mem_id() for locality of the nearest memory node-wise. However, > numa_mem_id() [and the ot

Re: [PATCH V2 0/3] powerpc: Fix random application crashes with NUMA_BALANCING enabled

2014-02-13 Thread Andrew Morton
On Wed, 12 Feb 2014 09:13:35 +0530 "Aneesh Kumar K.V" wrote: > Hello, > > This patch series fix random application crashes observed on ppc64 with numa > balancing enabled. Without the patch we see crashes like > > anacron[14551]: unhandled signal 11 at 0041 nip 3cfd54b4 >

Re: [PATCH] mm: numa: bugfix for LAST_CPUPID_NOT_IN_PAGE_FLAGS

2014-02-13 Thread Andrew Morton
On Wed, 5 Feb 2014 09:25:46 +0800 Liu Ping Fan wrote: > When doing some numa tests on powerpc, I triggered an oops bug. I find > it is caused by using page->_last_cpupid. It should be initialized as > "-1 & LAST_CPUPID_MASK", but not "-1". Otherwise, in task_numa_fault(), > we will miss the che

Re: [PATCH 1/6] PCI, acpiphp: Use list_for_each_entry() for bus traversal

2014-02-13 Thread Rafael J. Wysocki
On Thursday, February 13, 2014 09:13:58 PM Yijing Wang wrote: > Replace list_for_each() + pci_bus_b() with the simpler > list_for_each_entry(). > > Signed-off-by: Yijing Wang Looks reasonable to me. Does it conflict with anything currently in linux-next (the linux-next branch of linux-pm.git in

Re: [PATCH] powerpc: enable CONFIG_HAVE_MEMORYLESS_NODES

2014-02-13 Thread Nishanth Aravamudan
On 13.02.2014 [14:45:49 -0800], David Rientjes wrote: > On Thu, 13 Feb 2014, Nishanth Aravamudan wrote: > > > > Anton Blanchard found an issue with an LPAR that had no memory in Node > > > 0. Christoph Lameter recommended, as one possible solution, to use > > > numa_mem_id() for locality of the ne

Re: [PATCH] of: give priority to the compatible match in __of_match_node()

2014-02-13 Thread Kevin Hao
On Thu, Feb 13, 2014 at 01:01:42PM -0600, Rob Herring wrote: > On Wed, Feb 12, 2014 at 5:38 AM, Kevin Hao wrote: > > When the device node do have a compatible property, we definitely > > prefer the compatible match besides the type and name. Only if > > there is no such a match, we then consider t

Re: [PATCH 1/6] PCI, acpiphp: Use list_for_each_entry() for bus traversal

2014-02-13 Thread Yijing Wang
On 2014/2/14 7:54, Rafael J. Wysocki wrote: > On Thursday, February 13, 2014 09:13:58 PM Yijing Wang wrote: >> Replace list_for_each() + pci_bus_b() with the simpler >> list_for_each_entry(). >> >> Signed-off-by: Yijing Wang > > Looks reasonable to me. > > Does it conflict with anything currentl

[PATCH 0/2] of: fix a regression when trying to find the best compatible match

2014-02-13 Thread Kevin Hao
Hi, This fix a regression when trying to find the best compatible match. You can find the detail of the issue reported by Stephen Chivers at: https://lists.ozlabs.org/pipermail/linuxppc-dev/2014-February/115278.html I have made a patch to fix this previously. http://patchwork.ozlabs.org/patch

[PATCH 1/2] Revert "OF: base: match each node compatible against all given matches first"

2014-02-13 Thread Kevin Hao
This reverts commit 105353145eafb3ea919f5cdeb652a9d8f270228e. Stephen Chivers reported this is broken as we will get a match entry '.type = "serial"' instead of the '.compatible = "ns16550"' in the following scenario: serial0: serial@4500 { compatible = "fsl,ns16550", "ns165

[PATCH 2/2] of: search the best compatible match first in __of_match_node()

2014-02-13 Thread Kevin Hao
Currently, of_match_node compares each given match against all node's compatible strings with of_device_is_compatible. To achieve multiple compatible strings per node with ordering from specific to generic, this requires given matches to be ordered from specific to generic. For most of the drivers

Re: [PATCH V2 0/3] powerpc: Fix random application crashes with NUMA_BALANCING enabled

2014-02-13 Thread Aneesh Kumar K.V
Andrew Morton writes: > On Wed, 12 Feb 2014 09:13:35 +0530 "Aneesh Kumar K.V" > wrote: > >> Hello, >> >> This patch series fix random application crashes observed on ppc64 with numa >> balancing enabled. Without the patch we see crashes like >> >> anacron[14551]: unhandled signal 11 at 00

Re: [PATCH V2 0/3] powerpc: Fix random application crashes with NUMA_BALANCING enabled

2014-02-13 Thread Benjamin Herrenschmidt
On Thu, 2014-02-13 at 15:06 -0800, Andrew Morton wrote: > On Wed, 12 Feb 2014 09:13:35 +0530 "Aneesh Kumar K.V" > wrote: > > > Hello, > > > > This patch series fix random application crashes observed on ppc64 with numa > > balancing enabled. Without the patch we see crashes like > > > > anacro

[PATCH] powerpc/eeh: Prefetch PHB diag-data

2014-02-13 Thread Gavin Shan
PHB diag-data is useful information to locate the root cause for frozen PE. Unfortunately, we cleared part of that by wrongly zapping LEM registers before collecting PHB diag-data. The patch fixes it by prefetching that with extended eeh_ops->get_log() for PowerNV platform. Signed-off-by: Gavin Sh

Re: [PATCH 13/51] powerpc, sysfs: Fix CPU hotplug callback registration

2014-02-13 Thread Madhavan Srinivasan
On Thursday 06 February 2014 03:36 AM, Srivatsa S. Bhat wrote: > Subsystems that want to register CPU hotplug callbacks, as well as perform > initialization for the CPUs that are already online, often do it as shown > below: > > get_online_cpus(); > > for_each_online_cpu(cpu) >

[PATCH v2 14/52] powerpc, sysfs: Fix CPU hotplug callback registration

2014-02-13 Thread Srivatsa S. Bhat
Subsystems that want to register CPU hotplug callbacks, as well as perform initialization for the CPUs that are already online, often do it as shown below: get_online_cpus(); for_each_online_cpu(cpu) init_cpu(cpu); register_cpu_notifier(&foobar_cpu_notifie