Re: cross-compiling Linux for PowerPC e200 core?

2010-03-08 Thread Grant Likely
2010/3/9 Németh Márton : > Hi, > Grant Likely wrote: >> 2010/3/8 Németh Márton : >>> Grant Likely wrote: 2010/3/6 Németh Márton : > Hi, > > I'm trying to cross-compile Linux 2.6.33 for Freescale MPC5554 [1][2]. > This > microcontroller is based on the e200z6 core. I could

Re: cross-compiling Linux for PowerPC e200 core?

2010-03-08 Thread Németh Márton
Hi, Grant Likely wrote: > 2010/3/8 Németh Márton : >> Grant Likely wrote: >>> 2010/3/6 Németh Márton : Hi, I'm trying to cross-compile Linux 2.6.33 for Freescale MPC5554 [1][2]. This microcontroller is based on the e200z6 core. I could build the cross-development tool

Re: [PATCH 0/4] 8xx: Optimize TLB Miss code.

2010-03-08 Thread Wolfgang Denk
Dear Joakim Tjernlund, In message you wrote: > > > I use NFS. > > Then I think it is possible NFS gets in the way for stable measurements. > Anyone > have experience with running lmbench on NFS? NFS may have some influence here, but I doubt it is the primary cause for these variations. The n

[git pull] Please pull powerpc.git merge branch

2010-03-08 Thread Benjamin Herrenschmidt
Hi Linus ! Ideally this should have reached you earlier last week but I was bogged down in meetings and then away on an extended week-end. It's mostly a few bug fixes, some trivial raw spinlock conversions, and a couple of "features" that I didn't have in my previous merge request for all the wro

Re: BUG: Bad page map in process mm2

2010-03-08 Thread Jake Magee
Steven, Try these patches... http://patchwork.ozlabs.org/patch/34047/ http://patchwork.ozlabs.org/patch/34113/ Both patches work for my situation, but I went with the second set as a final patch(34113). On Mon, Mar 8, 2010 at 3:32 PM, Steven A. Falco wrote: > Steven A. Falco wrote: > > Apolog

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

2010-03-08 Thread K.Prasad
On Fri, Feb 26, 2010 at 02:58:12AM +0100, Frederic Weisbecker wrote: > On Mon, Feb 22, 2010 at 06:47:46PM +0530, K.Prasad wrote: > > The 'name' field here is actually a legacy inherited from x86 code. It > > is part of x86's arch-specific hw-breakpoint structure since: > > - inspired by the kprobe

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

2010-03-08 Thread David Gibson
On Fri, Feb 26, 2010 at 02:58:12AM +0100, Frederic Weisbecker wrote: > On Mon, Feb 22, 2010 at 06:47:46PM +0530, K.Prasad wrote: [snip] > > > Oh, why does ptrace use a one-shot behaviour in ppc? Breakpoints > > > only trigger once? > > > > > > > Yes, ptrace breakpoints on PPC64 are designed to tr

[patch] powerpc: pika_wdt ident cannot be const

2010-03-08 Thread Sean MacLennan
The watchdog_info struct cannot be a const since we dynamically fill in the firmware version. Signed-off-by: Sean MacLennan --- diff --git a/drivers/watchdog/pika_wdt.c b/drivers/watchdog/pika_wdt.c index 435ec2a..2d22e99 100644 --- a/drivers/watchdog/pika_wdt.c +++ b/drivers/watchdog/pika_wdt.c

[PATCH v2 6/7] RapidIO: Add enabling SRIO port RX and TX

2010-03-08 Thread Alexandre Bounine
From: Thomas Moll Add the functionality to enable Input receiver and Output transmitter of every port, to allow non-maintenance traffic. Signed-off-by: Thomas Moll --- drivers/rapidio/Kconfig| 11 ++ drivers/rapidio/rio-scan.c | 79 - i

[PATCH v2 5/7] powerpc/85xx: Add MChk handler for SRIO port

2010-03-08 Thread Alexandre Bounine
From: Alexandre Bounine Add Machine Check exception handling into RapidIO port driver for Freescale SoCs (MPC85xx). Signed-off-by: Alexandre Bounine Tested-by: Thomas Moll --- fsl_rio.c | 74 ++ 1 files changed, 70 insertions(+),

[PATCH v2 4/7] powerpc/85xx: Add Port-Write message handler for SRIO port

2010-03-08 Thread Alexandre Bounine
From: Alexandre Bounine Add RapidIO Port-Write message handler for Freescale SoCs with RapidIO port. Signed-off-by: Alexandre Bounine Tested-by: Thomas Moll --- fsl_rio.c | 263 +- 1 files changed, 260 insertions(+), 3 deletions(-

[PATCH v2 1/7] RapidIO: Add IDT CPS/TSI switches

2010-03-08 Thread Alexandre Bounine
From: Alexandre Bounine Extentions to RapidIO switch support: 1. modify switch route operation declarations to allow using single switch-specific file for family of switches that share the same route table operations. 2. add standard route table operations for switches that that support

[PATCH v2 2/7] RapidIO: Add switch locking during discovery

2010-03-08 Thread Alexandre Bounine
From: Alexandre Bounine Add switch access locking during RapidIO discovery. Access lock is required when reading switch routing table contents due to indexed mechanism of RT addressing. Signed-off-by: Alexandre Bounine Tested-by: Thomas Moll --- rio-scan.c | 163 +++

[PATCH v2 3/7] RapidIO: Add Port-Write handling for EM

2010-03-08 Thread Alexandre Bounine
From: Alexandre Bounine Add RapidIO Port-Write message handling in the context of Error Management Extensions Specification Rev.1.3. Signed-off-by: Alexandre Bounine Tested-by: Thomas Moll --- arch/powerpc/sysdev/fsl_rio.c |2 drivers/rapidio/rio-scan.c| 166 ++

Re: BUG: Bad page map in process mm2

2010-03-08 Thread Steven A. Falco
Steven A. Falco wrote: Apologies - previous crash dump was mangled by the interspersed program output. Here is one showing just the crash dump. Interestingly, the program does produce correct output, as verified by dd'ing from /dev/mem to a file, then doing "od" on the result. So in some sense,

BUG: Bad page map in process mm2

2010-03-08 Thread Steven A. Falco
I've written a simple program to mmap /dev/mem (attached). It just displays a little physical memory beginning at address 0. I wrote this as a test case - I'm trying to debug a user-space driver, but I wanted to post the simplest example that illustrates the problem. This program runs properly on

Re: cross-compiling Linux for PowerPC e200 core?

2010-03-08 Thread Segher Boessenkool
>>> Assembler messages: >>> Error: invalid switch -me200 >>> Error: unrecognized option -me200 >> >> No version of mainline binutils supports this. >> >> This kernel code was added in 2005, in 33d9e9b, by FSL; perhaps >> they have a fork of binutils that supports it, maybe they forgot >> to submit

Re: [RFC] powerpc: add support for new hcall H_BEST_ENERGY

2010-03-08 Thread Dipankar Sarma
On Mon, Mar 08, 2010 at 12:20:06PM +0530, Vaidyanathan Srinivasan wrote: > * Dipankar Sarma [2010-03-06 00:48:11]: > > > Shouldn't we create this only for supported platforms ? > > Hi Dipankar, > > Yes we will need a check like > firmware_has_feature(FW_FEATURE_BEST_ENERGY) to avoid sysfs files

Re: cross-compiling Linux for PowerPC e200 core?

2010-03-08 Thread Grant Likely
2010/3/8 Németh Márton : > Grant Likely wrote: >> 2010/3/6 Németh Márton : >>> Hi, >>> >>> I'm trying to cross-compile Linux 2.6.33 for Freescale MPC5554 [1][2]. This >>> microcontroller is based on the e200z6 core. I could build the >>> cross-development >>> tools, but I could miss something beca

Re: cross-compiling Linux for PowerPC e200 core?

2010-03-08 Thread Németh Márton
Hi, Segher Boessenkool wrote: >> Assembler messages: >> Error: invalid switch -me200 >> Error: unrecognized option -me200 > > No version of mainline binutils supports this. > > This kernel code was added in 2005, in 33d9e9b, by FSL; perhaps > they have a fork of binutils that supports it, maybe t

Re: cross-compiling Linux for PowerPC e200 core?

2010-03-08 Thread Németh Márton
Grant Likely wrote: > 2010/3/6 Németh Márton : >> Hi, >> >> I'm trying to cross-compile Linux 2.6.33 for Freescale MPC5554 [1][2]. This >> microcontroller is based on the e200z6 core. I could build the >> cross-development >> tools, but I could miss something because I get an error message when >

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

2010-03-08 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 | 54

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

2010-03-08 Thread K.Prasad
Hi Ben, Please find the version XIV of the patch that ports the hw-breakpoint interfaces (in kernel/hw_breakpoint.c) to PPC64. The new patch includes the changes as listed below. Kindly include this patch as a part of powerpc -next tree to enable wider testing and to be eventually pushed u

Re: cross-compiling Linux for PowerPC e200 core?

2010-03-08 Thread Grant Likely
2010/3/6 Németh Márton : > Hi, > > I'm trying to cross-compile Linux 2.6.33 for Freescale MPC5554 [1][2]. This > microcontroller is based on the e200z6 core. I could build the > cross-development > tools, but I could miss something because I get an error message when building > Linux for PowerPC e

Re: cross-compiling Linux for PowerPC e200 core?

2010-03-08 Thread Segher Boessenkool
Assembler messages: Error: invalid switch -me200 Error: unrecognized option -me200 No version of mainline binutils supports this. This kernel code was added in 2005, in 33d9e9b, by FSL; perhaps they have a fork of binutils that supports it, maybe they forgot to submit the changes upstream? Se

Re: mpc512x uart: testers wanted

2010-03-08 Thread Grant Likely
On Mon, Mar 8, 2010 at 9:32 AM, Albrecht Dreß wrote: > Hi Anatolij: > >> > Anatolij, could you please look into this? >> >> I'll look into this tomorrow, need to finish USB support now. >> Unfortunately the patch doesn't apply on top of Linus' tree as >> patches for reworked MPC5121 PSC UART supp

Re: mpc512x uart: testers wanted

2010-03-08 Thread Albrecht Dre�
Hi Anatolij: > > Anatolij, could you please look into this? > > I'll look into this tomorrow, need to finish USB support now. > Unfortunately the patch doesn't apply on top of Linus' tree as > patches for reworked MPC5121 PSC UART support have been merged. > Albrecht, could you please rebase your

IRQ's missing with MPC5200 GPT as an interrupt controller

2010-03-08 Thread Henk Stegeman
I'm trying to make use of the GPT as interrupt controller. My driver is getting most, but not all of the interrupts, besides that I'm getting a whole bunch of spurious IRQs, so I'm trying to figure out what's wrong. gpt6: ti...@660 { compatible = "fsl

Re: mpc512x uart: testers wanted

2010-03-08 Thread Anatolij Gustschin
Hi Grant, Albrecht, On Sun, 7 Mar 2010 17:45:23 -0700 Grant Likely wrote: > Anatolij, could you please look into this? I'll look into this tomorrow, need to finish USB support now. Unfortunately the patch doesn't apply on top of Linus' tree as patches for reworked MPC5121 PSC UART support have

Re: [PowerPC] 2.6.33-git11 : Badness at kernel/kprobes.c:264

2010-03-08 Thread Masami Hiramatsu
Ananth N Mavinakayanahalli wrote: > On Mon, Mar 08, 2010 at 11:11:52AM +0100, Heiko Carstens wrote: >> On Sat, Mar 06, 2010 at 01:40:46PM +0530, Sachin Sant wrote: >>> With latest 33 git(2.6.33-git11 : 64096c1741...) on a POWER6 box >>> >>> type=2000 audit(1267853400.180:1): initialized >>> Kprob

Re: [PowerPC] 2.6.33-git11 : Badness at kernel/kprobes.c:264

2010-03-08 Thread Sachin Sant
Ananth N Mavinakayanahalli wrote: 2.6.33-git10(64ba99267...) was OK. This WARN_ON was introduced by commit 4610ee1d36... kprobes: Introduce generic insn_slot framework FWIW, same on s390... This patch should fix it: When freeing the instruction slot, the arithmetic to calculate

Re: [PowerPC] 2.6.33-git11 : Badness at kernel/kprobes.c:264

2010-03-08 Thread Ananth N Mavinakayanahalli
On Mon, Mar 08, 2010 at 11:11:52AM +0100, Heiko Carstens wrote: > On Sat, Mar 06, 2010 at 01:40:46PM +0530, Sachin Sant wrote: > > With latest 33 git(2.6.33-git11 : 64096c1741...) on a POWER6 box > > > > type=2000 audit(1267853400.180:1): initialized > > Kprobe smoke test started > > [

Re: [PATCH 0/4] 8xx: Optimize TLB Miss code.

2010-03-08 Thread Joakim Tjernlund
Heiko Schocher wrote on 2010/03/08 10:06:39: > > Hello Joakim, > > Joakim Tjernlund wrote: > > Heiko Schocher wrote on 2010/03/08 08:46:29: > >> Hello Joakim, > >> > >> Joakim Tjernlund wrote: > >> [...] > >>> What would be interesting is to skip patch 3 and turn off > >>> MODULES add PIN_TLB and

Re: [PowerPC] 2.6.33-git11 : Badness at kernel/kprobes.c:264

2010-03-08 Thread Heiko Carstens
On Sat, Mar 06, 2010 at 01:40:46PM +0530, Sachin Sant wrote: > With latest 33 git(2.6.33-git11 : 64096c1741...) on a POWER6 box > > type=2000 audit(1267853400.180:1): initialized > Kprobe smoke test started > [ cut here ] > Badness at kernel/kprobes.c:264 > NIP: c06

Re: [PATCH 0/4] 8xx: Optimize TLB Miss code.

2010-03-08 Thread Heiko Schocher
Hello Joakim, Joakim Tjernlund wrote: > Heiko Schocher wrote on 2010/03/08 08:46:29: >> Hello Joakim, >> >> Joakim Tjernlund wrote: >> [...] >>> What would be interesting is to skip patch 3 and turn off >>> MODULES add PIN_TLB and compare that against your unpatched .33 but >>> with MODULES off a

Re: [PATCH 0/4] 8xx: Optimize TLB Miss code.

2010-03-08 Thread Joakim Tjernlund
Heiko Schocher wrote on 2010/03/08 08:46:29: > > Hello Joakim, > > Joakim Tjernlund wrote: > [...] > > What would be interesting is to skip patch 3 and turn off > > MODULES add PIN_TLB and compare that against your unpatched .33 but > > with MODULES off and PIN_TLB on > > run version > > 1-4