[PATCH 5/5] perf: Create a sysfs entry for Power event format

2012-12-18 Thread Sukadev Bhattiprolu
Create a sysfs entry, '/sys/bus/event_source/devices/cpu/format/event' which describes the format of a POWER cpu. The format of the event is the same for all POWER cpus at least in (Power6, Power7), so bulk of this change is common in the code common to POWER cpus. This code is based on correspo

[PATCH 4/5] perf/POWER7: Make some POWER7 events available in sysfs

2012-12-18 Thread Sukadev Bhattiprolu
Make some POWER7-specific perf events available in sysfs. $ /bin/ls -1 /sys/bus/event_source/devices/cpu/events/ branch-instructions branch-misses cache-misses cache-references cpu-cycles instructions PM_BRU_FIN PM_BRU_MPRED

[PATCH 3/5] perf/POWER7: Make generic event translations available in sysfs

2012-12-18 Thread Sukadev Bhattiprolu
[PATCH 3/5] perf/POWER7: Make generic event translations available in sysfs Make the generic perf events in POWER7 available via sysfs. $ ls /sys/bus/event_source/devices/cpu/events branch-instructions branch-misses cache-misses cache-references cp

[PATCH 2/5] perf: Make EVENT_ATTR and EVENT_PTR global

2012-12-18 Thread Sukadev Bhattiprolu
Rename EVENT_ATTR() and EVENT_PTR() PMU_EVENT_ATTR() and PMU_EVENT_PTR(). Make them global so they are available to all architectures. Further to allow architectures flexibility, have PMU_EVENT_PTR() pass in the variable name as a parameter. Signed-off-by: Sukadev Bhattiprolu --- arch/x86/kern

[PATCH 1/5] perf/Power7: Use macros to identify perf events

2012-12-18 Thread Sukadev Bhattiprolu
Define and use macros to identify perf events codes This would make it easier and more readable when these event codes need to be used in more than one place. Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/perf/power7-pmu.c | 28 1 files changed, 20 insertion

[PATCH] powerpc: Add support for context switching the TAR register

2012-12-18 Thread Ian Munsie
From: Ian Munsie This patch adds support for enabling and context switching the Target Address Register in Power8. The TAR is a new special purpose register that can be used for computed branches with the bctar[l] (branch conditional to TAR) instruction in the same manner as the count and link re

Re: [PATCH 1/3] powerpc/book3e: load critical/machine/debug exception stack

2012-12-18 Thread Tabi Timur-B04825
On Thu, Oct 25, 2012 at 1:43 AM, Tiejun Chen wrote: > We always alloc critical/machine/debug check exceptions. This is > different from the normal exception. So we should load these exception > stack properly like we did for booke. Tiejun, I'm a little confused by these patches, because the actu

Re: [git pull] Please pull powerpc.git next branch

2012-12-18 Thread Linus Torvalds
On Mon, Dec 17, 2012 at 3:31 PM, Benjamin Herrenschmidt wrote: > On Sat, 2012-12-15 at 07:44 +1100, Benjamin Herrenschmidt wrote: >> Hi Linus ! >> >> Finally managed to get my head away from some other distractions >> to put this pull request together, sorry for the lateness :-) >> >> The main hig

Re: [PATCH] powerpc: POWER7 optimised memcpy using VMX and enhanced prefetch

2012-12-18 Thread Peter Bergner
On Tue, 2012-12-18 at 07:28 -0600, Jimi Xenidis wrote: > On Dec 17, 2012, at 6:26 PM, Peter Bergner wrote: > > Jimi, are you using an "old" binutils from before my patch that > > changed the operand order for these types of instructions? > > > >http://sourceware.org/ml/binutils/2009-02/msg000

RE: [PATCH] powerpc: POWER7 optimised memcpy using VMX and enhanced prefetch

2012-12-18 Thread David Laight
> >>dcbtr0,r8,0b01010 /* GO */ > >> .machine pop > > > > Jimi, are you using an "old" binutils from before my patch that > > changed the operand order for these types of instructions? > > > >http://sourceware.org/ml/binutils/2009-02/msg00044.html > > Actually, this confused me as

Re: [PATCH] powerpc: POWER7 optimised memcpy using VMX and enhanced prefetch

2012-12-18 Thread Jimi Xenidis
On Dec 17, 2012, at 6:26 PM, Peter Bergner wrote: > On Mon, 2012-12-17 at 22:33 +1100, Anton Blanchard wrote: >> Hi Jimi, >> >>> I know this is a little late, but shouldn't these power7 specific >>> thingies be in "obj-$(CONFIG_PPC_BOOK3S_64)". The reason I ask is >>> that my compiler pukes on

Re: [PATCH] powerpc: POWER7 optimised memcpy using VMX and enhanced prefetch

2012-12-18 Thread Jimi Xenidis
On Dec 17, 2012, at 5:33 AM, Anton Blanchard wrote: > > Hi Jimi, > >> I know this is a little late, but shouldn't these power7 specific >> thingies be in "obj-$(CONFIG_PPC_BOOK3S_64)". The reason I ask is >> that my compiler pukes on "dcbtst" and as I deal with that I wanted >> to point this o

Re: [PATCH]powerpc: Corrected include header path in kvm_para.h

2012-12-18 Thread Alexander Graf
On 18.12.2012, at 12:21, Bharat Bhushan wrote: > The include/uapi/asm/kvm_para.h includes > but the correct reference > should be as this is the place > where make install_header installs the header files for > userspace. > > Signed-off-by: Bharat Bhushan Thanks, applied to kvm-ppc-next (wit

[PATCH]powerpc: Corrected include header path in kvm_para.h

2012-12-18 Thread Bharat Bhushan
The include/uapi/asm/kvm_para.h includes but the correct reference should be as this is the place where make install_header installs the header files for userspace. Signed-off-by: Bharat Bhushan --- arch/powerpc/include/uapi/asm/kvm_para.h |2 +- 1 files changed, 1 insertions(+), 1 deletio

Re: tqm5200s phy link toggles between up and down

2012-12-18 Thread Johannes Braun
>> This is not really a new kernel. Yes this is right. But it is the first Kernel which supports our wireless card without problems. >> Is it a PHY or a switch? If is a switch you need to configure a fixed >> link to the switch. This can be done via dts file. According to the marvell website it

Re: tqm5200s phy link toggles between up and down

2012-12-18 Thread Wolfgang Grandegger
On 12/18/2012 10:44 AM, Johannes Braun wrote: > Hello, > > I hope someone could help me with my problem. Currently I am porting > a new kernel (3.3.8) for a tqm5200s based board. This is not really a new kernel. > The previous kernel was 2.6.23. The new kernel version is needed because > of supp

Re: tqm5200s phy link toggles between up and down

2012-12-18 Thread Wolfgang Grandegger
On 12/18/2012 10:57 AM, Wolfgang Grandegger wrote: > On 12/18/2012 10:44 AM, Johannes Braun wrote: >> Hello, >> >> I hope someone could help me with my problem. Currently I am porting >> a new kernel (3.3.8) for a tqm5200s based board. > > This is not really a new kernel. > >> The previous kernel

tqm5200s phy link toggles between up and down

2012-12-18 Thread Johannes Braun
Hello, I hope someone could help me with my problem. Currently I am porting a new kernel (3.3.8) for a tqm5200s based board. The previous kernel was 2.6.23. The new kernel version is needed because of support for a wireless card. The new kernel has problems with my ethernet PHY. The problem occur