Re: [question] Can the execution of the atomtic operation instruction pair lwarx/stwcx be interrrupted by local HW interruptions?

2014-01-07 Thread Scott Wood
On Tue, 2014-01-07 at 15:22 +0800, wyang wrote: On 01/07/2014 02:35 PM, Scott Wood wrote: On Tue, 2014-01-07 at 09:00 +0800, wyang wrote: Yeah, Can you provide more detail info about why they can handle that case? The following is my understand: Let us assume that there is a atomic

[PATCH 1/2] pci: Fix root port bus-self is NULL

2014-01-07 Thread Dongsheng Wang
From: Wang Dongsheng dongsheng.w...@freescale.com the root port bus-self always NULL, so put root port pci device into root port bus-self. Signed-off-by: Wang Dongsheng dongsheng.w...@freescale.com diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 38e403d..7f2d1ab 100644 ---

[PATCH 2/2] fsl/pci: The new pci suspend/resume implementation

2014-01-07 Thread Dongsheng Wang
From: Wang Dongsheng dongsheng.w...@freescale.com The new suspend/resume implementation, send pme turnoff message in suspend, and send pme exit message in resume. Add a PME handler, to response PME message interrupt. Change platform_driver-suspend/resume to syscore-suspend/resume. pci-driver

Re: [PATCH 1/2] pci: Fix root port bus-self is NULL

2014-01-07 Thread Yijing Wang
On 2014/1/7 16:04, Dongsheng Wang wrote: From: Wang Dongsheng dongsheng.w...@freescale.com the root port bus-self always NULL, so put root port pci device into root port bus-self. Signed-off-by: Wang Dongsheng dongsheng.w...@freescale.com diff --git a/drivers/pci/probe.c

Re: [02/12,v3] pci: fsl: add structure fsl_pci

2014-01-07 Thread Scott Wood
On Mon, 2014-01-06 at 14:10 +0800, Lian Minghuan-b31939 wrote: On 01/04/2014 06:19 AM, Scott Wood wrote: I don't like the extent to which this duplicates (not moves) PPC's struct pci_controller. Also this leaves some fields like indirect_type unexplained (PPC_INDIRECT_TYPE_xxx is only in

Re: [PATCH] slub: Don't throw away partial remote slabs if there is no local memory

2014-01-07 Thread Wanpeng Li
Hi Joonsoo, On Tue, Jan 07, 2014 at 04:41:36PM +0900, Joonsoo Kim wrote: On Tue, Jan 07, 2014 at 01:21:00PM +1100, Anton Blanchard wrote: [...] Hello, I think that we need more efforts to solve unbalanced node problem. With this patch, even if node of current cpu slab is not favorable to

Re: [PATCH] slub: Don't throw away partial remote slabs if there is no local memory

2014-01-07 Thread Wanpeng Li
On Tue, Jan 07, 2014 at 06:10:16PM +0900, Joonsoo Kim wrote: On Tue, Jan 07, 2014 at 04:48:40PM +0800, Wanpeng Li wrote: Hi Joonsoo, On Tue, Jan 07, 2014 at 04:41:36PM +0900, Joonsoo Kim wrote: On Tue, Jan 07, 2014 at 01:21:00PM +1100, Anton Blanchard wrote: [...] Hello, I think that we

RE: [RFC] linux/pci: move pci_platform_pm_ops to linux/pci.h

2014-01-07 Thread dongsheng.w...@freescale.com
-Original Message- From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] Sent: Monday, January 06, 2014 8:13 PM To: Bjorn Helgaas Cc: Wang Dongsheng-B40534; Zang Roy-R61911; Wood Scott-B07421; Kumar Gala; Linux PM list; linux-...@vger.kernel.org; linuxppc-dev Subject: Re: [RFC]

Re: [PATCH] slub: Don't throw away partial remote slabs if there is no local memory

2014-01-07 Thread Joonsoo Kim
On Tue, Jan 07, 2014 at 01:21:00PM +1100, Anton Blanchard wrote: We noticed a huge amount of slab memory consumed on a large ppc64 box: Slab:2094336 kB Almost 2GB. This box is not balanced and some nodes do not have local memory, causing slub to be very inefficient in its

Re: [PATCH 1/2] pci: Fix root port bus-self is NULL

2014-01-07 Thread Jiang Liu
On 2014/1/7 16:27, Yijing Wang wrote: On 2014/1/7 16:04, Dongsheng Wang wrote: From: Wang Dongsheng dongsheng.w...@freescale.com the root port bus-self always NULL, so put root port pci device into root port bus-self. Signed-off-by: Wang Dongsheng dongsheng.w...@freescale.com diff --git

Re: [PATCH] slub: Don't throw away partial remote slabs if there is no local memory

2014-01-07 Thread Joonsoo Kim
On Tue, Jan 07, 2014 at 04:48:40PM +0800, Wanpeng Li wrote: Hi Joonsoo, On Tue, Jan 07, 2014 at 04:41:36PM +0900, Joonsoo Kim wrote: On Tue, Jan 07, 2014 at 01:21:00PM +1100, Anton Blanchard wrote: [...] Hello, I think that we need more efforts to solve unbalanced node problem. With

Re: [PATCH] slub: Don't throw away partial remote slabs if there is no local memory

2014-01-07 Thread Joonsoo Kim
On Tue, Jan 07, 2014 at 05:21:45PM +0800, Wanpeng Li wrote: On Tue, Jan 07, 2014 at 06:10:16PM +0900, Joonsoo Kim wrote: On Tue, Jan 07, 2014 at 04:48:40PM +0800, Wanpeng Li wrote: Hi Joonsoo, On Tue, Jan 07, 2014 at 04:41:36PM +0900, Joonsoo Kim wrote: On Tue, Jan 07, 2014 at 01:21:00PM

Re: [PATCH] slub: Don't throw away partial remote slabs if there is no local memory

2014-01-07 Thread Wanpeng Li
On Tue, Jan 07, 2014 at 06:31:56PM +0900, Joonsoo Kim wrote: On Tue, Jan 07, 2014 at 05:21:45PM +0800, Wanpeng Li wrote: On Tue, Jan 07, 2014 at 06:10:16PM +0900, Joonsoo Kim wrote: On Tue, Jan 07, 2014 at 04:48:40PM +0800, Wanpeng Li wrote: Hi Joonsoo, On Tue, Jan 07, 2014 at 04:41:36PM

RE: [PATCH] slub: Don't throw away partial remote slabs if there is no local memory

2014-01-07 Thread David Laight
From: Anton Blanchard We noticed a huge amount of slab memory consumed on a large ppc64 box: Slab:2094336 kB Almost 2GB. This box is not balanced and some nodes do not have local memory, causing slub to be very inefficient in its slab usage. Each time we call

RE: [PATCH 1/2] pci: Fix root port bus-self is NULL

2014-01-07 Thread dongsheng.w...@freescale.com
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 38e403d..7f2d1ab 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -1472,6 +1472,9 @@ int pci_scan_slot(struct pci_bus *bus, int devfn) if (!dev-is_added) nr++; + if (pci_pcie_type(dev) ==

Re: [PATCH] slub: Don't throw away partial remote slabs if there is no local memory

2014-01-07 Thread Wanpeng Li
On Tue, Jan 07, 2014 at 04:41:36PM +0900, Joonsoo Kim wrote: On Tue, Jan 07, 2014 at 01:21:00PM +1100, Anton Blanchard wrote: We noticed a huge amount of slab memory consumed on a large ppc64 box: Slab:2094336 kB Almost 2GB. This box is not balanced and some nodes do not have

RE: [PATCH] powerpc/mpic: supply a .disable callback

2014-01-07 Thread dongsheng.w...@freescale.com
-Original Message- From: Wood Scott-B07421 Sent: Tuesday, January 07, 2014 2:39 PM To: Wang Dongsheng-B40534 Cc: b...@kernel.crashing.org; linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc/mpic: supply a .disable callback On Tue, 2014-01-07 at 13:38 +0800, Dongsheng

RE: [PATCH 2/2] powerpc/85xx: handle the eLBC error interrupt if it exist in dts

2014-01-07 Thread dongsheng.w...@freescale.com
-Original Message- From: Wood Scott-B07421 Sent: Tuesday, January 07, 2014 2:58 PM To: Wang Dongsheng-B40534 Cc: linuxppc-dev@lists.ozlabs.org; Xie Shaohui-B21989; Kumar Gala Subject: Re: [PATCH 2/2] powerpc/85xx: handle the eLBC error interrupt if it exist in dts On Tue,

Re: [alsa-devel] [PATCH] ASoC: fsl_ssi: Fixed wrong printf format identifier

2014-01-07 Thread Fabio Estevam
On Tue, Jan 7, 2014 at 4:04 AM, Alexander Shiyan shc_w...@mail.ru wrote: sound/soc/fsl/fsl_ssi.c: In function 'fsl_ssi_probe': sound/soc/fsl/fsl_ssi.c:1180:6: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] Reported-by: kbuild test robot

RE: [PATCH] powerpc/mpic: supply a .disable callback

2014-01-07 Thread dongsheng.w...@freescale.com
-Original Message- From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] Sent: Tuesday, January 07, 2014 1:50 PM To: Wang Dongsheng-B40534 Cc: Wood Scott-B07421; linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc/mpic: supply a .disable callback On Tue,

Re: [PATCH] slub: Don't throw away partial remote slabs if there is no local memory

2014-01-07 Thread Wanpeng Li
On Tue, Jan 07, 2014 at 01:21:00PM +1100, Anton Blanchard wrote: We noticed a huge amount of slab memory consumed on a large ppc64 box: Slab:2094336 kB Almost 2GB. This box is not balanced and some nodes do not have local memory, causing slub to be very inefficient in its slab

Re: [PATCH 1/2] powerpc/dts: fix lbc lack of error interrupt

2014-01-07 Thread Mark Rutland
On Tue, Jan 07, 2014 at 06:26:42AM +, Dongsheng Wang wrote: From: Wang Dongsheng dongsheng.w...@freescale.com P1020, P1021, P1022, P1023 when the lbc get error, the error interrupt will be triggered. The corresponding interrupt is internal IRQ0. So system have to process the lbc IRQ0

Re: [alsa-devel] [PATCH] ASoC: fsl_ssi: Fixed wrong printf format identifier

2014-01-07 Thread Mark Brown
On Tue, Jan 07, 2014 at 08:08:14AM -0200, Fabio Estevam wrote: I have sent the same fix as well as I haven't seen your patch before I submitted mine. I saw Fabio's patch first too. signature.asc Description: Digital signature ___ Linuxppc-dev

Re: [PATCH 2/2] fsl/pci: The new pci suspend/resume implementation

2014-01-07 Thread Rafael J. Wysocki
On Tuesday, January 07, 2014 04:04:08 PM Dongsheng Wang wrote: From: Wang Dongsheng dongsheng.w...@freescale.com The new suspend/resume implementation, send pme turnoff message in suspend, and send pme exit message in resume. Add a PME handler, to response PME message interrupt. Change

Re: [PATCH 2/2] powerpc/85xx: handle the eLBC error interrupt if it exist in dts

2014-01-07 Thread Scott Wood
On Tue, 2014-01-07 at 04:01 -0600, Wang Dongsheng-B40534 wrote: -Original Message- From: Wood Scott-B07421 Sent: Tuesday, January 07, 2014 2:58 PM To: Wang Dongsheng-B40534 Cc: linuxppc-dev@lists.ozlabs.org; Xie Shaohui-B21989; Kumar Gala Subject: Re: [PATCH 2/2]

Re: [PATCH] powerpc/mpic: supply a .disable callback

2014-01-07 Thread Scott Wood
On Tue, 2014-01-07 at 04:18 -0600, Wang Dongsheng-B40534 wrote: -Original Message- From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] Sent: Tuesday, January 07, 2014 1:50 PM To: Wang Dongsheng-B40534 Cc: Wood Scott-B07421; linuxppc-dev@lists.ozlabs.org Subject:

Re: [PATCH] powerpc/mpic: supply a .disable callback

2014-01-07 Thread Benjamin Herrenschmidt
On Tue, 2014-01-07 at 10:18 +, dongsheng.w...@freescale.com wrote: -Original Message- From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] Sent: Tuesday, January 07, 2014 1:50 PM To: Wang Dongsheng-B40534 Cc: Wood Scott-B07421; linuxppc-dev@lists.ozlabs.org

Re: [v3, 3/7] powerpc: enable the relocatable support for the fsl booke 32bit kernel

2014-01-07 Thread Scott Wood
On Sat, 2014-01-04 at 14:34 +0800, Kevin Hao wrote: On Fri, Jan 03, 2014 at 06:49:09PM -0600, Scott Wood wrote: On Fri, 2013-12-20 at 15:43 +0800, Kevin Hao wrote: On Wed, Dec 18, 2013 at 05:48:25PM -0600, Scott Wood wrote: On Wed, Aug 07, 2013 at 09:18:31AM +0800, Kevin Hao wrote:

Re: [PATCH v5 1/1] powerpc/embedded6xx: Add support for Motorola/Emerson MVME5100

2014-01-07 Thread Scott Wood
On Mon, 2014-01-06 at 12:23 +1100, Stephen Chivers wrote: Add support for the Motorola/Emerson MVME5100 Single Board Computer. The MVME5100 is a 6U form factor VME64 computer with: - A single MPC7410 or MPC750 CPU - A HAWK Processor Host Bridge (CPU to PCI) and

Re: [v7] clk: corenet: Adds the clock binding

2014-01-07 Thread Scott Wood
On Wed, Nov 20, 2013 at 05:04:49PM +0800, tang yuantian wrote: +Recommended properties: +- ranges: Allows valid translation between child's address space and + parent's. Must be present if the device has sub-nodes. +- #address-cells: Specifies the number of cells used to represent +

Re: [V6,2/2] powerpc/85xx: Add TWR-P1025 board support

2014-01-07 Thread Scott Wood
On Wed, Nov 06, 2013 at 05:08:03PM +0800, Xie Xiaobo wrote: TWR-P1025 Overview - 512Mbyte DDR3 (on board DDR) 64MB Nor Flash eTSEC1: Connected to RGMII PHY AR8035 eTSEC3: Connected to RGMII PHY AR8035 Two USB2.0 Type A One microSD Card slot One mini-PCIe slot One

Re: [v4] powerpc/85xx: Merge 85xx/p1023_defconfig into mpc85xx_smp_defconfig and mpc85xx_defconfig

2014-01-07 Thread Scott Wood
On Fri, Nov 15, 2013 at 05:28:20PM -0600, Lijun Pan wrote: mpc85xx_smp_defconfig and mpc85xx_defconfig already have CONFIG_P1023RDS=y. Merge CONFIG_P1023RDB=y and other relevant configurations into mpc85xx_smp_defconfig and mpc85_defconfig. Signed-off-by: Lijun Pan lijun@freescale.com

Re: drivers/tty: ehv_bytechan fails to build as a module

2014-01-07 Thread Scott Wood
On Sat, 2014-01-04 at 11:15 -0800, Guenter Roeck wrote: On Mon, Dec 09, 2013 at 04:03:10PM +1100, Anton Blanchard wrote: ehv_bytechan is marked tristate but fails to build as a module: drivers/tty/ehv_bytechan.c:363:1: error: type defaults to ‘int’ in declaration of ‘console_initcall’

Re: drivers/tty: ehv_bytechan fails to build as a module

2014-01-07 Thread Greg KH
On Tue, Jan 07, 2014 at 07:21:03PM -0600, Scott Wood wrote: On Sat, 2014-01-04 at 11:15 -0800, Guenter Roeck wrote: On Mon, Dec 09, 2013 at 04:03:10PM +1100, Anton Blanchard wrote: ehv_bytechan is marked tristate but fails to build as a module: drivers/tty/ehv_bytechan.c:363:1: error:

Re: [PATCH 1/2] pci: Fix root port bus-self is NULL

2014-01-07 Thread Jiang Liu
On 2014/1/7 17:51, dongsheng.w...@freescale.com wrote: diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 38e403d..7f2d1ab 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -1472,6 +1472,9 @@ int pci_scan_slot(struct pci_bus *bus, int devfn) if (!dev-is_added)

Re: [v3, 3/7] powerpc: enable the relocatable support for the fsl booke 32bit kernel

2014-01-07 Thread Kevin Hao
On Tue, Jan 07, 2014 at 05:46:04PM -0600, Scott Wood wrote: On Sat, 2014-01-04 at 14:34 +0800, Kevin Hao wrote: Actually there still have one limitation that we have to make sure that the kernel and dtb are in the 64M memory mapped by the init tlb entry. I booted the kernel successfully by

RE: [PATCH 1/2] pci: Fix root port bus-self is NULL

2014-01-07 Thread dongsheng.w...@freescale.com
-Original Message- From: Jiang Liu [mailto:jiang@linux.intel.com] Sent: Wednesday, January 08, 2014 10:33 AM To: Wang Dongsheng-B40534; Yijing Wang; bhelg...@google.com; r...@rjwysocki.net Cc: Wood Scott-B07421; ga...@codeaurora.org; Zang Roy-R61911; linux-

Re: [PATCH] powerpc: Fix alignment of secondary cpu spin vars

2014-01-07 Thread Michael Ellerman
On Fri, 2014-01-03 at 00:12 -0800, Olof Johansson wrote: On Thu, Jan 02, 2014 at 11:56:04PM -0800, Olof Johansson wrote: This makes things interesting though. The BE/LE trampoline code assumes at least 3 consecutive instructions. What was the reasoning behind entering the kernel LE

Re: [PATCH] powerpc: add vr save/restore functions

2014-01-07 Thread Michael Ellerman
On Mon, 2013-12-30 at 15:31 +0100, Andreas Schwab wrote: GCC 4.8 now generates out-of-line vr save/restore functions when optimizing for size. They are needed for the raid6 altivec support. It looks like they're identical for 32 64-bit ? If so can't we arrange to have a single version?

Re: [PATCH] powerpc: Fix alignment of secondary cpu spin vars

2014-01-07 Thread Benjamin Herrenschmidt
On Wed, 2014-01-08 at 15:09 +1100, Michael Ellerman wrote: Of course, main worry is that this is just hiding some latent NULL deref in the kernel now... :-/ Wow, that would have to come close to winning the grossest-hack-in-arch-powerpc award :) Have you tried changing the value at 8

[PATCH 02/12][v4] pci: fsl: add structure fsl_pci

2014-01-07 Thread Minghuan Lian
PowerPC uses structure pci_controller to describe PCI controller, but ARM uses structure pci_sys_data. In order to support PowerPC and ARM simultaneously, the patch adds a structure fsl_pci that contains most of the members of the pci_controller and pci_sys_data. Meanwhile, it defines a interface

[PATCH 03/12][v4] pci: fsl: add PCI indirect access support

2014-01-07 Thread Minghuan Lian
The patch adds PCI indirect read/write functions. The main code is ported from arch/powerpc/sysdev/indirect_pci.c. We use general IO API iowrite32be/ioread32be instead of out_be32/in_be32, and use structure fsl_Pci instead of PowerPC's pci_controller. The patch also provides fsl_pcie_check_link()

[PATCH 04/12][v4] pci: fsl: add early PCI indirect access support

2014-01-07 Thread Minghuan Lian
The driver needs to read/write PCI configuration very early, at that time architecture-specific PCI controller structure and PCI bus have not been created. The patch provides an interface fsl_arch_fake_pci_bus which should be implemented in architecture-specific PCI driver to fake a PCI controller

[PATCH 01/12][v4] pci: fsl: derive the common PCI driver to drivers/pci/host

2014-01-07 Thread Minghuan Lian
The Freescale's Layerscape series processors will use ARM cores. The LS1's PCIe controllers is the same as T4240's. So it's better the PCIe controller driver can support PowerPC and ARM simultaneously. This patch is for this purpose. It derives the common functions from

[PATCH 05/12][v4] pci: fsl: port PCI ATMU related code

2014-01-07 Thread Minghuan Lian
The patch ports PCI ATMU related code, just uses general IO API iowrite32be/ioread32be instead of out_be32/in_be32, uses structure fsl_pci instead of PowerPC's pci_controller and uses dev_*() instead of pr_*() to output the information. The patch also provides the weak function

[PATCH 07/12][v4] pci: fsl: port PCI platform driver

2014-01-07 Thread Minghuan Lian
1. The patch ports FSL PCI platform driver. probe function initialize fsl_pci and register it to architecture PCI system, remove function removes fsl_pci from architecture PCI system. fsl_arch_pci_sys_register() and fsl_arch_pci_sys_remove() should be implemented in architecture-specific driver to

[PATCH 08/12][v4] pci: fsl: add PowerPC PCI driver

2014-01-07 Thread Minghuan Lian
1. Implement fsl_arch_pci64_dma_offset() to return PowerPC PCI64 DMA offset 2. Implement fsl_arch_sys_to_pci() to convert pci_controller to fsl_pci 3. Implement fsl_arch_fake_pci_bus() to fake pci_controller and PCI bus. 4. Implement fsl_arch_pci_exclude_device() to call

[PATCH 06/12][v4] pci: fsl: port PCI controller setup code

2014-01-07 Thread Minghuan Lian
PCI controller setup code will initialize structure fsl_pci according to PCI dts node and initialize PCI command register and ATMU. The patch uses general API of_pci_parse_bus_range to parse PCI bus range, uses general of_address's API to parse PCI IO/MEM ranges. Signed-off-by: Minghuan Lian

[PATCH 11/12][v4] pci: fsl: update PCI EDAC driver

2014-01-07 Thread Minghuan Lian
1. The pci-fsl-common driver has set fsl_pci to device as drvdata, so EDAC driver can not call dev_set_drvdata() again. fsl_pci contains regs field to point PCI CCSR, so EDAC may directly use the pointer and not need to call devm_ioremap(). 2. Add mpc85xx_pci_err_remove() to disable PCI error

[PATCH 12/12][v4] pci: fsl: fix function check_pci_ctl_endpt_part

2014-01-07 Thread Minghuan Lian
The new FSL PCI driver does not use cfg_addr of pci_controller, we may directly access PCI CCSR using fsl_pci-regs. Signed-off-by: Minghuan Lian minghuan.l...@freescale.com --- change log: v4: no change v1-v3: The new patch to fix function check_pci_ctl_endpt_part Based on upstream master. Based

[PATCH 09/12][v4] pci: fsl: update PCI PM driver

2014-01-07 Thread Minghuan Lian
The patch updates PCI PM driver, uses fsl_pci instead of pci_controller. Signed-off-by: Minghuan Lian minghuan.l...@freescale.com --- change log: v4: no change v1-v3: Derived from http://patchwork.ozlabs.org/patch/278965/ Based on upstream master. Based on the discussion of RFC version here

[PATCH 10/12][v4] pci: fsl: support function fsl_pci_assign_primary

2014-01-07 Thread Minghuan Lian
Change pci_ids to fsl_pci_ids Freescale-specific name and change static to extern modifier for using in fsl_pci_assign_primary(). Signed-off-by: Minghuan Lian minghuan.l...@freescale.com --- change log: v4: no change v1-v3: Derived from http://patchwork.ozlabs.org/patch/278965/ Based on upstream

RE: [PATCH 2/2] powerpc/85xx: handle the eLBC error interrupt if it exist in dts

2014-01-07 Thread dongsheng.w...@freescale.com
-Original Message- From: Wood Scott-B07421 Sent: Wednesday, January 08, 2014 4:45 AM To: Wang Dongsheng-B40534 Cc: linuxppc-dev@lists.ozlabs.org; Xie Shaohui-B21989; Kumar Gala Subject: Re: [PATCH 2/2] powerpc/85xx: handle the eLBC error interrupt if it exist in dts On Tue,