[PATCH] powerpc/spufs: Initialize ctx->stats.tstamp correctly

2009-02-23 Thread Jeremy Kerr
From: Arnd Bergmann spuctx_switch_state() warns if ktime goes backwards, but it sometimes compares an uninitialized value, which showed that the data was unreliable when we actually saw the warning. Initialize it to the current time in order to get correct data. Signed-off-by: Arnd Bergmann Si

[PATCH/RFC] powerpc: avoid generating .eh_frame sections with gcc-4.4

2009-02-23 Thread Kyle McMartin
From: Kyle McMartin On ppc64 (at least) gcc-4.4 is defaulting to generating .eh_frame sections, which are, for the kernel, fairly pointless. Additionally, on ppc64 this generates a relocation format which the kernel module loader does not currently support (R_PPC64_REL32.) Alexandre Oliva verifi

Re: Crash (ext3 ) during 2.6.29-rc6 boot

2009-02-23 Thread Sachin P. Sant
Jan Kara wrote: Hmm, OK. But then I'm not sure how that can happen. Obviously, memcpy somehow got beyond end of the page referenced by bh->b_data. So it means that le16_to_cpu(entry->e_value_offs) + size > page_size. But ext3_xattr_find_entry() calls ext3_xattr_check_entry() which in particular

Interrupt sense value in device tree

2009-02-23 Thread Vijay Nikam
Hello, I created a device node for gpio-controller for evaluation board mpc83313erdb. I created the dtb and loaded on target. But in dts at interrupts = <74 0x2> I set sense as Edge (sense== 2: Edge, high-to-low change), when I load the driver module and checked the entry in /proc/interrupts it

[PATCH] powerpc/kconfig: Kill PPC_MULTIPLATFORM

2009-02-23 Thread Benjamin Herrenschmidt
CONFIG_PPC_MULTIPLATFORM is a remain of the pre-powerpc days and isn't really meaningful anymore. It was basically equivalent to PPC64 || 6xx. This removes it along with the following changes: - 32-bit platforms that relied on PPC32 && PPC_MULTIPLATFORM now rely on 6xx which is what they want

Interrupt sense value in device tree

2009-02-23 Thread Vijay Nikam
Hello, I created a device node for gpio-controller for evaluation board mpc83313erdb. I created the dtb and loaded on target. But in dts at interrupts = <74 0x2> I set sense as Edge (sense== 2: Edge, high-to-low change), when I load the driver module and checked the entry in /proc/interrupts it

RE: soc vs localbus for flash in device tree

2009-02-23 Thread Dushara Jayasinghe
> > Does the flash node HAVE to be within a localbus node or can it > reside within the soc node? I've been basing my work on mpc834x_mds.dts > > And hence haven't defined a localbus node. > > > > I'm also working on a custom board based on MPC8349EMDS, and have based > my dts off of mpc834x_mds.d

[PATCH] Remove unused asm-offsets entries for cpu_spec

2009-02-23 Thread Michael Ellerman
Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/asm-offsets.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/asm-offsets.c b/arch/powerpc/kernel/asm-offsets.c index 9937fe4..addac07 100644 --- a/arch/powerpc/kernel/asm-offsets.c +++ b/arch/

2.6.29-rc6-rt2 fails for powerpc

2009-02-23 Thread jeff angielski
1. Git clone of the latest 2.6.29-rc6. 2. Applied the 2.6.29-rc6-rt2 patch. 3. Copied XXX config from arch/powerpc/configs to .config 4. make -j2 ARCH=powerpc oldconfig 5. make -j2 ARCH=powerpc It fails with redefinition errors of the rwsem stuff from arch/powerpc/include/asm/rwsem.h and include

[PATCH] powerpc: Split the various pgtable-* headers based on MMU type

2009-02-23 Thread Benjamin Herrenschmidt
This patch moves the definition of the PTE format for each MMU type to separate files instead of all in one file. This improves overall maintainability and will make it easier to add new types. There are still some type-related ifdef's in the generic headers, we might remove them in the long run,

Re: soc vs localbus for flash in device tree

2009-02-23 Thread Grant Likely
On Mon, Feb 23, 2009 at 5:11 PM, Michael Bergandi wrote: >> >> I'm working on the kernel version Linux-2.6.29-rc5 with U-Boot >> 1.2.0-g88e21e7b-dirty. > > I recommend you use a more current version of U-Boot. That one is quite old. > >> Does the flash node HAVE to be within a localbus node or can

Re: soc vs localbus for flash in device tree

2009-02-23 Thread Michael Bergandi
> > > I'm working on the kernel version Linux-2.6.29-rc5 with U-Boot > 1.2.0-g88e21e7b-dirty. I recommend you use a more current version of U-Boot. That one is quite old. Does the flash node HAVE to be within a localbus node or can it reside > within the soc node? I've been basing my work on mp

Re: soc vs localbus for flash in device tree

2009-02-23 Thread Ira Snyder
On Tue, Feb 24, 2009 at 10:31:37AM +1100, Dushara Jayasinghe wrote: > Hi, > > I'm working on the kernel version Linux-2.6.29-rc5 with U-Boot > 1.2.0-g88e21e7b-dirty. > > Does the flash node HAVE to be within a localbus node or can it reside within > the soc node? I've been basing my work on mpc

soc vs localbus for flash in device tree

2009-02-23 Thread Dushara Jayasinghe
Hi, I'm working on the kernel version Linux-2.6.29-rc5 with U-Boot 1.2.0-g88e21e7b-dirty. Does the flash node HAVE to be within a localbus node or can it reside within the soc node? I've been basing my work on mpc834x_mds.dts And hence haven't defined a localbus node. BTW is there a way to sea

[PATCH v2] powerpc/fsl-booke: Add support for tlbilx instructions

2009-02-23 Thread Kumar Gala
The e500mc core supports the new tlbilx instructions that do core local invalidates and also provide us the ability to take down all TLB entries matching a given PID. Signed-off-by: Kumar Gala --- * Fixed BOOKE_PAGESZ_4K build error, we renamed to BOOK3E_PAGESZ_4K arch/powerpc/include/asm/mmu.h

Re: Newby trying to get Ethernet going on MPC83xx series device.

2009-02-23 Thread Michael Bergandi
Great. Glad you have it working. I actually did the very same thing not too long ago. Amazing how well things work, when you pass the right information :) On Mon, Feb 23, 2009 at 12:28 AM, Dushara Jayasinghe wrote: > > -Original Message- > > From: linuxppc-dev-bounces+dusharaj=optiscan

Re: 86xx: e600 and cputable.c

2009-02-23 Thread Kumar Gala
On Feb 23, 2009, at 10:48 AM, Régis Odeyé wrote: Hi, On our board based on 8641D, cat /proc/cpuinfo gives: -bash-3.2# cat /proc/cpuinfo processor : 0 cpu : 7448, altivec supported clock : 1000.00MHz revision: 0.2 (pvr 8004 0202) bogomips: 199.68

RE: ioremap fails for a device in PCI-E slot on AMCC katmai board

2009-02-23 Thread Shubhada Pugaonkar
Great...That works!!! Thank you so much. Shubhada -Original Message- From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] Sent: Friday, February 20, 2009 8:38 PM To: Shubhada Pugaonkar Cc: linuxppc-dev@ozlabs.org Subject: Re: ioremap fails for a device in PCI-E slot on AMCC kat

Re: Problem with decrementer interrupt

2009-02-23 Thread sumedh tirodkar
I have initialised to stack pointer(r1) properly...actually...i went thru the object dump...bt when i juz use bla the link register is not getting pushed on to the stack in the prolog of that function...so the stack is basically not coming into the picture... @IRQ originator, that doesn't seem

Re: Problem with decrementer interrupt

2009-02-23 Thread sjoy...@wanadoo.fr
Hi Sumedh, You may check the context in which your CPU in running the C code from interrupt context (ie stack pointer (r1), kernel locks disabling rescheduling etc..) and double check the IRQ originator (the decrementer) is acknowlegded somewhere your handler before enabling back interrupts, else

Re: Problem with decrementer interrupt

2009-02-23 Thread sumedh tirodkar
Alright...I am trying to develop a system of my own.. Consider that i am not using any linux kernel...I m writing some program right from scratch. The major steps that i have taken are... 1. Started with a assembly file... 2. Have relocated the interrupt handlers to there respective positi

86xx: e600 and cputable.c

2009-02-23 Thread Régis Odeyé
Hi, On our board based on 8641D, cat /proc/cpuinfo gives: -bash-3.2# cat /proc/cpuinfo processor : 0 cpu : 7448, altivec supported clock : 1000.00MHz revision: 0.2 (pvr 8004 0202) bogomips: 199.68 processor : 1 cpu : 7448, altivec

Re: Lock-up on PPC64

2009-02-23 Thread Geoff Levand
On 01/05/2009 07:46 AM, Arnd Bergmann wrote: > On Sunday 28 December 2008, malc wrote: >> Now to the Christmas cheer, i've tried v2.6.28 and couldn't help but >> notice that the problem is gone, bisecting v2.6.27 (which funnily i >> had to mark good) to v2.6.28 (which has to be marked bad) wasn't f

Please pull from 'next' branch

2009-02-23 Thread Kumar Gala
Please pull from 'next' branch of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc.git next to receive the following updates: arch/powerpc/include/asm/cputable.h |4 ++- arch/powerpc/include/asm/dbell.h | 43 ++ arch/powerpc/include/as

Re: [PATCH] powerpc: Add support for using doorbells for SMP IPI

2009-02-23 Thread Kumar Gala
On Feb 22, 2009, at 8:43 PM, Benjamin Herrenschmidt wrote: On Thu, 2009-02-12 at 17:54 -0600, Kumar Gala wrote: The e500mc supports the new msgsnd/doorbell mechanisms that were added in the Power ISA 2.05 architecture. We use the normal level doorbell for doing SMP IPIs at this point. A

Re: Crash (ext3 ) during 2.6.29-rc6 boot

2009-02-23 Thread Jan Kara
> Andrew Morton writes: > > > It looks like we died in ext3_xattr_block_get(): > > > > memcpy(buffer, bh->b_data + le16_to_cpu(entry->e_value_offs), > >size); > > > > Perhaps entry->e_value_offs is no good. I wonder if the filesystem is > > corrupted and this snu

Re: Problem with decrementer interrupt

2009-02-23 Thread Matt Gessner
On Mon, Feb 23, 2009 at 8:03 AM, sumedh tirodkar wrote: > I am using PowerPC 7447A...I am trying to port SA-RTL on PowerPC... What I said earlier was: You need to tell people what cpu you're using, what linux kernel, etc etc etc. Fine, we know the CPU. What kernel are you using? Is it ancient

Re: [rtc-linux] Re: [PATCH/RFC 0/5] Generic RTC class driver

2009-02-23 Thread Alessandro Zummo
On Mon, 23 Feb 2009 13:34:49 +0100 (CET) Geert Uytterhoeven wrote: > > Hello, > > > >my opinion on this kind of stuff is that I want to avoid the layering > > of implementations under the rtc subsystem. I'd rather prefer that each > > rtc device had its own driver. > > > > I've made

Re: Custom kernel driver for MPC8548

2009-02-23 Thread Kumar Gala
On Feb 23, 2009, at 3:23 AM, Pieter wrote: Hi all I recently ported my board to use the new U-boot 2009 and boot Linux 2.6.27. ( the previous Linux version was 2.6.19 which supported the ppc architecture) I am now at the stage where I need to port a custom platform driver. The driver use

Re: [PATCH 2/2] Make sure we copy all cpu_spec features except PMC related ones

2009-02-23 Thread Dave Kleikamp
On Mon, 2009-02-23 at 13:25 +1100, Michael Ellerman wrote: > When identify_cpu() is called a second time with a logical PVR, it > only copies a subset of the cpu_spec fields so as to avoid overwriting > the performance monitor fields that were initialized based on the > real PVR. > > However some

Re: [PATCH 1/2] Deindentify identify_cpu()

2009-02-23 Thread Dave Kleikamp
On Mon, 2009-02-23 at 13:25 +1100, Michael Ellerman wrote: > The for-loop body of identify_cpu() has gotten a little big, so move the > loop body logic into a separate function. No other changes. > > Signed-off-by: Michael Ellerman Looks good to me. Acked-by: Dave Kleikamp -- David Kleikamp

Re: Problem with decrementer interrupt

2009-02-23 Thread sumedh tirodkar
I am using PowerPC 7447A...I am trying to port SA-RTL on PowerPC... I am using bla from the assembly code to call the function in C file...This i am doing from interrupt handler of the decrementer... If any more details are required, please let me know... Regards, Sumedh On Mon, Feb 23, 2009 a

Re: [rtc-linux] [PATCH/RFC 0/5] Generic RTC class driver

2009-02-23 Thread Geert Uytterhoeven
On Fri, 20 Feb 2009, Alessandro Zummo wrote: > On Fri, 20 Feb 2009 16:46:44 +0100 > Geert Uytterhoeven wrote: > > Fortunately there already exists a generic RTC class driver: "rtc-parisc". > > Despite it's name, it's platform-independent, as it's build on top of the > > RTC > > abstraction used b

Regarding Level/Edge of Interrupt sense values

2009-02-23 Thread Vijay Nikam
Hello, I created a device node for gpio-controller for evaluation board mpc83313erdb. I created the dtb and loaded on target and the interrupt is generated successfully. But in dts at interrupts = <74 0x2> I set sense as Edge (sense== 2: Edge, high-to-low change), when I load the driver module a

Re: Crash (ext3 ) during 2.6.29-rc6 boot

2009-02-23 Thread Sachin P. Sant
Paul Mackerras wrote: It appears to have faulted on a load, implicating the source. The address being referenced (0xc0003f38) doesn't look outlandish. I wonder if this kernel has CONFIG_DEBUG_PAGEALLOC turned on, and what page size is selected? Yes CONFIG_DEBUG_PAGEALLOC is enabled and

Re: Crash (ext3 ) during 2.6.29-rc6 boot

2009-02-23 Thread Sachin P. Sant
Andrew Morton wrote: hm, I wonder what could have caused that - we haven't altered fs/ext3/xattr.c in ages. What is the most recent kernel version you know of which didn't do this? Bear in mind that this crash might be triggered by the current contents of the filesystem, so if possible, please

Re: PCI reading without endian conversion

2009-02-23 Thread Geert Uytterhoeven
On Fri, 20 Feb 2009, Ira Snyder wrote: > On Fri, Feb 20, 2009 at 03:56:39PM -0600, Matt Sealey wrote: > > Am I correct in saying that cpu_to_le32 and le32_to_cpu are the > > functions/macros I need to use to do byte swapping to make everything > > go little endian (and back again when I read them b

Re: Crash (ext3 ) during 2.6.29-rc6 boot

2009-02-23 Thread Paul Mackerras
Andrew Morton writes: > It looks like we died in ext3_xattr_block_get(): > > memcpy(buffer, bh->b_data + le16_to_cpu(entry->e_value_offs), > size); > > Perhaps entry->e_value_offs is no good. I wonder if the filesystem is > corrupted and this snuck through the

Re: Crash (ext3 ) during 2.6.29-rc6 boot

2009-02-23 Thread Andrew Morton
On Mon, 23 Feb 2009 15:16:05 +0530 "Sachin P. Sant" wrote: > 2.6.29-rc6 bootup on a powerpc box failed with > > Unable to handle kernel paging request for data at address 0xc0003f38 > Faulting instruction address: 0xc0039574 > cpu 0x1: Vector: 300 (Data Access) at [c0003baf30

Custom kernel driver for MPC8548

2009-02-23 Thread Pieter
Hi all I recently ported my board to use the new U-boot 2009 and boot Linux 2.6.27. ( the previous Linux version was 2.6.19 which supported the ppc architecture) I am now at the stage where I need to port a custom platform driver. The driver used files that resided in /include/asm-ppc/. which are

[Powerpc / eHEA] Circular dependency with 2.6.29-rc6

2009-02-23 Thread Sachin P. Sant
While booting 2.6.29-rc6 on a powerpc box came across this circular dependency with eHEA driver. === [ INFO: possible circular locking dependency detected ] 2.6.29-rc6 #2 --- ip/2174 is trying

Re: hash-table creation...

2009-02-23 Thread sumedh tirodkar
Thanks a lot...paging mechanism working successfully... Regards, Sumedh On Sun, Feb 8, 2009 at 2:47 AM, Benjamin Herrenschmidt wrote: > On Sat, 2009-02-07 at 11:43 +0530, sumedh tirodkar wrote: >> Hello, >> >> I wanted algorithm for creating hash tables used in paging mechanism.. >> In the manua