Re: Linux-3.14-rc2: Order of serial node compatibles in DTS files.

2014-02-12 Thread Sebastian Hesselbarth
On 02/12/2014 01:21 AM, Stephen N Chivers wrote: Sebastian Hesselbarth sebastian.hesselba...@gmail.com wrote on 02/12/2014 10:46:36 AM: From: Sebastian Hesselbarth sebastian.hesselba...@gmail.com To: Scott Wood scottw...@freescale.com Cc: Kumar Gala ga...@kernel.crashing.org, Stephen N Chivers

Re: Linux-3.14-rc2: Order of serial node compatibles in DTS files.

2014-02-12 Thread Sebastian Hesselbarth
On 02/12/2014 06:28 AM, Kevin Hao wrote: On Wed, Feb 12, 2014 at 10:21:58AM +1000, Stephen N Chivers wrote: But, the Interrupt Controller (MPIC) goes AWOL and it is down hill from there. The MPIC is specified in the DTS as: mpic: pic@4 {

Re: [PATCH] powerpc: set the correct ksp_limit on ppc32 when switching to irq stack

2014-02-12 Thread Benjamin Herrenschmidt
On Wed, 2014-02-12 at 13:51 +0800, Kevin Hao wrote: On Wed, Jan 22, 2014 at 08:48:48AM +1100, Benjamin Herrenschmidt wrote: It will be merged when I come back from vacation. It was too late for 3.13 so I'll send it to Linus next week and will CC -stable. Hi Ben, Any reason why this is

Re: Linux-3.14-rc2: Order of serial node compatibles in DTS files.

2014-02-12 Thread Kevin Hao
On Wed, Feb 12, 2014 at 09:30:00AM +0100, Sebastian Hesselbarth wrote: On 02/12/2014 06:28 AM, Kevin Hao wrote: On Wed, Feb 12, 2014 at 10:21:58AM +1000, Stephen N Chivers wrote: But, the Interrupt Controller (MPIC) goes AWOL and it is down hill from there. The MPIC is specified in the DTS

Re: Linux-3.14-rc2: Order of serial node compatibles in DTS files.

2014-02-12 Thread Kevin Hao
On Wed, Feb 12, 2014 at 09:25:24AM +0100, Sebastian Hesselbarth wrote: Hmm, I did a mistake in the patch: - while (m-name[0] || m-type[0]) { + while (m-compatible[0] || m-name[0] || m-type[0]) { for the second added match. Otherwise, the matches are not evaluated down to the

Re: Linux-3.14-rc2: Order of serial node compatibles in DTS files.

2014-02-12 Thread Arnd Bergmann
On Wednesday 12 February 2014, Sebastian Hesselbarth wrote: On 02/12/2014 12:38 AM, Stephen N Chivers wrote: Sebastian Hesselbarth sebastian.hesselba...@gmail.com wrote on I don't think the missing compatible is causing it, but of_serial provides a DT match for .type = serial just to fail

Re: Linux-3.14-rc2: Order of serial node compatibles in DTS files.

2014-02-12 Thread Sebastian Hesselbarth
On 02/12/14 11:31, Kevin Hao wrote: On Wed, Feb 12, 2014 at 09:30:00AM +0100, Sebastian Hesselbarth wrote: On 02/12/2014 06:28 AM, Kevin Hao wrote: On Wed, Feb 12, 2014 at 10:21:58AM +1000, Stephen N Chivers wrote: But, the Interrupt Controller (MPIC) goes AWOL and it is down hill from there.

Re: Linux-3.14-rc2: Order of serial node compatibles in DTS files.

2014-02-12 Thread Kevin Hao
On Wed, Feb 12, 2014 at 12:26:14PM +0100, Sebastian Hesselbarth wrote: You can cook it down to: m = matches; /* Check against matches without compatible string */ while (m-name[0] || m-type[0] || m-compatible[0]) { if (!m-compatible[0]

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

2014-02-12 Thread Kevin Hao
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 type or name with the device node. This is based on a

[PATCH RFC v7 1/6] dma: mpc512x: reorder mpc8308 specific instructions

2014-02-12 Thread Alexander Popov
Concentrate the specific code for MPC8308 in the 'if' branch and handle MPC512x in the 'else' branch. This modification only reorders instructions but doesn't change behaviour. Signed-off-by: Alexander Popov a13xp0p0...@gmail.com Acked-by: Anatolij Gustschin ag...@denx.de Acked-by: Gerhard Sittig

[PATCH RFC v7 0/6] MPC512x DMA slave s/g support, OF DMA lookup

2014-02-12 Thread Alexander Popov
v2013/7/14 Gerhard Sittig g...@denx.de: this series - introduces slave s/g support (that's support for DMA transfers which involve peripherals in contrast to mem-to-mem transfers) - adds device tree based lookup support for DMA channels - combines floating patches and related feedback

[PATCH RFC v7 2/6] dma: mpc512x: add support for peripheral transfers

2014-02-12 Thread Alexander Popov
Introduce support for slave s/g transfer preparation and the associated device control callback in the MPC512x DMA controller driver, which adds support for data transfers between memory and peripheral I/O to the previously supported mem-to-mem transfers. Signed-off-by: Alexander Popov

[PATCH RFC v7 3/6] dma: of: Add common xlate function for matching by channel id

2014-02-12 Thread Alexander Popov
This patch adds a new common OF dma xlate callback function which will match a channel by it's id. The binding expects one integer argument which it will use to lookup the channel by the id. Unlike of_dma_simple_xlate this function is able to handle a system with multiple DMA controllers. When

[PATCH RFC v7 4/6] dma: mpc512x: add device tree binding document

2014-02-12 Thread Alexander Popov
From: Gerhard Sittig g...@denx.de introduce a device tree binding document for the MPC512x DMA controller Signed-off-by: Gerhard Sittig g...@denx.de [ a13xp0p0...@gmail.com: turn this into a separate patch ] --- .../devicetree/bindings/dma/mpc512x-dma.txt| 55 ++ 1

[PATCH RFC v7 5/6] dma: mpc512x: register for device tree channel lookup

2014-02-12 Thread Alexander Popov
From: Gerhard Sittig g...@denx.de register the controller for device tree based lookup of DMA channels (non-fatal for backwards compatibility with older device trees) and provide the '#dma-cells' property in the shared mpc5121.dtsi file Signed-off-by: Gerhard Sittig g...@denx.de [

[PATCH RFC v7 6/6] HACK mmc: mxcmmc: enable clocks for the MPC512x

2014-02-12 Thread Alexander Popov
From: Gerhard Sittig g...@denx.de QD HACK to enable SD card support without correct COMMON_CLK support, best viewed with 'git diff -w -b', NOT acceptable for mainline (NAKed) Signed-off-by: Gerhard Sittig g...@denx.de [ a13xp0p0...@gmail.com: resolve little patch conflict ] ---

Re: [PATCH V2] powerpc: thp: Fix crash on mremap

2014-02-12 Thread Greg KH
On Wed, Feb 12, 2014 at 08:22:02AM +0530, Aneesh Kumar K.V wrote: Greg KH gre...@linuxfoundation.org writes: On Fri, Feb 07, 2014 at 07:21:57PM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com This patch fix the below crash NIP

Re: [PATCH v2] powerpc/powernv: Platform dump interface

2014-02-12 Thread Vasant Hegde
On 02/09/2014 02:50 AM, Anton Blanchard wrote: Hi Vasant, +static void free_dump_sg_list(struct opal_sg_list *list) +{ + struct opal_sg_list *sg1; + while (list) { + sg1 = list-next; + kfree(list); + list = sg1; + } + list =

Re: [PATCH V2] powerpc: thp: Fix crash on mremap

2014-02-12 Thread Aneesh Kumar K.V
Greg KH gre...@linuxfoundation.org writes: On Wed, Feb 12, 2014 at 08:22:02AM +0530, Aneesh Kumar K.V wrote: Greg KH gre...@linuxfoundation.org writes: On Fri, Feb 07, 2014 at 07:21:57PM +0530, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com This patch

Re: [PATCH RFC v7 1/6] dma: mpc512x: reorder mpc8308 specific instructions

2014-02-12 Thread Gerhard Sittig
[ removed DT from Cc: ] On Wed, Feb 12, 2014 at 17:25 +0400, Alexander Popov wrote: Concentrate the specific code for MPC8308 in the 'if' branch and handle MPC512x in the 'else' branch. This modification only reorders instructions but doesn't change behaviour. As this one is an obvious

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

2014-02-12 Thread Stephen N Chivers
Kevin Hao haoke...@gmail.com wrote on 02/12/2014 10:38:04 PM: From: Kevin Hao haoke...@gmail.com To: devicet...@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: Sebastian Hesselbarth sebastian.hesselba...@gmail.com, Stephen N Chivers schiv...@csc.com.au, Chris Proctor cproc...@csc.com.au,

Re: [PATCH V2] powerpc: thp: Fix crash on mremap

2014-02-12 Thread Benjamin Herrenschmidt
On Wed, 2014-02-12 at 06:23 -0800, Greg KH wrote: I have no idea what that means... If you want this patch applied, please be specific as to what is going on, why the code is _very_ different, and all of that. Make it _obvious_ as to what is happening, and why I would be a fool not to take

Re: [PATCH v3 0/3] powerpc/pseries: fix issues in suspend/resume code

2014-02-12 Thread Tyrel Datwyler
On 01/31/2014 03:58 PM, Tyrel Datwyler wrote: This patchset fixes a couple of issues encountered in the suspend/resume code base. First when using the kernel device tree update code update-nodes is unnecessarily called more than once. Second the cpu cache lists are not updated after a

Re: [RFC PATCH 2/3] topology: support node_numa_mem() for determining the fallback node

2014-02-12 Thread Christoph Lameter
Here is another patch with some fixes. The additional logic is only compiled in if CONFIG_HAVE_MEMORYLESS_NODES is set. Subject: slub: Memoryless node support Support memoryless nodes by tracking which allocations are failing. Allocations targeted to the nodes without memory fall back to the

Re: [PATCH RFC v7 2/6] dma: mpc512x: add support for peripheral transfers

2014-02-12 Thread Gerhard Sittig
[ removed DT from Cc: ] On Wed, Feb 12, 2014 at 17:25 +0400, Alexander Popov wrote: Introduce support for slave s/g transfer preparation and the associated device control callback in the MPC512x DMA controller driver, which adds support for data transfers between memory and peripheral I/O to

Re: [PATCH RFC v7 4/6] dma: mpc512x: add device tree binding document

2014-02-12 Thread Gerhard Sittig
On Wed, Feb 12, 2014 at 17:25 +0400, Alexander Popov wrote: From: Gerhard Sittig g...@denx.de introduce a device tree binding document for the MPC512x DMA controller Signed-off-by: Gerhard Sittig g...@denx.de [ a13xp0p0...@gmail.com: turn this into a separate patch ] As stated in the

Re: [PATCH RFC v7 6/6] HACK mmc: mxcmmc: enable clocks for the MPC512x

2014-02-12 Thread Gerhard Sittig
[ removed DT from Cc: ] On Wed, Feb 12, 2014 at 17:25 +0400, Alexander Popov wrote: QD HACK to enable SD card support without correct COMMON_CLK support, best viewed with 'git diff -w -b', NOT acceptable for mainline (NAKed) This one has become obsolete, v3.14-rc1 comes with proper

Re: [PATCH RFC v7 0/6] MPC512x DMA slave s/g support, OF DMA lookup

2014-02-12 Thread Gerhard Sittig
For some reason you have kept the DMA maintainers, but dropped the dmaengine ML from Cc: -- was this intentional, given that the series is specifically about DMA and you want to get feedback? And you may want to help DT people by not sending purely Linux implementation related stuff to them (they

Re: [RFC PATCH 2/3] topology: support node_numa_mem() for determining the fallback node

2014-02-12 Thread Nishanth Aravamudan
Hi Joonsoo, On 11.02.2014 [16:42:00 +0900], Joonsoo Kim wrote: On Mon, Feb 10, 2014 at 11:13:21AM -0800, Nishanth Aravamudan wrote: Hi Christoph, On 07.02.2014 [12:51:07 -0600], Christoph Lameter wrote: Here is a draft of a patch to make this work with memoryless nodes. The

[PATCH][v2] powerpc/fsl: Add/update miscellaneous missing bindings

2014-02-12 Thread Harninder Rai
Missing bindings were found on running checkpatch.pl on bsc9132 device tree. This patch add/update the following - Add bindings for L2 cache controller - Add bindings for memory controller - Update bindings for USB controller Signed-off-by: Harninder Rai harninder@freescale.com --- Changes