Re: [PATCH 3/3 v2] of/device: Register children with a compatible value in of_platform_bus_probe()

2010-12-29 Thread Grant Likely
On Thu, Dec 30, 2010 at 03:23:11PM +0800, Lan Chunhe wrote: > On Thu, 30 Dec 2010 14:50:45 +0800, Grant Likely > wrote: > > >On Fri, Dec 10, 2010 at 06:52:20PM +0800, Lan Chunhe wrote: > >>Currently, of_platform_bus_probe() completely skips nodes which do not > >>explicitly match the 'matches' ta

Re: [PATCH 3/3 v2] of/device: Register children with a compatible value in of_platform_bus_probe()

2010-12-29 Thread Lan Chunhe
On Thu, 30 Dec 2010 14:50:45 +0800, Grant Likely wrote: On Fri, Dec 10, 2010 at 06:52:20PM +0800, Lan Chunhe wrote: Currently, of_platform_bus_probe() completely skips nodes which do not explicitly match the 'matches' table passed in. Or, if the root node matches, then it registers all the

Re: [PATCH 3/3 v2] of/device: Register children with a compatible value in of_platform_bus_probe()

2010-12-29 Thread Grant Likely
On Fri, Dec 10, 2010 at 06:52:20PM +0800, Lan Chunhe wrote: > Currently, of_platform_bus_probe() completely skips nodes which do not > explicitly match the 'matches' table passed in. Or, if the root node > matches, then it registers all the children unconditionally. However, > there are situation

Re: [PATCH] eSPI: change the read behavior of the SPIRF

2010-12-29 Thread Grant Likely
On Wed, Dec 01, 2010 at 05:29:18PM +0800, Mingkai Hu wrote: > The user must read N bytes of SPIRF (1 <= N <= 4) that do not exceed the > amount of data in the receive FIFO, so read the SPIRF byte by byte when > the data in receive FIFO is less than 4 bytes. > > On Simics, when read N bytes that ex

Re: [PATCH 4/6] mpc512x_dma: try to free descriptors in case of allocation failure

2010-12-29 Thread Grant Likely
On Wed, Oct 27, 2010 at 01:52:58AM +0200, Ilya Yanok wrote: > Currently completed descriptors are processed in the tasklet. This can > lead to dead lock in case of CONFIG_NET_DMA enabled (new requests are > submitted from softirq context and dma_memcpy_to_iovec() busy loops until > the requests is

Re: [PATCH 2/6] mpc512x_dma: fix the hanged transfer issue

2010-12-29 Thread Grant Likely
On Wed, Oct 27, 2010 at 01:52:56AM +0200, Ilya Yanok wrote: > Current code clears interrupt active status _after_ submiting new > transfers. This leaves a possibility of clearing the interrupt for this > new transfer (if it is triggered fast enough) and thus lose this > interrupt. We want to clear

Re: [PATCH 5/6] MPC8308RDB: add DMA controller device-tree node

2010-12-29 Thread Grant Likely
On Wed, Oct 27, 2010 at 01:52:59AM +0200, Ilya Yanok wrote: > MPC8308 has DMA controller compatible with mpc512x_dma driver. This > patch adds device-tree node to support DMA controller on MPC8308RDB > board. > > Signed-off-by: Ilya Yanok Merged for -next, thanks. g. > --- > arch/powerpc/boot

Re: [PATCH 6/6] mpc8308_p1m: add DMA controller device-tree node

2010-12-29 Thread Grant Likely
On Wed, Oct 27, 2010 at 01:53:00AM +0200, Ilya Yanok wrote: > MPC8308 has DMA controller compatible with mpc512x_dma driver. This > patch adds device-tree node to support DMA controller on MPC8308 P1M > board. > > Signed-off-by: Ilya Yanok Merged for -next, thanks. g. > --- > arch/powerpc/boo

Re: [PATCH 3/6] mpc512x_dma: add MPC8308 support

2010-12-29 Thread Grant Likely
On Wed, Oct 27, 2010 at 01:52:57AM +0200, Ilya Yanok wrote: > MPC8308 has pretty much the same DMA controller as MPC5121 and > this patch adds support for MPC8308 to the mpc512x_dma driver. > > Signed-off-by: Ilya Yanok > Cc: Piotr Ziecik Merged for -next, thanks. g. > --- > drivers/dma/Kcon

Re: [PATCH 1/6] mpc512x_dma: scatter/gather fix

2010-12-29 Thread Grant Likely
On Wed, Oct 27, 2010 at 01:52:55AM +0200, Ilya Yanok wrote: > While testing mpc512x-dma driver with dmatest module I've found that > I can hang the mpc512x-dma issueing request from multiple threads to > the single channel. > (insmod dmatest.ko max_channels=1 threads_per_chan=16) > After investinga

Re: PowerPC BUG: using smp_processor_id() in preemptible code

2010-12-29 Thread Jeremy Fitzhardinge
On 12/30/2010 09:54 AM, Hugh Dickins wrote: > With recent 2.6.37-rc, with CONFIG_PREEMPT=y CONFIG_DEBUG_PREEMPT=y > on the PowerPC G5, I get spammed by BUG warnings each time I swapoff: > > BUG: using smp_processor_id() in preemptible [] code: swapoff/3974 > caller is .hpte_need_flush+0x4c/

Re: [PATCH 7/7] fdt.c: Refactor unflatten_device_tree and add fdt_unflatten_tree

2010-12-29 Thread Grant Likely
On Thu, Nov 18, 2010 at 03:55:02PM -0800, Stephen Neuendorffer wrote: > unflatten_device_tree has two dependencies on things that happen > during boot time. Firstly, it references the initial device tree > directly. Secondly, it allocates memory using the early boot > allocator. This patch factor

Re: [PATCH 6/7] fdt.c: Reorder unflatten_dt_node

2010-12-29 Thread Grant Likely
On Thu, Nov 18, 2010 at 03:55:01PM -0800, Stephen Neuendorffer wrote: > Move unflatten_dt_node to be grouped with non-__init functions. > > Signed-off-by: Stephen Neuendorffer Merged, thanks. g. > --- > drivers/of/fdt.c | 218 > +++--- > 1 fil

Re: [PATCH 5/7] fdt.c: Refactor unflatten_dt_node

2010-12-29 Thread Grant Likely
On Thu, Nov 18, 2010 at 03:55:00PM -0800, Stephen Neuendorffer wrote: > unflatten_dt_node is a helper function that does most of the work to > convert a device tree blob into tree of device nodes. This code > now uses a passed-in blob instead of using the single boot-time blob, > allowing it to be

Re: [PATCH 4/7] fdt.c: Add non-boottime device tree functions

2010-12-29 Thread Grant Likely
On Thu, Nov 18, 2010 at 03:54:59PM -0800, Stephen Neuendorffer wrote: > In preparation for providing run-time handling of device trees, factor > out some of the basic functions so that they take an arbitrary blob, > rather than relying on the single boot-time tree. > > Signed-off-by: Stephen Neuen

Re: [PATCH 3/7] arch/x86: select OF and OF_FLATTREE

2010-12-29 Thread Grant Likely
On Thu, Nov 18, 2010 at 03:54:58PM -0800, Stephen Neuendorffer wrote: > Testing patch to verify that the device tree code can be compiled on X86. > --- Skipping this one also. > arch/x86/Kconfig |2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/arch/x86/Kconfig b/ar

Re: [PATCH 2/7] arch/x86: Add support for device tree code.

2010-12-29 Thread Grant Likely
On Thu, Nov 18, 2010 at 03:54:57PM -0800, Stephen Neuendorffer wrote: > A few support device-tree related support functions that x86 didn't > have before. > > Signed-off-by: Stephen Neuendorffer Skipping this patch. I expect to pick up Dirk's version instead. g. > > > > Looks like just

Re: [PATCH 1/7] fdt: Add Kconfig for EARLY_FLATTREE

2010-12-29 Thread Grant Likely
On Thu, Nov 18, 2010 at 03:54:56PM -0800, Stephen Neuendorffer wrote: > The device tree code is now in two pieces: some which can be used generically > on any platform which selects CONFIG_OF_FLATTREE, and some early which is used > at boot time on only a few architectures. This patch segregates t

PowerPC BUG: using smp_processor_id() in preemptible code

2010-12-29 Thread Hugh Dickins
With recent 2.6.37-rc, with CONFIG_PREEMPT=y CONFIG_DEBUG_PREEMPT=y on the PowerPC G5, I get spammed by BUG warnings each time I swapoff: BUG: using smp_processor_id() in preemptible [] code: swapoff/3974 caller is .hpte_need_flush+0x4c/0x2e8 Call Trace: [c001b4a3f830] [c000f3c

[PATCH] KVM: PPC: Fix SPRG get/set for Book3S and BookE

2010-12-29 Thread Peter Tyser
Previously SPRGs 4-7 were improperly read and written in kvm_arch_vcpu_ioctl_get_regs() and kvm_arch_vcpu_ioctl_set_regs(); Signed-off-by: Peter Tyser --- I noticed this while grepping for somthing unrelated and assume its a typo. Feel free to add to the patch description; I don't use KVM so don