Re: 2.6.24-rc3-mm1- powerpc link failure

2007-11-21 Thread Kamalesh Babulal
Hi Andrew, The kernel build fails on powerpc while linking, AS .tmp_kallsyms3.o LD vmlinux.o ld: TOC section size exceeds 64k make: *** [vmlinux.o] Error 1 The patch posted at http://lkml.org/lkml/2007/11/13/414, solves this failure. -- Thanks & Regards, Kamalesh Babulal, Linux

RE: [PATCH v7 3/9] add Freescale SerDes PHY support

2007-11-21 Thread Benjamin Herrenschmidt
> I'm ok for it to be taken care of in u-boot for now. However, if we > later plan to add power management support to this block. We probably > have to do it in kernel. In that case, can't it be just saving/restoring ? That's easier than supporting full configuration of random user setups Ben.

Re: [PATCH] [POWERPC] Emulate isel (Integer Select) instruction

2007-11-21 Thread Benjamin Herrenschmidt
On Tue, 2007-11-20 at 15:01 -0600, Kumar Gala wrote: > > Given that the instruction is meant to be a performance enhancement, > > we should probably warn the first few times it's emulated, so the > user > > knows they should change their toolchain setup if possible. > > The same is true of mcrxr,

Re: [PATCH] [POWERPC] Emulate isel (Integer Select) instruction

2007-11-21 Thread Geert Uytterhoeven
On Tue, 20 Nov 2007, Kumar Gala wrote: > On Nov 20, 2007, at 11:54 AM, Scott Wood wrote: > > On Mon, Nov 19, 2007 at 09:36:57PM -0600, Kumar Gala wrote: > >> isel (Integer Select) is a new user space instruction in the > >> PowerISA 2.04 spec. Not all processors implement it so lets emulate > >> t

Re: [RFC/PATCH 5/14] powerpc: Fix 440/440A machine check handling

2007-11-21 Thread Josh Boyer
On Wed, 21 Nov 2007 17:16:24 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > This removes CONFIG_440A which was a problem for multiplatform > kernels and instead fixes up the IVOR at runtime from a setup_cpu > function. The "A" version of the machine check also tweaks the > regs->trap va

Re: [RFC/PATCH 13/14] powerpc: EP405 boards support for arch/powerpc

2007-11-21 Thread Josh Boyer
On Wed, 21 Nov 2007 17:16:31 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > Brings EP405 support to arch/powerpc. The IRQ routing for the CPLD > comes from a device-tree property, PCI is working to the point where > I can see the video card, USB device, and south bridge. > > This shoul

Re: [RFC/PATCH 0/14] powerpc: 4xx PCI and PCI-X support

2007-11-21 Thread Josh Boyer
On Wed, 21 Nov 2007 17:16:17 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > Here's a set of patches that bring PCI and PCI-X support for > 4xx (PCIe still missing) in arch/powerpc. > > This is for review before I ask paulus to pull that into his > for 2.6.25 tree. Some of the patches s

Re: [RFC/PATCH 14/14] powerpc: Add PCI to Walnut platform

2007-11-21 Thread Josh Boyer
On Wed, 21 Nov 2007 17:16:32 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > This wires up the 4xx PCI support & device-tree bits for the > 405GP based Walnut platform. > > Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> > --- > > This one is untested, haven't had time to dig

Re: [RFC/PATCH 0/14] powerpc: 4xx PCI and PCI-X support

2007-11-21 Thread Stefan Roese
On Wednesday 21 November 2007, Josh Boyer wrote: > Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > Here's a set of patches that bring PCI and PCI-X support for > > 4xx (PCIe still missing) in arch/powerpc. > > > > This is for review before I ask paulus to pull that into his > > for 2.6.25 tre

Re: [PATCH] [POWERPC] Emulate isel (Integer Select) instruction

2007-11-21 Thread Kumar Gala
On Nov 21, 2007, at 3:12 AM, Benjamin Herrenschmidt wrote: > > On Tue, 2007-11-20 at 15:01 -0600, Kumar Gala wrote: >>> Given that the instruction is meant to be a performance enhancement, >>> we should probably warn the first few times it's emulated, so the >> user >>> knows they should change t

Re: [PATCH] [POWERPC] Emulate isel (Integer Select) instruction

2007-11-21 Thread Kumar Gala
On Nov 21, 2007, at 7:09 AM, Geert Uytterhoeven wrote: > On Tue, 20 Nov 2007, Kumar Gala wrote: >> On Nov 20, 2007, at 11:54 AM, Scott Wood wrote: >>> On Mon, Nov 19, 2007 at 09:36:57PM -0600, Kumar Gala wrote: isel (Integer Select) is a new user space instruction in the PowerISA 2.04 s

Re: [PATCH] [POWERPC] Emulate isel (Integer Select) instruction

2007-11-21 Thread Geert Uytterhoeven
On Wed, 21 Nov 2007, Kumar Gala wrote: > On Nov 21, 2007, at 7:09 AM, Geert Uytterhoeven wrote: > > On Tue, 20 Nov 2007, Kumar Gala wrote: > > > On Nov 20, 2007, at 11:54 AM, Scott Wood wrote: > > > > On Mon, Nov 19, 2007 at 09:36:57PM -0600, Kumar Gala wrote: > > > > > isel (Integer Select) is a n

Re: [RFC/PATCH 0/14] powerpc: 4xx PCI and PCI-X support

2007-11-21 Thread Josh Boyer
On Wed, 21 Nov 2007 15:04:12 +0100 Stefan Roese <[EMAIL PROTECTED]> wrote: > On Wednesday 21 November 2007, Josh Boyer wrote: > > Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > > Here's a set of patches that bring PCI and PCI-X support for > > > 4xx (PCIe still missing) in arch/powerpc. > >

Re: [PATCH 3/3] [POWERPC] Add docs for Freescale DMA & DMA channel device tree nodes

2007-11-21 Thread Timur Tabi
Kumar Gala wrote: > + * Freescale 83xx DMA Controller > + > +Freescale PowerPC 83xx have on chip general purpose DMA controllers. > + > +Required properties: > + > +- compatible: compatible list, contains 2 entries, first is > + "fsl,CHIP-dma", where CHIP

Re: [PATCH 3/3] [POWERPC] Add docs for Freescale DMA & DMA channel device tree nodes

2007-11-21 Thread Kumar Gala
On Nov 21, 2007, at 8:59 AM, Timur Tabi wrote: > Kumar Gala wrote: > >> + * Freescale 83xx DMA Controller >> + >> +Freescale PowerPC 83xx have on chip general purpose DMA >> controllers. >> + >> +Required properties: >> + >> +- compatible: compatible list, contains 2 entri

Re: [PATCH] [POWERPC] Emulate isel (Integer Select) instruction

2007-11-21 Thread Kumar Gala
On Nov 21, 2007, at 8:33 AM, Geert Uytterhoeven wrote: > On Wed, 21 Nov 2007, Kumar Gala wrote: >> On Nov 21, 2007, at 7:09 AM, Geert Uytterhoeven wrote: >>> On Tue, 20 Nov 2007, Kumar Gala wrote: On Nov 20, 2007, at 11:54 AM, Scott Wood wrote: > On Mon, Nov 19, 2007 at 09:36:57PM -0600,

annoying prinkts during vmemmap initialization

2007-11-21 Thread Christoph Hellwig
Hi Andi, your patch 'ppc64: SPARSEMEM_VMEMMAP support' adds the following two lines: + printk(KERN_WARNING "vmemmap %08lx allocated at %p, " + "physical %p.\n", start, p, __pa(p)); in a loop around basically every page. That's a lot of floodin

Re: [PATCH 1/8] ibm_newemac: Fix possible lockup on close

2007-11-21 Thread Christoph Hellwig
On Wed, Nov 21, 2007 at 05:06:39PM +1100, Benjamin Herrenschmidt wrote: > It's a bad idea to call flush_scheduled_work from within a > netdev->stop because the linkwatch will occasionally take the > rtnl lock from a workqueue context, and thus that can deadlock. > > This reworks things a bit in th

Re: [PATCH 1/8] ibm_newemac: Fix possible lockup on close

2007-11-21 Thread Josh Boyer
On Wed, 21 Nov 2007 16:41:23 +0100 Christoph Hellwig <[EMAIL PROTECTED]> wrote: > On Wed, Nov 21, 2007 at 05:06:39PM +1100, Benjamin Herrenschmidt wrote: > > It's a bad idea to call flush_scheduled_work from within a > > netdev->stop because the linkwatch will occasionally take the > > rtnl lock f

[PATCH 2/2][2.6.24] ehea: Reworked rcv queue handling to log only fatal errors

2007-11-21 Thread Thomas Klein
Prevent driver from brawly logging packet checksum errors. Signed-off-by: Thomas Klein <[EMAIL PROTECTED]> --- drivers/net/ehea/ehea.h |2 +- drivers/net/ehea/ehea_main.c | 11 +-- drivers/net/ehea/ehea_qmr.h |4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff

Re: [PATCH] [POWERPC] Emulate isel (Integer Select) instruction

2007-11-21 Thread Geert Uytterhoeven
On Wed, 21 Nov 2007, Kumar Gala wrote: > On Nov 21, 2007, at 7:09 AM, Geert Uytterhoeven wrote: > > On Tue, 20 Nov 2007, Kumar Gala wrote: > > > On Nov 20, 2007, at 11:54 AM, Scott Wood wrote: > > > > Given that the instruction is meant to be a performance enhancement, > > > > we should probably wa

[PATCH 1/2][2.6.24] ehea: Improve tx packets counting

2007-11-21 Thread Thomas Klein
Using own tx_packets counter instead of firmware counters. Signed-off-by: Thomas Klein <[EMAIL PROTECTED]> --- drivers/net/ehea/ehea.h |2 +- drivers/net/ehea/ehea_main.c |9 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/net/ehea/ehea.h b/drivers/n

Re: [PATCH 2/3] [POWERPC] Add docs for Freescale RapidIO device tree node

2007-11-21 Thread Scott Wood
On Tue, Nov 20, 2007 at 11:13:58PM -0600, Kumar Gala wrote: > Required properties: > - compatible: compatible list, contains 2 entries, first is > - "fsl,sata-CHIP", where CHIP is the processor > + "fsl,CHIP-sata", where CHIP is the proces

Re: [PATCH 3/3] [POWERPC] Add docs for Freescale DMA & DMA channel device tree nodes

2007-11-21 Thread Scott Wood
On Tue, Nov 20, 2007 at 11:14:40PM -0600, Kumar Gala wrote: > +- compatible: compatible list, contains 2 entries, first is > + "fsl,CHIP-dma", where CHIP is the processor > + (mpc8540, mpc8540, etc.) and the second is > + "f

Re: [PATCH 3/3] [POWERPC] Add docs for Freescale DMA & DMA channel device tree nodes

2007-11-21 Thread Scott Wood
On Wed, Nov 21, 2007 at 09:33:05AM -0600, Kumar Gala wrote: > On Nov 21, 2007, at 8:59 AM, Timur Tabi wrote: > >> + Example: > >> + [EMAIL PROTECTED] { > > > > Shouldn't this be [EMAIL PROTECTED] > > its an example that has not basis is reality :) But it should at least be internally consistent

Re: [PATCH 1/5] PowerPC 74xx: Katana Qp device tree

2007-11-21 Thread Vitaly Bordug
On Fri, 16 Nov 2007 19:12:53 +0300 Andrei Dolnikov wrote: > Device tree source file for the Emerson Katana Qp board > > Signed-off-by: Andrei Dolnikov <[EMAIL PROTECTED]> > > --- > arch/powerpc/boot/dts/katanaqp.dts | 357 > + 1 files changed, 357 > insertion

Re: [PATCH 3/3] [POWERPC] Add docs for Freescale DMA & DMA channel device tree nodes

2007-11-21 Thread Kumar Gala
On Nov 21, 2007, at 11:33 AM, Scott Wood wrote: > On Tue, Nov 20, 2007 at 11:14:40PM -0600, Kumar Gala wrote: >> +- compatible: compatible list, contains 2 entries, >> first is >> + "fsl,CHIP-dma", where CHIP is the processor >> + (mpc8540, mp

Re: [PATCH 2/3] [POWERPC] Add docs for Freescale RapidIO device tree node

2007-11-21 Thread Kumar Gala
On Nov 21, 2007, at 11:29 AM, Scott Wood wrote: > On Tue, Nov 20, 2007 at 11:13:58PM -0600, Kumar Gala wrote: >> Required properties: >> - compatible: compatible list, contains 2 entries, >> first is >> - "fsl,sata-CHIP", where CHIP is the processor >> +

Re: [PATCH 3/3] [POWERPC] Add docs for Freescale DMA & DMA channel device tree nodes

2007-11-21 Thread Kumar Gala
On Nov 21, 2007, at 11:35 AM, Scott Wood wrote: > On Wed, Nov 21, 2007 at 09:33:05AM -0600, Kumar Gala wrote: >> On Nov 21, 2007, at 8:59 AM, Timur Tabi wrote: + Example: + [EMAIL PROTECTED] { >>> >>> Shouldn't this be [EMAIL PROTECTED] >> >> its an example that has not basis is reali

Re: [PATCH 4/5] PowerPC 74xx: Katana Qp base support

2007-11-21 Thread Vitaly Bordug
Hi Andrei, Looks okay in general, some notes below... On Fri, 16 Nov 2007 19:31:16 +0300 Andrei Dolnikov wrote: > Emerson Katana Qp platform specific code > > Signed-off-by: Andrei Dolnikov <[EMAIL PROTECTED]> > > --- > arch/powerpc/platforms/embedded6xx/Kconfig|9 + > arch/powerpc/pl

Re: [PATCH] [POWERPC] Emulate isel (Integer Select) instruction

2007-11-21 Thread Kumar Gala
On Nov 21, 2007, at 10:50 AM, Geert Uytterhoeven wrote: > On Wed, 21 Nov 2007, Kumar Gala wrote: >> On Nov 21, 2007, at 7:09 AM, Geert Uytterhoeven wrote: >>> On Tue, 20 Nov 2007, Kumar Gala wrote: On Nov 20, 2007, at 11:54 AM, Scott Wood wrote: > Given that the instruction is meant to b

Re: [PATCH 3/3] [POWERPC] Add docs for Freescale DMA & DMA channel device tree nodes

2007-11-21 Thread Scott Wood
Kumar Gala wrote: > On Nov 21, 2007, at 11:35 AM, Scott Wood wrote: >> A cell-index property would be useful here for indexing into the summary >> status register. > > Divide by 0x80. :-P Using cell-index for things like this is reasonably common, and endorsed by current ePAPR drafts.

Re: [RFC/PATCH 5/14] powerpc: Fix 440/440A machine check handling

2007-11-21 Thread Benjamin Herrenschmidt
> Why didn't you just add a ppc_md.machine_check_exception to the > effected boards? Then you could have gotten rid of the ifdefs all > together. Hrm... it's per processor, not per board. I didn't feel like digging which board uses which processor and go fixup all the ppc_md's Ben. __

Re: [RFC/PATCH 13/14] powerpc: EP405 boards support for arch/powerpc

2007-11-21 Thread Benjamin Herrenschmidt
> > Hm... odd. I don't remember writing this device tree ;) Heh, oops... it's mostly copied from walnut. I'll fix that up. Ben. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [RFC/PATCH 5/14] powerpc: Fix 440/440A machine check handling

2007-11-21 Thread Josh Boyer
On Thu, 22 Nov 2007 06:48:50 +1100 Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > > Why didn't you just add a ppc_md.machine_check_exception to the > > effected boards? Then you could have gotten rid of the ifdefs all > > together. > > Hrm... it's per processor, not per board. I didn't f

Re: [RFC/PATCH 0/14] powerpc: 4xx PCI and PCI-X support

2007-11-21 Thread Benjamin Herrenschmidt
On Wed, 2007-11-21 at 07:23 -0600, Josh Boyer wrote: > On Wed, 21 Nov 2007 17:16:17 +1100 > Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > > Here's a set of patches that bring PCI and PCI-X support for > > 4xx (PCIe still missing) in arch/powerpc. > > > > This is for review before I ask p

Re: [RFC/PATCH 0/14] powerpc: 4xx PCI and PCI-X support

2007-11-21 Thread Benjamin Herrenschmidt
On Wed, 2007-11-21 at 15:04 +0100, Stefan Roese wrote: > On Wednesday 21 November 2007, Josh Boyer wrote: > > Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > > Here's a set of patches that bring PCI and PCI-X support for > > > 4xx (PCIe still missing) in arch/powerpc. > > > > > > This is for

Re: [PATCH 1/8] ibm_newemac: Fix possible lockup on close

2007-11-21 Thread Benjamin Herrenschmidt
On Wed, 2007-11-21 at 16:41 +0100, Christoph Hellwig wrote: > On Wed, Nov 21, 2007 at 05:06:39PM +1100, Benjamin Herrenschmidt wrote: > > It's a bad idea to call flush_scheduled_work from within a > > netdev->stop because the linkwatch will occasionally take the > > rtnl lock from a workqueue cont

Re: [RFC/PATCH 5/14] powerpc: Fix 440/440A machine check handling

2007-11-21 Thread Benjamin Herrenschmidt
On Wed, 2007-11-21 at 13:51 -0600, Josh Boyer wrote: > > Hrm... it's per processor, not per board. I didn't feel like digging > > which board uses which processor and go fixup all the ppc_md's > > Sounds like something a generic function could probe for from the DTS. > I'll look at doing somethin

Re: [PATCH] [POWERPC] Emulate isel (Integer Select) instruction

2007-11-21 Thread Paul Mackerras
Geert Uytterhoeven writes: > +#define WARN_EMULATE(type) \ > + do {\ > + static unsigned int count; \ > + if (count++ < 10)

Re: [PATCH] [POWERPC] Emulate isel (Integer Select) instruction

2007-11-21 Thread Paul Mackerras
Geert Uytterhoeven writes: > @@ -721,31 +729,38 @@ static int emulate_instruction(struct pt > > /* Emulate the mfspr rD, PVR. */ > if ((instword & INST_MFSPR_PVR_MASK) == INST_MFSPR_PVR) { > + WARN_EMULATE("mfpvr"); mfpvr is a bit different from the others in that it is

Re: [PATCH] [POWERPC] Emulate isel (Integer Select) instruction

2007-11-21 Thread Paul Mackerras
Geert Uytterhoeven writes: > Question: do we want it for emulate_single_step(), too? No, because that's not emulating an instruction. Paul. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH] [POWERPC] Emulate isel (Integer Select) instruction

2007-11-21 Thread Scott Wood
Paul Mackerras wrote: > Geert Uytterhoeven writes: > >> +#define WARN_EMULATE(type) \ >> +do {\ >> +static unsigned int count; \ >> +if (count++

pseries (power3) boot hang (pageblock_nr_pages==0)

2007-11-21 Thread Will Schmidt
Hi Folks, I've been seeing a boot hang/crash on power3 systems for a few weeks. (hangs on a 270, drops to SP on a p610). This afternoon I got around to tracking it down to the changes in commit d9c2340052278d8eb2ffb16b0484f8f794def4de Do not depend on MAX_ORDER when grouping pages by mobi

Re: [PATCH] [POWERPC] Emulate isel (Integer Select) instruction

2007-11-21 Thread Kim Phillips
On Wed, 21 Nov 2007 15:41:00 -0600 Scott Wood <[EMAIL PROTECTED]> wrote: > Paul Mackerras wrote: > > Geert Uytterhoeven writes: > > > >> +#define WARN_EMULATE(type) > >> \ > >> + do {\ > >

[PATCH/RFC 0/6]: phyp dump: hypervisor-assisted dump

2007-11-21 Thread Linas Vepstas
The following series of patches implement a basic framework for hypervisor-assisted dump. The very first patch provides documentation explaining what this is :-). Yes, its supposed to be an improvement over kdump. The patches mostly sort-of work; a list of open issues is inculded in the document

Re: pseries (power3) boot hang (pageblock_nr_pages==0)

2007-11-21 Thread Mel Gorman
On (21/11/07 15:55), Will Schmidt didst pronounce: > Hi Folks, > > I've been seeing a boot hang/crash on power3 systems for a few weeks. > (hangs on a 270, drops to SP on a p610). This afternoon I got around > to tracking it down to the changes in > > commit d9c2340052278d8eb2ffb16b0484f8f794

[PATCH/RFC 1/6]: phyp dump: Documentation

2007-11-21 Thread Linas Vepstas
Basic documentation for hypervisor-assisted dump. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> Documentation/powerpc/phyp-assisted-dump.txt | 126 +++ 1 file changed, 126 insertions(+) Index: linux-2.6.24-rc3-git1/Documentation/powerpc/phyp-assisted-dump.txt =

[PATCH/RFC 2/6]: phyp dump: config file

2007-11-21 Thread Linas Vepstas
Add hypervisor-assisted dump to kernel config Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> - arch/powerpc/Kconfig | 11 +++ 1 file changed, 11 insertions(+) Index: linux-2.6.24-rc2-git4/arch/powerpc/Kconfig === -

[PATCH/RFC 3/6]: phyp dump: reserve-release proof-of-concept

2007-11-21 Thread Linas Vepstas
Initial rough-in/proof of concept of reserving memory in early boot, and freeing it later. If the previous boot had ended with a crash, the reserved memory would contain a copy of the crashed kernel data. Signed-off-by: Manish Ahuja <[EMAIL PROTECTED]> Signed-off-by: Linas Vepstas <[EMAIL PROTECT

[PATCH/RFC 4/6]: phyp dump: use sysfs to release reserved mem

2007-11-21 Thread Linas Vepstas
Check to see if there actually is data from a previously crashed kernel waiting. If so, Allow user-sapce tools to grab the data (by reading /proc/kcore). When user-space finishes dumping a section, it must release that memory by writing to sysfs. For example, echo "0x4000 0x1000" > /sy

Re: annoying prinkts during vmemmap initialization

2007-11-21 Thread Stephen Rothwell
Hi Christoph, On Wed, 21 Nov 2007 16:35:26 +0100 Christoph Hellwig <[EMAIL PROTECTED]> wrote: > > Hi Andi, > > your patch 'ppc64: SPARSEMEM_VMEMMAP support' adds the following two lines: > > + printk(KERN_WARNING "vmemmap %08lx allocated at %p, " > +

[PATCH/RFC 5/6]: phyp dump: register the dump area

2007-11-21 Thread Linas Vepstas
Set up the actual dump header, register it with the hypervisor. Signed-off-by: Manish Ahuja <[EMAIL PROTECTED]> Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> -- arch/powerpc/platforms/pseries/phyp_dump.c | 169 +++-- 1 file changed, 163 insertions(+), 6 deletions

[PATCH/RFC 6/6]: phyp dump: debugging print routines.

2007-11-21 Thread Linas Vepstas
Provide some basic debugging support. Signed-off-by: Manish Ahuja <[EMAIL PROTECTED]> Signed-off-by: Linas Vepsts <[EMAIL PROTECTED]> - arch/powerpc/platforms/pseries/phyp_dump.c | 51 + 1 file changed, 51 insertions(+) Index: linux-2.6.24-rc3-git1/arch/powerp

Re: annoying prinkts during vmemmap initialization

2007-11-21 Thread Christoph Hellwig
On Thu, Nov 22, 2007 at 09:41:45AM +1100, Stephen Rothwell wrote: > > Any reason to keep this? And if yes can we please make it conditional > > on some kind of vmemmap_debug boot option? > > These have been changed to pr_debug() in 2.6.24-rc3 kernel. Ah, sorry for not checking. Looks like the s

Re: 2.6.24-rc3-mm1- powerpc link failure

2007-11-21 Thread Stephen Rothwell
On Wed, 21 Nov 2007 13:36:30 +0530 Kamalesh Babulal <[EMAIL PROTECTED]> wrote: > > The kernel build fails on powerpc while linking, Only for allyesconfig (or maybe some other config that builds a lot of stuff in. > AS .tmp_kallsyms3.o > LD vmlinux.o > ld: TOC section size exceeds 64

[PATCH] PPC: fix missed increment on device interface counter

2007-11-21 Thread Cyrill Gorcunov
From: Cyrill Gorcunov <[EMAIL PROTECTED]> This patch adds simple increment on device interface counter (it seems to be accidently missed) Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- arch/powerpc/platforms/pasemi/electra_ide.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-

[RFC] PPC: convert for(...) cycles into for_each... form

2007-11-21 Thread Cyrill Gorcunov
From: Cyrill Gorcunov <[EMAIL PROTECTED]> This patch does convert cyclic calls to of_find_compatible_node() and of_find_node_by_type() into appropriate macroses. It does reduce code a bit. Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- WARNING: I've no PowerPC to test it - please reiew th

oops trying to execute sh

2007-11-21 Thread John Charles Tyner
I'm trying to boot linux 2.6.22.9 on an mpc860c rev d4. When init trys to spawn sh, during the exec, the kernel oopses as seen below: ## Starting application at 0x0040 ... loaded at: 0040 004EF15C board data at: 03F9FBC0 03F9FBFC relocated to: 00404044 00404080 zimage at: 00404

Re: [PATCH 3/3] [POWERPC] Add docs for Freescale DMA & DMA channel device tree nodes

2007-11-21 Thread David Gibson
On Wed, Nov 21, 2007 at 01:27:03PM -0600, Scott Wood wrote: > Kumar Gala wrote: > > On Nov 21, 2007, at 11:35 AM, Scott Wood wrote: > >> A cell-index property would be useful here for indexing into the summary > >> status register. > > > > Divide by 0x80. > > :-P > > Using cell-index for things

Re: [RFC/PATCH 12/14] powerpc: Add early udbg support for 40x processors

2007-11-21 Thread David Gibson
On Wed, Nov 21, 2007 at 05:16:30PM +1100, Benjamin Herrenschmidt wrote: > This adds some basic real mode based early udbg support for 40x > in order to debug things more easily Shouldn't we be able to share code with the Maple realmode udbg()? -- David Gibson| I'll have my mu

Re: [PATCH 12/14] powerpc: Add early udbg support for 40x processors

2007-11-21 Thread Grant Likely
On 11/20/07, Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > This adds some basic real mode based early udbg support for 40x > in order to debug things more easily > > Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> > --- > --- linux-work.orig/arch/powerpc/platforms/Kconfig.cputype

Re: [PATCH 12/14] powerpc: Add early udbg support for 40x processors

2007-11-21 Thread Benjamin Herrenschmidt
On Wed, 2007-11-21 at 16:47 -0700, Grant Likely wrote: > On 11/20/07, Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > This adds some basic real mode based early udbg support for 40x > > in order to debug things more easily > > > > Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> > >

Re: [RFC/PATCH 12/14] powerpc: Add early udbg support for 40x processors

2007-11-21 Thread Benjamin Herrenschmidt
On Thu, 2007-11-22 at 09:58 +1100, David Gibson wrote: > On Wed, Nov 21, 2007 at 05:16:30PM +1100, Benjamin Herrenschmidt wrote: > > This adds some basic real mode based early udbg support for 40x > > in order to debug things more easily > > Shouldn't we be able to share code with the Maple realm

Re: [PATCH 12/14] powerpc: Add early udbg support for 40x processors

2007-11-21 Thread Grant Likely
On 11/21/07, Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > On Wed, 2007-11-21 at 16:47 -0700, Grant Likely wrote: > > On 11/20/07, Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > > This adds some basic real mode based early udbg support for 40x > > > in order to debug things more easi

dtc: Merge refs and labels into single "markers" list

2007-11-21 Thread David Gibson
Currently, every 'data' object, used to represent property values, has two lists of fixup structures - one for labels and one for references. Sometimes we want to look at them separately, but other times we need to consider both types of fixup. I'm planning to implement string references, where a

Re: [RFC/PATCH 12/14] powerpc: Add early udbg support for 40x processors

2007-11-21 Thread David Gibson
On Thu, Nov 22, 2007 at 11:00:15AM +1100, Benjamin Herrenschmidt wrote: > > On Thu, 2007-11-22 at 09:58 +1100, David Gibson wrote: > > On Wed, Nov 21, 2007 at 05:16:30PM +1100, Benjamin Herrenschmidt wrote: > > > This adds some basic real mode based early udbg support for 40x > > > in order to deb

Re: [PATCH 3/3] [POWERPC] Add docs for Freescale DMA & DMA channel device tree nodes

2007-11-21 Thread Timur Tabi
David Gibson wrote: > Indeed, indexing or writing into shared registers is exactly what > cell-index is for. I don't care whether it's cell-index or device-id, but I need to know which DMA controller is #0 and which one is #1, and I need to know which channel is #0, which one is #1, etc. Divid

Re: [PATCH 12/14] powerpc: Add early udbg support for 40x processors

2007-11-21 Thread Benjamin Herrenschmidt
> fixed speed > 4 registers: rx, tx, status & control > > rx & tx are... well... rx and tx registers > status has a number of bits reporting fifos full/empty etc. > control has three bits; reset tx, reset rx and interrupt enable. > > See the top of drivers/serial/uartlite.c > > Very simple stuf

Re: [PATCH 3/3] [POWERPC] Add docs for Freescale DMA & DMA channel device tree nodes

2007-11-21 Thread Timur Tabi
Scott Wood wrote: > I don't see any justification for having such a property in the parent node, > though. The SSI needs to know which DMA controller is #0 and which one is #1. I literally program the SSI and the GUTS registers with the DMA controller and channels numbers. I need to know which

Re: [PATCH 3/3] [POWERPC] Add docs for Freescale DMA & DMA channel device tree nodes

2007-11-21 Thread Timur Tabi
Kumar Gala wrote: >> Shouldn't we put some text somewhere that we're calling it the Elo >> controller even though that word isn't used in the reference manual? > > we don't really have a place to put that. its effectively documented > right here. I still think we need something. Otherwise, p

dtc: Flexible tree checking infrastructure (v2)

2007-11-21 Thread David Gibson
dtc: Flexible tree checking infrastructure Here, at last, is a substantial start on revising dtc's infrastructure for checking the tree; this is the rework I've been saying was necessary practically since dtc was first release. In the new model, we have a table of "check" structures, each with a

dtc: Merge refs and labels into single "markers" list (v2)

2007-11-21 Thread David Gibson
Currently, every 'data' object, used to represent property values, has two lists of fixup structures - one for labels and one for references. Sometimes we want to look at them separately, but other times we need to consider both types of fixup. I'm planning to implement string references, where a

dtc: RFC: Fix some lexical problems with references

2007-11-21 Thread David Gibson
The recent change to the lexer to only recognize property and node names in the appropriate context removed a number of lexical warts in our language that would have gotten ugly as we add expression support and so forth. But there's one nasty one remaining: references can contain a full path, incl

Re: dtc: RFC: Fix some lexical problems with references

2007-11-21 Thread David Gibson
On Thu, Nov 22, 2007 at 05:10:07PM +1100, David Gibson wrote: > The recent change to the lexer to only recognize property and node > names in the appropriate context removed a number of lexical warts in > our language that would have gotten ugly as we add expression support > and so forth. > > But