[PATCH] powerpc: Add coherent_dma_mask to mv64x60 devices

2010-02-03 Thread Corey Minyard
From: Corey Minyard cminy...@mvista.com DMA ops requires that coherent_dma_mask be set properly for a device, but this was not being done for devices on the MV64x60 that use DMA. Both the serial and ethernet devices need this or they won't be able to allocate memory. Signed-off-by: Corey Minyard

[PATCH] eeh: Fixing a bug when pci structure is null

2010-02-03 Thread Breno Leitao
During a EEH recover, the pci_dev structure can be null, mainly if an eeh event is detected during cpi config operation. In this case, the pci_dev will not be known (and will be null) the kernel will crash with the following message: Unable to handle kernel paging request for data at address

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

2010-02-03 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. Albert Herranz (2): USB: add HCD_BOUNCE_BUFFERS host controller driver flag wii: hollywood ehci controller support

[RFC PATCH 1/2] USB: add HCD_BOUNCE_BUFFERS host controller driver flag

2010-02-03 Thread Albert Herranz
The HCD_BOUNCE_BUFFERS USB host controller driver flag can be enabled to instruct the USB stack to always bounce USB buffers to/from coherent memory buffers _just_ before/after a host controller transmission. This setting allows overcoming some platform-specific limitations. For example, the

[RFC PATCH 2/2] wii: hollywood ehci controller support

2010-02-03 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 albert_herr...@yahoo.es --- arch/powerpc/platforms/embedded6xx/Kconfig |1 + drivers/usb/host/Kconfig |8 +

Re: [RFC PATCH 1/2] USB: add HCD_BOUNCE_BUFFERS host controller driver flag

2010-02-03 Thread Greg KH
On Wed, Feb 03, 2010 at 07:30:39PM +0100, Albert Herranz wrote: +/** + * hcd_memcpy32_to_coherent - copy data to a bounce buffer + * @dst: destination dma bounce buffer + * @src: source buffer + * @len: number of bytes to copy + * + * This function copies @len bytes from @src to @dst in 32

[PATCH 0/3] OF Device tree merge patches

2010-02-03 Thread Grant Likely
Hi everyone. Here are a few patches that I've got sitting in my test-devicetree branch, but I haven't posted for review yet. Please take a look and let me know if they are okay. Once I've collected acks I'll move them over to my next-devicetree branch. Thanks, g. --- Grant Likely (3):

[PATCH 1/3] microblaze: remove early_init_dt_scan_cpus() and phyp_dump_*()

2010-02-03 Thread Grant Likely
Microblaze only has one CPU, it isn't SMP at all. early_init_dt_scan_cpus() is effectively just a no-op, so remove it. Microblaze doesn't support hypervisor assisted dump either, so the phyp stuff can also go. Signed-off-by: Grant Likely grant.lik...@secretlab.ca --- v2 - added phyp code

[PATCH 2/3] of: add 'of_' prefix to machine_is_compatible()

2010-02-03 Thread Grant Likely
machine is compatible is an OF-specific call. It should have the of_ prefix to protect the global namespace. Signed-off-by: Grant Likely grant.lik...@secretlab.ca --- arch/powerpc/kernel/pci_64.c |2 + arch/powerpc/platforms/85xx/xes_mpc85xx.c |4 +-

Re: [patch 1/2] powerpc: Sky CPU: redundant or incorrect tests on unsigned

2010-02-03 Thread Benjamin Herrenschmidt
On Wed, 2010-02-03 at 20:47 -0500, support wrote: I doubt we'll be going to be using 7448's any more for future product lines. Hi ! Well, that isn't really the question :-) Is there any interest in ensuring that your current Sky is supported by upstream linux kernels or not ? As I said, the

Re: [PATCHv2 2/2] Update ibm,client-architecture call field based on device tree

2010-02-03 Thread Benjamin Herrenschmidt
On Tue, 2010-02-02 at 12:37 -0600, Joel Schopp wrote: + if(*cores != NR_CPUS) + prom_printf(client-architecture structure corrupted\n); + *cores = (NR_CPUS / prom_smt_way()); + prom_printf(setting client-architecture cores to %x\n, *cores);

[PATCH] powerpc/pseries: Pass more accurate number of supported cores to firmware

2010-02-03 Thread Benjamin Herrenschmidt
The field containing the number of supported cores which we pass to firmware via the ibm,client-architecture call was set by a previous patch statically as high as is possible (NR_CPUS). However, that value isn't quite right for a system that supports multiple threads per core, thus permitting

Re: [patch 1/2] powerpc: Sky CPU: redundant or incorrect tests on unsigned

2010-02-03 Thread support
To All: The sky cpu is a PPC7448. I'm actually amazed that you guys are still working on a problem for a product that was finished a number of years ago, at the request of someone who hasn't worked here for years. I sorry you, seem to have been wasting your time. I think, but am NOT sure,

Re: [patch 1/2] powerpc: Sky CPU: redundant or incorrect tests on unsigned

2010-02-03 Thread support
I doubt we'll be going to be using 7448's any more for future product lines. Dave Bushee Director OEM Sales and Services SKY Computers Inc. 27 Industrial Ave. 978-250-2420 x232 www.skycomputers.com - Original Message - From: Benjamin Herrenschmidt b...@kernel.crashing.org To: support