Re: [PATCH] powerpc: fix swiotlb to respect the boot option

2010-03-17 Thread Albert Herranz
FUJITA Tomonori wrote: powerpc initializes swiotlb before parsing the kernel boot options so swiotlb options (e.g. specifying the swiotlb buffer size) are ignored. Any time before freeing bootmem works for swiotlb so this patch moves powerpc's swiotlb initialization after parsing the kernel

Re: [PATCH 2/4] 8xx: Avoid testing for kernel space in ITLB Miss.

2010-03-17 Thread Joakim Tjernlund
Benjamin Herrenschmidt b...@kernel.crashing.org wrote on 2010/03/16 22:19:36: On Fri, 2010-02-26 at 09:29 +0100, Joakim Tjernlund wrote: +#ifdef CONFIG_MODULES + /* Only modules will cause ITLB Misses as we always +* pin the first 8MB of kernel memory */ andi.

Re: Problem with PCI bus rescan on 460EX

2010-03-17 Thread Felix Radensky
Hello Kenj-san Kenji Kaneshige wrote: By the way, I think Yinghai's bridge resource reallocation patch series might help you. It is in Jesse's PCI tree. Please take a look. I've tried Jesse's tree on my custom board and on 460EX evaluation board (Canyonlands). In both cases the kernel

Re: [PATCH 3/4] 8xx: Don't touch ACCESSED when no SWAP.

2010-03-17 Thread Joakim Tjernlund
Benjamin Herrenschmidt b...@kernel.crashing.org wrote on 2010/03/16 22:20:52: On Fri, 2010-02-26 at 09:29 +0100, Joakim Tjernlund wrote: Only the swap function cares about the ACCESSED bit in the pte. Do not waste cycles updateting ACCESSED when swap is not compiled into the kernel. ---

Re: Problem with PCI bus rescan on 460EX

2010-03-17 Thread Benjamin Herrenschmidt
On Wed, 2010-03-17 at 09:38 +0200, Felix Radensky wrote: Hello Kenj-san Kenji Kaneshige wrote: By the way, I think Yinghai's bridge resource reallocation patch series might help you. It is in Jesse's PCI tree. Please take a look. I've tried Jesse's tree on my custom board and on

Re: MPC5121e - using both USB modules

2010-03-17 Thread Wolfram Sang
On Wed, Mar 17, 2010 at 02:56:22PM +0100, LD wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I am working on a custom MPC5121e board, adapting 2.6.24 kernel. This is probably the Freescale-provided kernel, so you should ask them. Or, even better, use the current mainline

Re: Freescale MPC5554 device tree (was: cross-compiling Linux for PowerPC e200 core?)

2010-03-17 Thread Németh Márton
Hi Grant, David and Segher, is there any comments or suggestions about this MPC5554 device tree? Regards, Márton Németh Németh Márton wrote: Hi, here is a version with modified cpu node, xbar ranges and added interrupt sources. Please send comments. Regards, Márton

Re: Freescale MPC5554 device tree (was: cross-compiling Linux for PowerPC e200 core?)

2010-03-17 Thread Grant Likely
2010/3/13 Németh Márton nm...@freemail.hu: Hi, here is a version with modified cpu node, xbar ranges and added interrupt sources. Please send comments. Hi Márton. A few comments below. --- From: Márton Németh nm...@freemail.hu Add device tree for Freescale MPC5554. Signed-off-by:

Re: [PATCH] 460EX on-chip SATA driverkernel 2.6.33 resubmission : 01

2010-03-17 Thread Jeff Garzik
On 03/17/2010 08:03 AM, Stefan Roese wrote: Hi Rup, On Wednesday 17 March 2010 05:23:16 Rupjyoti Sarmah wrote: This patch enables the on-chip DWC SATA controller of the AppliedMicro processor 460EX. Apart from the other comments, did you take a look at the latest version of this driver in

[PATCH RESEND] powerpc: fix handling of strnlen with zero len

2010-03-17 Thread Jeff Mahoney
Commit 0119536c, which added the assembly version of strncmp to powerpc, mentions that it adds two instructions to the version from boot/string.S to allow it to handle len=0. Unfortunately, it doesn't always return 0 when that is the case. The length is passed in r5, but the return value is

how can I write a Device Tree Source for PCI-PCI Bridge?

2010-03-17 Thread Jianbin Hu
Hi, all My board have a PCIe switch(PLX PEX8608), which have a AMCC 460EX processor. I have parted the dts source file from canyonlands.dts. But I have no idea for the PCI bridge device node. Is anyone have a suggestion ? Best Regards. ___ Linuxppc-dev

[PATCH] [RFC] Xilinx MPMC SDMA subsystem

2010-03-17 Thread Sergey Temerkhanov
This patch adds generic support for Xilinx MPMC SoftDMA channels which are used by, e.g., LLTEMAC and other IP cores (including custom cores). So, the implemented functions include only SDMA channels enumeration and control (finding device by phandle property, channel reset, initialization of

Re: Problem with PCI bus rescan on 460EX

2010-03-17 Thread Benjamin Herrenschmidt
This is Jesse tree with the default Canyonlands defconfig ? Hrm... I'll have to take a look, somebody mucking with PCI resource allocation is very likely to break something :-) Yep, default Canyonlands defconfig and default DTS. Which branch of Jesse tree btw ? master ?

[PATCH] powerpc/of: Fix comparison of compatible properties

2010-03-17 Thread Benjamin Herrenschmidt
Commit 7c7b60cb87547b1664a4385c187f029bf514a737 of: put default string compare and #a/s-cell values into common header Breaks various things on powerpc due to using strncasecmp instead of strcasecmp for comparing against compatible strings. This causes things like the 4xx PCI code to fail

Re: Problem with PCI bus rescan on 460EX

2010-03-17 Thread Benjamin Herrenschmidt
This is Jesse tree with the default Canyonlands defconfig ? Hrm... I'll have to take a look, somebody mucking with PCI resource allocation is very likely to break something :-) Yep, default Canyonlands defconfig and default DTS. Ok so Jesse is innocent :-) See the patch I just

Re: [PATCH] powerpc/of: Fix comparison of compatible properties

2010-03-17 Thread Grant Likely
On Wed, Mar 17, 2010 at 6:09 PM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: Commit 7c7b60cb87547b1664a4385c187f029bf514a737 of: put default string compare and #a/s-cell values into common header Breaks various things on powerpc due to using strncasecmp instead of strcasecmp for

Re: [PATCH] [V2] Add non-Virtex5 support for LL TEMAC driver

2010-03-17 Thread Edgar E. Iglesias
On Mon, Mar 15, 2010 at 03:39:49PM +0100, Michal Simek wrote: John Linn wrote: -Original Message- From: Michal Simek [mailto:michal.si...@petalogix.com] Sent: Monday, March 15, 2010 2:40 AM To: John Linn Cc: net...@vger.kernel.org; linuxppc-...@ozlabs.org;

[PATCH v2] powerpc/perf_events: Implement perf_arch_fetch_caller_regs

2010-03-17 Thread Paul Mackerras
This implements a powerpc version of perf_arch_fetch_caller_regs. It's implemented in assembly because that way we can be sure there isn't a stack frame for perf_arch_fetch_caller_regs. If it was in C, gcc might or might not create a stack frame for it, which would affect the number of levels we