Re: [async_tx-next PATCH v2 2/2] fsldma: Fix cookie issues

2010-02-28 Thread Dan Williams
On Thu, Feb 25, 2010 at 12:39 PM, Steven J. Magnani wrote: > fsl_dma_update_completed_cookie() appears to calculate the last completed > cookie incorrectly in the corner case where DMA on cookie 1 is in progress > just following a cookie wrap. > > Signed-off-by: Steven J. Magnani > --- > diff -up

Re: [PATCH 1/3] video: add support for getting video mode from device tree

2010-02-28 Thread Benjamin Herrenschmidt
At some stage, Grant wrote: > > First off, I did a tiny amount of research, and I didn't find any > > existing OpenFirmware bindings for describing video displays. > > Otherwise, I'd suggest considering that. There's a binding for framebuffers but it sucks big time :-) It doesn't provide a reliab

RE: [PATCH 0/3] Rework MPC5121 DIU support (for 2.6.34)

2010-02-28 Thread sun york-R58495
I agree device tree is the right direction to go. Sent from my Android phone - Original Message - From:"Anatolij Gustschin" To:"linuxppc-...@ozlabs.org" Cc:"grant.lik...@secretlab.ca" , "linux-fb...@vger.kernel.org" , "york...@freescale.com" , "d...@denx.de" , "w...@denx.de" , "jri...

[PATCH] fix PHY polling system blocking

2010-02-28 Thread Stefani Seibold
This patch fix the PHY poller, which can block the whole system. On a Freescale PPC 834x this result in a delay of 450 us due the slow communication with the PHY chip. For PHY chips without interrupts, the status of the ethernet will be polled every 2 sec. The poll function will read some register

Re: [RFC PATCH v2 4/9] add generic dmabounce support

2010-02-28 Thread Albert Herranz
Russell King - ARM Linux wrote: > On Sun, Feb 28, 2010 at 03:07:57PM +0100, Albert Herranz wrote: >> This patch makes part of the ARM dmabounce code available to other >> architectures as a generic API. > > There is already a generic dma bounce implementation - it's called > swiotlb - lib/swiotlb.

Re: [PATCH 1/3] video: add support for getting video mode from device tree

2010-02-28 Thread Grant Likely
On Sun, Feb 28, 2010 at 1:44 AM, Mitch Bradley wrote: > Grant Likely Wrote: >> On Sat, Feb 27, 2010 at 2:58 PM, Anatolij Gustschin wrote: >> Also, since you're now in the realm of describing a video display, >> which is separate from the display controller, you should consider >> describing the d

Re: [RFC PATCH v2 4/9] add generic dmabounce support

2010-02-28 Thread Russell King - ARM Linux
On Sun, Feb 28, 2010 at 03:07:57PM +0100, Albert Herranz wrote: > This patch makes part of the ARM dmabounce code available to other > architectures as a generic API. There is already a generic dma bounce implementation - it's called swiotlb - lib/swiotlb.c. We should eventually switch the ARM dm

[RFC PATCH v2 9/9] wii: hollywood ehci controller support

2010-02-28 Thread Albert Herranz
Add support for the USB Enhanced Host Controller Interface included in the "Hollywood" chipset of the Nintendo Wii video game console. Signed-off-by: Albert Herranz --- arch/powerpc/platforms/embedded6xx/Kconfig |1 + drivers/usb/host/Kconfig |8 + drivers/usb/host/ehci

[RFC PATCH v2 8/9] USB: add HCD_NO_COHERENT_MEM host controller driver flag

2010-02-28 Thread Albert Herranz
The HCD_NO_COHERENT_MEM USB host controller driver flag can be enabled to instruct the USB stack to avoid allocating coherent memory for USB buffers. This flag is useful to overcome some esoteric memory access restrictions found in some platforms. For example, the Nintendo Wii video game console i

[RFC PATCH v2 7/9] wii: add mem2 dma mapping ops

2010-02-28 Thread Albert Herranz
Some of the devices in the "Hollywood" chipset of the Nintendo Wii video game console have restrictions performing DMA transfers to the first contiguous RAM region (known as MEM1). For example, up to 3 bytes of the last word of a DMA transfer of a non-32 bit aligned length to MEM1 may be lost. Such

[RFC PATCH v2 6/9] powerpc: add optional per-device dmabounce support

2010-02-28 Thread Albert Herranz
Add support for the PowerPC architecture for using the generic dmabounce support on a per-device basis. Signed-off-by: Albert Herranz --- arch/powerpc/include/asm/device.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/include/asm/device.h b/arch/powerpc

[RFC PATCH v2 5/9] arm: use generic dmabounce support

2010-02-28 Thread Albert Herranz
Update ARM dmabounce to use the generic dmabounce support. Signed-off-by: Albert Herranz --- arch/arm/Kconfig |4 +- arch/arm/common/Kconfig |6 +- arch/arm/common/dmabounce.c | 376 +++- arch/arm/include/asm/device.h |2 +- i

[RFC PATCH v2 4/9] add generic dmabounce support

2010-02-28 Thread Albert Herranz
This patch makes part of the ARM dmabounce code available to other architectures as a generic API. See included kernel-doc annotations for the actual API implemented. An architecture can opt-in for generic dmabounce support by defining HAVE_DMABOUNCE. This support will be used later to address DM

[RFC PATCH v2 3/9] dma-coherent: fix bitmap access races

2010-02-28 Thread Albert Herranz
The coherent per-device memory handling functions use the in-kernel bitmap library to account for the allocated regions. The bitmap functions, though, do not protect the bitmap structure from being modified concurrently. This can lead, for example, to double allocations if dma_alloc_from_coherent(

[RFC PATCH v2 2/9] wii: have generic dma coherent

2010-02-28 Thread Albert Herranz
Let the Nintendo Wii gaming console use per-device dma coherent allocations. This will be used later by some of its drivers. Signed-off-by: Albert Herranz --- arch/powerpc/platforms/embedded6xx/Kconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/platform

[RFC PATCH v2 0/9] wii: add usb 2.0 support

2010-02-28 Thread Albert Herranz
The following patch series adds USB 2.0 support for the Wii PowerPC platform via the EHCI controller present in the "Hollywood" chipset of the video game console. v1 -> v2 - enable per-device DMA coherent support on the Wii - add a generic dmabounce based on ARM dmabounce - make PowerPC and ARM us

[RFC PATCH v2 1/9] powerpc: add per-device dma coherent support

2010-02-28 Thread Albert Herranz
Use the generic per-device dma coherent allocator on powerpc. This allows a driver to declare coherent memory area from where a device can allocate coherent memory chunks. Signed-off-by: Albert Herranz --- arch/powerpc/include/asm/dma-mapping.h |1 + arch/powerpc/kernel/dma.c |

[PATCH] powerpc: use __ratelimit

2010-02-28 Thread Akinobu Mita
Replace open-coded rate limiting logic with __ratelimit(). Signed-off-by: Akinobu Mita Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-...@ozlabs.org --- arch/powerpc/platforms/iseries/pci.c | 10 +++--- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/arch/power

Re: [PATCH 1/3] video: add support for getting video mode from device tree

2010-02-28 Thread Mitch Bradley
Hi Anatolij, [added cc: to devicetree-disc...@lists.ozlabs.org] On Sat, Feb 27, 2010 at 2:58 PM, Anatolij Gustschin wrote: > Framebuffer drivers may want to get panel timing info > from the device tree. This patch adds appropriate support. > Subsequent patch for FSL DIU frame buffer driver