Re: [patch 1/3] powerpc: Move 64bit VDSO to improve context switch performance

2009-07-14 Thread Benjamin Herrenschmidt
On Tue, 2009-07-14 at 16:53 +1000, Anton Blanchard wrote: plain text document attachment (move_vdso_v2) On 64bit applications the VDSO is the only thing in segment 0. Since the VDSO is position independent we can remove the hint and let get_unmapped_area pick an area. This will mean the vdso

[patch 0/3] PowerPC context switch optimisations

2009-07-14 Thread Anton Blanchard
Here are a few optimisations that improve context switch performance. -- ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[patch 3/3] powerpc: Preload application text segment instead of TASK_UNMAPPED_BASE

2009-07-14 Thread Anton Blanchard
TASK_UNMAPPED_BASE is not used with the new top down mmap layout. We can reuse this preload slot by loading in the segment at 0x1000, where almost all PowerPC binaries are linked at. On a microbenchmark that bounces a token between two 64bit processes over pipes and calls gettimeofday each

Re: [patch 3/3] powerpc: Preload application text segment instead of TASK_UNMAPPED_BASE

2009-07-14 Thread Benjamin Herrenschmidt
On Tue, 2009-07-14 at 16:53 +1000, Anton Blanchard wrote: plain text document attachment (preload_0x1000) TASK_UNMAPPED_BASE is not used with the new top down mmap layout. We can reuse this preload slot by loading in the segment at 0x1000, where almost all PowerPC binaries are linked

Re: [patch 3/3] powerpc: Preload application text segment instead of TASK_UNMAPPED_BASE

2009-07-14 Thread Anton Blanchard
Hi Ben, Any chance you can put that little test program online somewhere ? Sure, it's here: http://ozlabs.org/~anton/junkcode/context_switch.c Anton ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org

Re: [patch 1/3] powerpc: Move 64bit VDSO to improve context switch performance

2009-07-14 Thread Anton Blanchard
Hi Ben, Don't we lose randomization ? Or do we randomize the whole mem map nowadays ? The start of the top down mmap region is randomized, so the VDSO will be in a different position each time. A quick example: run 1: fffb01f6000-fffb01f9000 r-xp 00:00 0 [vdso]

Re: [PATCH] powerpc/85xx: Don't scan for TBI PHY addresses on MPC8569E-MDS boards

2009-07-14 Thread Anton Vorontsov
On Wed, Jul 01, 2009 at 09:39:25PM +0400, Anton Vorontsov wrote: Sometimes (e.g. when there are no UEMs attached to a board) fsl_pq_mdio_find_free() fails to find a spare address for a TBI PHY, this is because get_phy_id() returns bogus 0x values (0x is expected), and therefore

Re: [PATCH] powerpc/85xx: Fix ethernet link detection on MPC8569E-MDS boards

2009-07-14 Thread Anton Vorontsov
On Wed, Jun 24, 2009 at 08:30:28PM +0400, Anton Vorontsov wrote: Linux isn't able to detect link changes on ethernet ports that were used by U-Boot. This is because U-Boot wrongly clears interrupt polarity bit (INTPOL, 0x400) in the extended status register (EXT_SR, 0x1b) of Marvell PHYs.

[PATCH v2] fs_enet/mii-fec.c: fix MII speed calculation

2009-07-14 Thread Wolfgang Denk
The MII speed calculation was based on the CPU clock (ppc_proc_freq), but for MPC512x we must use the bus clock instead. This patch makes it use the correct clock and makes sure we don't clobber reserved bits in the MII_SPEED register. Signed-off-by: Wolfgang Denk w...@denx.de Cc: Grant Likely

Re: [PATCH RFC 1/2] Makefile: Never use -fno-omit-frame-pointer

2009-07-14 Thread Segher Boessenkool
[Sorry for not replying earlier, somehow I missed this mail] On the other hand, *using* -fno-omit-frame-pointer causes gcc to produce buggy code on PowerPC targets. It doesn't cause the problem, it only exposes it. And, of course, only on certain GCC versions. Segher, do you know if all

Support for PCI Express reset type in EEH

2009-07-14 Thread Mike Mason
By default, EEH does what's known as a hot reset during error recovery of a PCI Express device. We've found a case where the device needs a fundamental reset to recover properly. The current PCI error recovery and EEH frameworks do not support this distinction. The attached patch (courtesy

proper way to reserve a chunk of memory at the top of the kernel?

2009-07-14 Thread Chris Friesen
I have a powerpc board with 512BM of memory. The BIOS has a chunk of memory at the top end of physical memory which it does not zero out over a reboot. What's the proper way to tell linux that this chunk of physical memory should be ignored (so that we can access it later without worrying that

Ang: Re: [PATCH 0/2] Setting GPIOs simultaneously

2009-07-14 Thread Joakim Tjernlund
-Anton Vorontsov avoront...@ru.mvista.com skrev: - Till: Joakim Tjernlund joakim.tjernl...@transmode.se Från: Anton Vorontsov avoront...@ru.mvista.com Datum: 07/14/2009 00:20 Kopia: David Brownell dbrown...@users.sourceforge.net, linux-ker...@vger.kernel.org, linuxppc-...@ozlabs.org

Re: Ang: Re: [PATCH 0/2] Setting GPIOs simultaneously

2009-07-14 Thread Anton Vorontsov
On Tue, Jul 14, 2009 at 11:20:13PM +0200, Joakim Tjernlund wrote: [...] But any users of the legacy bindings should be in-tree. ehh, it was working until you made it OF only. Why do call the native way legacy? It is the method all non OF arch uses. It's legacy because there are no in-tree

Re: [FTRACE] Enabling function_graph causes OOPS

2009-07-14 Thread Steven Rostedt
On Tue, 14 Jul 2009, Sachin Sant wrote: While enabling function_graph tracer on a Power6 box, machine crashed with following trace. Kernel version is 2.6.31-rc3. Thanks, I've seen issues with my PPC box and function graph, but the bugs were also caused by other changes. I'll boot up my PPC64

riscwatch shows up core status UNKNOWN for 970mp ppc processor

2009-07-14 Thread anil kumar
Hello I am newbie to RISCWatch and debugging using JTAG interface .I want to debug Linux Kernel on target board using jtag interface provided on board. To debug 970MP dual core ppc processor on traget board, I installed RISCWatch software on my window host. My Setup: -- Host --(over