Re: register long sp asm("r1") incorrect

2010-02-14 Thread Pavel Machek
> On Tue, 2010-02-09 at 16:24 +0100, Pavel Machek wrote: > > ...according to gcc docs, sp should be global, or placement in > > register is not guaranteed (except at asm boundaries, but there are > > none). > > Sorry I'm not sure I grok what you mean. Well, according to gcc doscs and my experienc

[Patch 1/1] PPC64-HWBKPT: Implement hw-breakpoints for PPC64

2010-02-14 Thread K.Prasad
Implement perf-events based hw-breakpoint interfaces for PPC64 processors. These interfaces help arbitrate requests from various users and schedules them as appropriate. Signed-off-by: K.Prasad --- arch/powerpc/Kconfig |1 arch/powerpc/include/asm/hw_breakpoint.h | 55

[Patch 0/1] PPC64-HWBKPT: Hardware Breakpoint interfaces - ver XIII

2010-02-14 Thread K.Prasad
Hi Ben, Please find the version XIII of the patch that ports the hw-breakpoint interfaces (in kernel/hw_breakpoint.c) to PPC64. A new patchset is necessitated due to a bug triggered by user-space breakpoint requests. This patch should not conflict with work done to enable debug register us

Re: [PATCH] powerpc: Don't clear larx reservation on system call exit

2010-02-14 Thread Benjamin Herrenschmidt
On Mon, 2010-02-15 at 15:06 +1100, Anton Blanchard wrote: > > Yeah that was my primary concern. Right now these things fail 100%, so > no one is relying on it. The worry is if people start writing their own > crazy low level system call + locking stubs that might work most of the > time (if we rem

Re: [PATCH] powerpc: Don't clear larx reservation on system call exit

2010-02-14 Thread Anton Blanchard
Hi Ben, > Well, the main issue here is leaking kernel reservations into userspace, > and thus the question of whether it is a big deal or not. There's also > an issue I can see with signals. > > The risk with kernel reservations leaking into userspace is a problem on > some processors that do n

Re: [PATCH] powerpc: Don't clear larx reservation on system call exit

2010-02-14 Thread Benjamin Herrenschmidt
On Mon, 2010-02-15 at 12:40 +1100, Anton Blanchard wrote: > Right now we clear the larx reservation on every system call exit. No code > should exist that tries to make use of larx/stcx across a system call (because > it would fail 100% of the time). > > We could continue to play it safe but syste

[PATCH] powerpc: Don't clear larx reservation on system call exit

2010-02-14 Thread Anton Blanchard
Right now we clear the larx reservation on every system call exit. No code should exist that tries to make use of larx/stcx across a system call (because it would fail 100% of the time). We could continue to play it safe but system call latency affects so many workloads. In the past we have alrea

Re: [PATCH 8/9] of/sparc: Remove sparc-local declaration of allnodes and devtree_lock

2010-02-14 Thread David Miller
From: Grant Likely Date: Sat, 13 Feb 2010 09:03:09 -0700 > Both allnodes and devtree_lock are defined in common code. The > extern declaration should be in the common header too so that the > compiler can type check. allnodes is already in of.h, but > devtree_lock should be declared there too.

Re: [PATCH 4/9] of/flattree: Don't assume HAVE_LMB

2010-02-14 Thread Grant Likely
On Sun, Feb 14, 2010 at 7:00 AM, Michal Simek wrote: > Grant Likely wrote: >> >> From: Jeremy Kerr >> >> We don't always have lmb available, so make arches provide an >> early_init_dt_alloc_memory_arch() to handle the allocation of >> memory in the fdt code. >> >> When we don't have lmb.h include

Re: [PATCH 0/9] Random OF cleanups and merges

2010-02-14 Thread Michal Simek
Grant Likely wrote: Here's another batch of cleanup patches from my test-devicetree branch. A number of cleanups, corrections and minor merges of common code. Also a patch from Jeremy to make the flat tree work on architectures without LMB (arm). Once I've collected acks on these, I'll move them

Re: [PATCH 3/9] of: protect linux/of.h with CONFIG_OF

2010-02-14 Thread Grant Likely
On Sat, Feb 13, 2010 at 11:10 PM, Benjamin Herrenschmidt wrote: > On Sat, 2010-02-13 at 09:02 -0700, Grant Likely wrote: >> From: Jeremy Kerr >> >> For platforms that have CONFIG_OF optional, we need to make the contents >> of linux/of.h conditional on CONFIG_OF. >> >> Signed-off-by: Jeremy Kerr

Re: [PATCH 4/9] of/flattree: Don't assume HAVE_LMB

2010-02-14 Thread Michal Simek
Grant Likely wrote: From: Jeremy Kerr We don't always have lmb available, so make arches provide an early_init_dt_alloc_memory_arch() to handle the allocation of memory in the fdt code. When we don't have lmb.h included, we need asm/page.h for __va. Signed-off-by: Jeremy Kerr Signed-off-by:

Re: [PATCHv4 2/2] powerpc: implement arch_scale_smt_power for Power7

2010-02-14 Thread Peter Zijlstra
On Fri, 2010-02-05 at 14:57 -0600, Joel Schopp wrote: > On Power7 processors running in SMT4 mode with 2, 3, or 4 idle threads > there is performance benefit to idling the higher numbered threads in > the core. > > This patch implements arch_scale_smt_power to dynamically update smt > thread po