Re: [PATCH] powerpc/perf_counter: Add alignment-faults and emulation-faults sw events

2009-07-26 Thread Peter Zijlstra
On Mon, 2009-07-27 at 08:26 +0200, Peter Zijlstra wrote: > On Mon, 2009-07-27 at 11:47 +1000, Benjamin Herrenschmidt wrote: > > > Sounds good. > > > > BTW. The patch relies on some perctr changes I don't have in my tree > > (PERF_COUNT_SW_ALIGNMENT_FAULTS isn't defined for me) > > > > Ingo, how

Re: [PATCH] powerpc/perf_counter: Add alignment-faults and emulation-faults sw events

2009-07-26 Thread Peter Zijlstra
On Mon, 2009-07-27 at 11:47 +1000, Benjamin Herrenschmidt wrote: > Sounds good. > > BTW. The patch relies on some perctr changes I don't have in my tree > (PERF_COUNT_SW_ALIGNMENT_FAULTS isn't defined for me) > > Ingo, how do you want to handle that ? Should I wait til round 2 of the > merge win

Re: [PATCH] powerpc/perf_counter: Add alignment-faults and emulation-faults sw events

2009-07-26 Thread Benjamin Herrenschmidt
On Mon, 2009-07-27 at 11:51 +1000, Anton Blanchard wrote: > Hi Ben, > > > BTW. The patch relies on some perctr changes I don't have in my tree > > (PERF_COUNT_SW_ALIGNMENT_FAULTS isn't defined for me) > > > > Ingo, how do you want to handle that ? Should I wait til round 2 of the > > merge window

Re: [PATCH] powerpc: Add compat_sys_truncate

2009-07-26 Thread Benjamin Herrenschmidt
On Sun, 2009-07-26 at 22:23 -0400, Chase Douglas wrote: > On Jul 26, 2009, at 8:37 PM, Benjamin Herrenschmidt wrote: > > Unfortunately, your patch have been mangled by your mailer > > our your mail gateway in about every possible way (word > > wrapped, tabs and whitespace damaged etc...) > > Sorry

"test" branch update

2009-07-26 Thread Benjamin Herrenschmidt
Hi ! I've started collecting things for my -next branch. For now I put everything in -test, I'll move it over to -next in the upcoming couple of days if there's no major issue found. The current log if what I put in is: Anton Blanchard (3): powerpc: Move 64bit VDSO to improve context switc

Re: [PATCH] prom_init: evaluate mem kernel parameter for early allocation

2009-07-26 Thread Benjamin Herrenschmidt
On Fri, 2009-07-17 at 22:29 +0200, Benjamin Krill wrote: > Evaluate mem kernel parameter for early memory allocations. If mem is set > no allocation in the region above the given boundary is allowed. The current > code doesn't take care about this and allocate memory above the given mem > boundary.

Re: [PATCH] powerpc: Add compat_sys_truncate

2009-07-26 Thread Chase Douglas
On Jul 26, 2009, at 8:37 PM, Benjamin Herrenschmidt wrote: Unfortunately, your patch have been mangled by your mailer our your mail gateway in about every possible way (word wrapped, tabs and whitespace damaged etc...) Sorry about that! I made sure my mailer (OS X's Mail) sent it as plain tex

Re: [PATCH] powerpc/perf_counter: Add alignment-faults and emulation-faults sw events

2009-07-26 Thread Anton Blanchard
Hi Ben, > BTW. The patch relies on some perctr changes I don't have in my tree > (PERF_COUNT_SW_ALIGNMENT_FAULTS isn't defined for me) > > Ingo, how do you want to handle that ? Should I wait til round 2 of the > merge window before putting Anton's patch in or can I merge some of your > stuff in

Re: [PATCH] powerpc/perf_counter: Add alignment-faults and emulation-faults sw events

2009-07-26 Thread Benjamin Herrenschmidt
On Mon, 2009-07-06 at 22:18 +1000, Anton Blanchard wrote: > Hook up the alignment-faults and emulation-faults events for powerpc. > > Signed-off-by: Anton Blanchard > --- > > Lots of duplication between PPC_WARN_EMULATED() and perf_swcounter_event() > here. Maybe we need to create PPC_WARN_ALIGN

Re: [PATCH] powerpc: Add compat_sys_truncate

2009-07-26 Thread Benjamin Herrenschmidt
On Thu, 2009-07-23 at 11:12 -0400, Chase Douglas wrote: > The truncate syscall has a signed long parameter, so when using a 32- > bit userspace with a 64-bit kernel the argument is zero-extended > instead of sign-extended. Adding the compat_sys_truncate function > fixes the issue. > > This wa

[Patch 6/6] Adapt kexec and samples code to recognise PPC64 hardware breakpoint usage

2009-07-26 Thread K.Prasad
Modify kexec code to disable DABR registers before a reboot. Adapt the samples code to populate PPC64-arch specific fields. Signed-off-by: K.Prasad --- arch/powerpc/kernel/machine_kexec_64.c |3 +++ samples/hw_breakpoint/data_breakpoint.c |4 2 files changed, 7 insertions(+) Index

[Patch 5/6] Modify Data storage exception code to recognise DABR match first

2009-07-26 Thread K.Prasad
Modify Data storage exception code to first lookout for a DABR match before recognising a kprobe or xmon exception. Signed-off-by: K.Prasad --- arch/powerpc/mm/fault.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) Index: linux-2.6-tip.hbkpt/arch/powerpc/mm/fault.c =

[Patch 4/6] Modify process and processor handling code to recognise hardware debug registers

2009-07-26 Thread K.Prasad
Modify process handling code to recognise hardware debug registers during copy and flush operations. Introduce a new TIF_DEBUG task flag to indicate a process's use of debug register. Load the debug register values into a new CPU during initialisation. Signed-off-by: K.Prasad --- arch/powerpc/ke

[Patch 3/6] Modify ptrace code to use Hardware Breakpoint interfaces

2009-07-26 Thread K.Prasad
Modify the ptrace code to use the hardware breakpoint interfaces for user-space. Signed-off-by: K.Prasad --- arch/powerpc/kernel/ptrace.c | 43 +++ 1 file changed, 43 insertions(+) Index: linux-2.6-tip.hbkpt/arch/powerpc/kernel/ptrace.c

[Patch 2/6] Introduce PPC64 specific Hardware Breakpoint interfaces

2009-07-26 Thread K.Prasad
Introduce PPC64 implementation for the generic hardware breakpoint interfaces defined in kernel/hw_breakpoint.c. Enable the HAVE_HW_BREAKPOINT flag and the Makefile. Signed-off-by: K.Prasad --- arch/powerpc/Kconfig|1 arch/powerpc/kernel/Makefile|2 arch/powerpc

[Patch 1/6] Prepare the PowerPC platform for HW Breakpoint infrastructure

2009-07-26 Thread K.Prasad
Prepare the PowerPC code for HW Breakpoint infrastructure patches by including relevant constant definitions and function declarations. Signed-off-by: K.Prasad --- arch/powerpc/include/asm/hw_breakpoint.h | 59 +++ arch/powerpc/include/asm/processor.h |1 a

[Patch 0/6] [Patch 0/6] PPC64-HWBKPT: Hardware Breakpoint interfaces - ver VIII

2009-07-26 Thread K.Prasad
Hi David, I'm back with a new version of patches after a brief hiatus! After much deliberation about modifying the code to change the timing of signal delivery to user-space, it has been decided to retain the existing behaviour i.e. SIGTRAP delivered to user-space after execution of causat

Re:

2009-07-26 Thread Benjamin Herrenschmidt
On Thu, 2009-07-23 at 10:38 -0400, Solomon Peachy wrote: > This patch (against 2.6.30) adds support for the ESTeem 195E Hotfoot > SBC. We've been maintaining this out-of-tree for some time now for > older kernels, but recently I ported it to the new unified powerpc tree > with the intent of pushin

Question about head_fsl_booke.S

2009-07-26 Thread wilbur.chan
e500 , in head_fsl_booke.S We know,the first two steps are: 1) invalidate all entries except the entry we are in 2) setup a temp mapping and jump to it respectively: tlbwe bl 1f 1: mflr r9 rlwimi r7,r9,0,20,31 addi r7, r7,24 mtspr SP