Re: [BUG] 2.6.25-rc3-mm1 kernel bug while running libhugetlbfs

2008-03-04 Thread Kamalesh Babulal
Adam Litke wrote: > On Tue, 2008-03-04 at 11:51 -0800, Andrew Morton wrote: >> hugetlb-correct-page-count-for-surplus-huge-pages.patch adds: >> >> if (page) { >> /* >> * This page is now managed by the hugetlb allocator and has >> * no users

linux-next: powerpc tree merge conflict

2008-03-04 Thread Stephen Rothwell
Hi Paul, There was a small conflict with Linus' tree (in arch/powerpc/Kconfig) in merging the powerpc next branch into today's linux-next tree. Commit d9b2b2a277219d4812311d995054ce4f95067725 ('[LIB]: Make PowerPC LMB code generic so sparc64 can use it too') conflicted with 9edddaa200df18e08fe0cf

Re: [PATCH] add strncmp to PowerPC

2008-03-04 Thread Segher Boessenkool
>> Anyway, this asm code has bugs, as do both the current C version in >> the >> kernel, and the code I posted. We need to do better :-) > > The only bug I know of in the asm code is the behaviour when the count > is zero. Do you know of any other? No, that's the bug I meant. Sorry for using s

Re: [PATCH] add strncmp to PowerPC

2008-03-04 Thread Paul Mackerras
Segher Boessenkool writes: > Anyway, this asm code has bugs, as do both the current C version in the > kernel, and the code I posted. We need to do better :-) The only bug I know of in the asm code is the behaviour when the count is zero. Do you know of any other? Paul. ___

Re: [PATCH] add strncmp to PowerPC

2008-03-04 Thread Segher Boessenkool
>> Do we have any indication that it performs better than the C one ? > > I would expect it to, given that the assembler one has two branches in > the per-byte loop compared to 3 in the C version. But really, does it matter for strncmp() in the kernel? Anyway, this asm code has bugs, as do both t

dtc: Testcases for input handling

2008-03-04 Thread David Gibson
This patch adds some testcases checking corner cases of dtc's input file handling. Specifically it checks that dtc works correctly when given input via stdin, and it checks that dtc fails gracefully if given a nonexistent input file (or directory, in the case of -Ifs mode). Signed-off-by: David G

dtc: Assorted improvements to test harness

2008-03-04 Thread David Gibson
This patch makes several small improvements to the test harness. * An altered way of invoking shell script testcases from run_tests.sh means scripts no longer need to me marked executable in the repository to work properly. * dtc.sh never did anything that was really dtc specific - with the

Re: ARCH=ppc -> ARCH=powerpc : help needed for dts file

2008-03-04 Thread Benjamin Herrenschmidt
> I also attach my current (not working) dts file attempt. It is actually > a modified mpc8540ads.dts file. > > I now thinks that the ide-cs (hda) discovery or not depends on the cold > or warm reboot. > > Here are the patches for my config (MEIP_8540) relative to a vanilla > linux-2.6.24. I h

Re: ARCH=ppc -> ARCH=powerpc : help needed for dts file

2008-03-04 Thread David Gibson
On Tue, Mar 04, 2008 at 10:10:59AM +0100, Philippe De Muyter wrote: > Hi Ben, > > On Tue, Mar 04, 2008 at 07:22:19PM +1100, Benjamin Herrenschmidt wrote: These comments aren't relevant to the problems you're seeing, but they're a good idea for writing device trees in general. First, you may want

Re: [PATCH] add strncmp to PowerPC

2008-03-04 Thread Paul Mackerras
Benjamin Herrenschmidt writes: > Do we have any indication that it performs better than the C one ? I would expect it to, given that the assembler one has two branches in the per-byte loop compared to 3 in the C version. Paul. ___ Linuxppc-dev mailing

[PATCH][POWERPC] Fix of_serial section mismatch warnings

2008-03-04 Thread Josh Boyer
Fix the following section mismatches: WARNING: drivers/built-in.o(.exit.text+0x5a): Section mismatch in reference from the function of_platform_serial_exit() to the variable .devinit.data:of_platform_serial_driver The function __exit of_platform_serial_exit() references a variable __devinitdata

Re: [PATCH 11/17] Add memory mapping driver to RapidIO.

2008-03-04 Thread Stephen Rothwell
Hi Weu, On Wed, 5 Mar 2008 09:59:38 +0800 "Zhang Wei" <[EMAIL PROTECTED]> wrote: > > Thanks! I'm considering to commit a updated patch or new code cleaning > patch. > How about your idea? Preferably, fix up the patches. If that is a pain, then a followup patch that cleans up is ok as these do no

Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()

2008-03-04 Thread Kamalesh Babulal
Pekka Enberg wrote: > Christoph Lameter wrote: >> I think this is the correct fix. >> >> The NUMA fallback logic should be passing local_flags to kmem_get_pages() >> and not simply the flags. >> >> Maybe a stable candidate since we are now simply >> passing on flags to the page allocator on the f

RE: [PATCH 11/17] Add memory mapping driver to RapidIO.

2008-03-04 Thread Zhang Wei
Hi, Stephen, Thanks! I'm considering to commit a updated patch or new code cleaning patch. How about your idea? Cheers! Wei > -Original Message- > From: Stephen Rothwell [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 04, 2008 6:38 PM > To: Zhang Wei > Cc: [EMAIL PROTECTED]; [EMAIL PR

dtc: Make eval_literal() static

2008-03-04 Thread David Gibson
eval_literal() is used only in the parser, so make it a static function. Signed-off-by: David Gibson <[EMAIL PROTECTED]> --- dtc-parser.y |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Applies instead of the earlier patch that also localised yyerror(). Index: dtc/dtc-parser.y =

Re: dtc: Make some functions local to parser

2008-03-04 Thread David Gibson
On Tue, Mar 04, 2008 at 01:18:44PM -0600, Scott Wood wrote: > On Tue, Mar 04, 2008 at 03:37:00PM +1100, David Gibson wrote: > > * The Bison documentation explicitly permits yyerror() to be a > > variadic function, so fold yyerror() and yyerrorf() into a single > > printf-style function. > > Th

Re: [PATCH 3/4] Emerson KSI8560 device tree

2008-03-04 Thread David Gibson
On Tue, Mar 04, 2008 at 07:35:40PM +0300, Alexandr Smirnov wrote: > Add device tree file for Emerson KSI8560 board. > > Signed-off-by: Alexandr Smirnov <[EMAIL PROTECTED]> [snip] > + enet0: [EMAIL PROTECTED] { > + linux,network-index = <0>; We're trying to get rid

Re: V4L2: __ucmpdi2 undefined on ppc

2008-03-04 Thread Segher Boessenkool
>> Every occurrence of r7 here is wrong (and some of the r6). Is there >> any reason to do this in assembler code at all? > > The fact that the obvious C code generates ... a call to __ucmpdi2? :) Hrm? Here's the "obvious" C code, portable to all architectures (modulo the specific types used, th

Unable to set cache write-thru on 7447A

2008-03-04 Thread Matthew Clark
I'm trying to run my 2.6.14 Gentoo distro on a 7447A system I have with different cache configurations (ie, write back vs write thru) for both the kernel, system apps (sshd, etc) and user apps. I first wanted to run entirely in Write-Thru to get a worst-case benchmark, but after discovering (to my

Re: [BUG] 2.6.25-rc3-mm1 kernel bug while running libhugetlbfs

2008-03-04 Thread Adam Litke
On Tue, 2008-03-04 at 11:51 -0800, Andrew Morton wrote: > hugetlb-correct-page-count-for-surplus-huge-pages.patch adds: > > if (page) { > /* > * This page is now managed by the hugetlb allocator and has > * no users -- drop the buddy alloca

Re: V4L2: __ucmpdi2 undefined on ppc

2008-03-04 Thread Scott Wood
Paul Mackerras wrote: > Segher Boessenkool writes: > >> Every occurrence of r7 here is wrong (and some of the r6). Is there >> any reason to do this in assembler code at all? > > The fact that the obvious C code generates ... a call to __ucmpdi2? :) So use the correct C code, not the obvious C

Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()

2008-03-04 Thread Christoph Lameter
On Tue, 4 Mar 2008, Pekka Enberg wrote: > Looking at the code, it's triggerable in 2.6.24.3 at least. Why we don't have > a report yet, probably because (1) the default allocator is SLUB which doesn't > suffer from this and (2) you need a big honkin' NUMA box that causes fallback > allocations to

Re: V4L2: __ucmpdi2 undefined on ppc

2008-03-04 Thread Paul Mackerras
Segher Boessenkool writes: > Every occurrence of r7 here is wrong (and some of the r6). Is there > any reason to do this in assembler code at all? The fact that the obvious C code generates ... a call to __ucmpdi2? :) Paul. ___ Linuxppc-dev mailing li

Re: [PATCH] [POWERPC] (testers ?) Fix sleep on some powerbooks

2008-03-04 Thread Wolfgang Pfeiffer
On Tue, Mar 04 2008, at 17:15 +0100, Wolfgang Pfeiffer wrote: > > > [ ... ] > I uploaded this fresh kernel .deb, patched with your code, up to > rapidshare: > http://rapidshare.com/files/96992135/linux-image-2.6.25-rc3-g7704a8b-with-ben.s-pmu-patch_2008.02.29_powerpc.deb.html > > md5sum for th

Re: Bamboo PCI interrupt issues

2008-03-04 Thread Benjamin Herrenschmidt
On Tue, 2008-03-04 at 21:59 +0100, Segher Boessenkool wrote: > >> More generally, the target interrupt descriptors (sense values, in > >> particular) in a device tree interrupt map describe the interrupts as > >> seen on the target interrupt controller, *not* as seen on this > >> (source) > >> in

Re: Bamboo PCI interrupt issues

2008-03-04 Thread Segher Boessenkool
>> More generally, the target interrupt descriptors (sense values, in >> particular) in a device tree interrupt map describe the interrupts as >> seen on the target interrupt controller, *not* as seen on this >> (source) >> interrupt domain. This should be obvious, but since the source >> interru

Re: [PATCH] [POWERPC] (testers ?) Fix sleep on some powerbooks

2008-03-04 Thread Gaudenz Steinlin
Hi Ben On Tue, Mar 04, 2008 at 05:15:18PM +0100, Wolfgang Pfeiffer wrote: > Hi Ben, Gaudenz - Hi All > > On Mon, Mar 03 2008, at 17:27 +1100, Benjamin Herrenschmidt wrote: > > The PMU backlight code would kick in during sleep/resume even on > > machines that use a different backlight method. Thi

Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()

2008-03-04 Thread Pekka Enberg
Andrew Morton wrote: > On Tue, 4 Mar 2008 12:07:39 -0800 (PST) > Christoph Lameter <[EMAIL PROTECTED]> wrote: > >> I think this is the correct fix. >> >> The NUMA fallback logic should be passing local_flags to kmem_get_pages() >> and not simply the flags. >> >> Maybe a stable candidate since we

Re: Bamboo PCI interrupt issues

2008-03-04 Thread Benjamin Herrenschmidt
On Tue, 2008-03-04 at 21:39 +0100, Segher Boessenkool wrote: > >> Using '8' is correct. PCI interrupts are *always* level sensitive and > >> active > >> low. > > > > Unless you use one of those strange bridges that stick not gates on the > > PCI IRQ inputs :-) But I don't think that's the case on

Re: Bamboo PCI interrupt issues

2008-03-04 Thread Segher Boessenkool
>> Using '8' is correct. PCI interrupts are *always* level sensitive and >> active >> low. > > Unless you use one of those strange bridges that stick not gates on the > PCI IRQ inputs :-) But I don't think that's the case on the 440EP. More generally, the target interrupt descriptors (sense values

Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()

2008-03-04 Thread Andrew Morton
On Tue, 4 Mar 2008 12:07:39 -0800 (PST) Christoph Lameter <[EMAIL PROTECTED]> wrote: > I think this is the correct fix. > > The NUMA fallback logic should be passing local_flags to kmem_get_pages() > and not simply the flags. > > Maybe a stable candidate since we are now simply > passing on fl

Re: V4L2: __ucmpdi2 undefined on ppc

2008-03-04 Thread Segher Boessenkool
>> Every occurrence of r7 here is wrong (and some of the r6). > > Can you elucidate? Sure! It should read either "7" or "cr7". >> Is there any reason to do this in assembler code at all? > > Is there any particular reason not to? 1) If written in assembler, it needs to be written for every a

Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()

2008-03-04 Thread Pekka Enberg
Christoph Lameter wrote: > I think this is the correct fix. > > The NUMA fallback logic should be passing local_flags to kmem_get_pages() > and not simply the flags. > > Maybe a stable candidate since we are now simply > passing on flags to the page allocator on the fallback path. > > Signed-o

Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()

2008-03-04 Thread Christoph Lameter
I think this is the correct fix. The NUMA fallback logic should be passing local_flags to kmem_get_pages() and not simply the flags. Maybe a stable candidate since we are now simply passing on flags to the page allocator on the fallback path. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]

Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()

2008-03-04 Thread Christoph Lameter
On Tue, 4 Mar 2008, Pekka J Enberg wrote: > On Tue, 4 Mar 2008, Christoph Lameter wrote: > > Slab allocations should never be passed these flags since the slabs do > > their own thing there. > > > > The following patch would clear these in slub: > > Here's the same fix for SLAB: That is an imm

Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()

2008-03-04 Thread Christoph Lameter
On Tue, 4 Mar 2008, Pekka Enberg wrote: > > > >> [c9edf5f0] [c00b56e4] > > .__alloc_pages_internal+0xf8/0x470 > > > >> [c9edf6e0] [c00e0458] .kmem_getpages+0x8c/0x194 > > > >> [c9edf770] [c00e1050] .fallback_alloc+0x194/0x254 > > > >> [c

Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()

2008-03-04 Thread Pekka J Enberg
On Tue, 4 Mar 2008, Christoph Lameter wrote: > Slab allocations should never be passed these flags since the slabs do > their own thing there. > > The following patch would clear these in slub: Here's the same fix for SLAB: diff --git a/mm/slab.c b/mm/slab.c index 473e6c2..c6dbf7e 100644 --- a

Re: [BUG] 2.6.25-rc3-mm1 kernel bug while running libhugetlbfs

2008-03-04 Thread Andrew Morton
On Wed, 05 Mar 2008 00:50:17 +0530 Kamalesh Babulal <[EMAIL PROTECTED]> wrote: > Hi Andrew, > > kernel bug is triggered while running libhugetlbfs test with 2.6.25-rc3-mm1 > kernel > over the x86 and power machines. > > [ cut here ] > kernel BUG at mm/hugetlb.c:295! > in

Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()

2008-03-04 Thread Christoph Lameter
On Tue, 4 Mar 2008, Pekka Enberg wrote: > > > I suspect the WARN_ON() is bogus although I really don't know that part > > > of the code all too well. Mel? > > > > > > > The warn-on is valid. A situation should not exist that allows both flags > > to > > be set. I suspect if remove-set_migra

Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()

2008-03-04 Thread Pekka Enberg
(adding Christoph as cc) On Tue, Mar 4, 2008 at 9:35 PM, Mel Gorman <[EMAIL PROTECTED]> wrote: > > >> [c9edf5f0] [c00b56e4] .__alloc_pages_internal+0xf8/0x470 > > >> [c9edf6e0] [c00e0458] .kmem_getpages+0x8c/0x194 > > >> [c9edf770] [c00e1050] .fal

Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()

2008-03-04 Thread Mel Gorman
On (04/03/08 21:18), Pekka Enberg didst pronounce: > Andrew Morton wrote: > >> [c9edf5f0] [c00b56e4] .__alloc_pages_internal+0xf8/0x470 > >> [c9edf6e0] [c00e0458] .kmem_getpages+0x8c/0x194 > >> [c9edf770] [c00e1050] .fallback_alloc+0x194/0x254 > >> [c

Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()

2008-03-04 Thread Pekka Enberg
Andrew Morton wrote: > > [c9edf5f0] [c00b56e4] .__alloc_pages_internal+0xf8/0x470 > > [c9edf6e0] [c00e0458] .kmem_getpages+0x8c/0x194 > > [c9edf770] [c00e1050] .fallback_alloc+0x194/0x254 > > [c9edf820] [c00e14b0] .kmem_cache_alloc+0xd

[BUG] 2.6.25-rc3-mm1 kernel bug while running libhugetlbfs

2008-03-04 Thread Kamalesh Babulal
Hi Andrew, kernel bug is triggered while running libhugetlbfs test with 2.6.25-rc3-mm1 kernel over the x86 and power machines. [ cut here ] kernel BUG at mm/hugetlb.c:295! invalid opcode: [#1] SMP last sysfs file: /sys/devices/system/node/possible Modules linked in:

Re: dtc: Make some functions local to parser

2008-03-04 Thread Scott Wood
On Tue, Mar 04, 2008 at 03:37:00PM +1100, David Gibson wrote: > * The Bison documentation explicitly permits yyerror() to be a > variadic function, so fold yyerror() and yyerrorf() into a single > printf-style function. Then the bison documentation is not consistent with the bison implementati

[patch 16/16] xtensa: use generic pci_enable_resources()

2008-03-04 Thread Bjorn Helgaas
Use the generic pci_enable_resources() instead of the arch-specific code. Unlike this arch-specific code, the generic version: - checks PCI_NUM_RESOURCES (11), not 6, resources - skips resources that have neither IORESOURCE_IO nor IORESOURCE_MEM set - skips ROM resources unless IORESOU

[patch 14/16] v850: use generic pci_enable_resources()

2008-03-04 Thread Bjorn Helgaas
Use the generic pci_enable_resources() instead of the arch-specific code. Unlike this arch-specific code, the generic version: - checks PCI_NUM_RESOURCES (11), not 6, resources - skips resources that have neither IORESOURCE_IO nor IORESOURCE_MEM set - skips ROM resources unless IORESOU

[patch 13/16] sparc64: use generic pci_enable_resources()

2008-03-04 Thread Bjorn Helgaas
Use the generic pci_enable_resources() instead of the arch-specific code. Unlike this arch-specific code, the generic version: - skips resources that have neither IORESOURCE_IO nor IORESOURCE_MEM set - skips ROM resources unless IORESOURCE_ROM_ENABLE is set - checks for resource collis

[patch 09/16] parisc: use generic pci_enable_resources()

2008-03-04 Thread Bjorn Helgaas
Use the generic pci_enable_resources() instead of the arch-specific code. Unlike this arch-specific code, the generic version: - checks PCI_NUM_RESOURCES (11), not DEVICE_COUNT_RESOURCE (12), resources - skips resources that have neither IORESOURCE_IO nor IORESOURCE_MEM set - skips ROM

[patch 15/16] x86: use generic pci_enable_resources()

2008-03-04 Thread Bjorn Helgaas
Use the generic pci_enable_resources() instead of the arch-specific code. Unlike this arch-specific code, the generic version: - checks for resource collisions with "!r->parent" Signed-off-by: Bjorn Helgaas <[EMAIL PROTECTED]> Index: work8/arch/x86/pci/common.c ==

[patch 12/16] sh: use generic pci_enable_resources()

2008-03-04 Thread Bjorn Helgaas
Use the generic pci_enable_resources() instead of the arch-specific code. Unlike this arch-specific code, the generic version: - checks PCI_NUM_RESOURCES (11), not 6, resources - skips resources that have neither IORESOURCE_IO nor IORESOURCE_MEM set - skips ROM resources unless IORESOU

[patch 11/16] ppc: use generic pci_enable_resources()

2008-03-04 Thread Bjorn Helgaas
Use the generic pci_enable_resources() instead of the arch-specific code. Unlike this arch-specific code, the generic version: - checks PCI_NUM_RESOURCES (11), not 6, resources - skips resources that have neither IORESOURCE_IO nor IORESOURCE_MEM set - skips ROM resources unless IORESOU

[patch 10/16] powerpc: use generic pci_enable_resources()

2008-03-04 Thread Bjorn Helgaas
Use the generic pci_enable_resources() instead of the arch-specific code. The generic version is functionally equivalent, but uses dev_printk. Signed-off-by: Bjorn Helgaas <[EMAIL PROTECTED]> Index: work8/arch/powerpc/kernel/pci-common.c ===

[patch 05/16] frv: use generic pci_enable_resources()

2008-03-04 Thread Bjorn Helgaas
Use the generic pci_enable_resources() instead of the arch-specific code. Unlike this arch-specific code, the generic version: - checks PCI_NUM_RESOURCES (11), not 6, resources - skips resources that have neither IORESOURCE_IO nor IORESOURCE_MEM set - skips ROM resources unless IORESOU

[patch 07/16] mips: use generic pci_enable_resources()

2008-03-04 Thread Bjorn Helgaas
Use the generic pci_enable_resources() instead of the arch-specific code. Unlike this arch-specific code, the generic version: - checks for resource collisions with "!r->parent" Signed-off-by: Bjorn Helgaas <[EMAIL PROTECTED]> Index: work8/arch/mips/pci/pci.c

[patch 08/16] mn10300: use generic pci_enable_resources()

2008-03-04 Thread Bjorn Helgaas
Use the generic pci_enable_resources() instead of the arch-specific code. Unlike this arch-specific code, the generic version: - checks PCI_NUM_RESOURCES (11), not 6, resources - skips resources that have neither IORESOURCE_IO nor IORESOURCE_MEM set - skips ROM resources unless IORESOU

[patch 06/16] ia64: use generic pci_enable_resources()

2008-03-04 Thread Bjorn Helgaas
Use the generic pci_enable_resources() instead of the arch-specific code. Unlike this arch-specific code, the generic version: - does not check for a NULL dev pointer - skips resources that have neither IORESOURCE_IO nor IORESOURCE_MEM set Signed-off-by: Bjorn Helgaas <[EMAIL PROTECTED]>

[patch 04/16] cris: use generic pci_enable_resources()

2008-03-04 Thread Bjorn Helgaas
Use the generic pci_enable_resources() instead of the arch-specific code. Unlike this arch-specific code, the generic version: - checks PCI_NUM_RESOURCES (11), not 6, resources - skips resources that have neither IORESOURCE_IO nor IORESOURCE_MEM set - skips ROM resources unless IORESOU

[patch 02/16] alpha: use generic pci_enable_resources()

2008-03-04 Thread Bjorn Helgaas
Use the generic pci_enable_resources() instead of the arch-specific code. Unlike this arch-specific code, the generic version: - skips resources unless requested in "mask" - skips ROM resources unless IORESOURCE_ROM_ENABLE is set - checks for resource collisions with "!r->parent" Sign

[patch 03/16] arm: use generic pci_enable_resources()

2008-03-04 Thread Bjorn Helgaas
Use the generic pci_enable_resources() instead of the arch-specific code. Unlike this arch-specific code, the generic version: - checks PCI_NUM_RESOURCES (11), not 6, resources - skips resources that have neither IORESOURCE_IO nor IORESOURCE_MEM set - skips ROM resources unless IORESOU

[patch 01/16] PCI: add generic pci_enable_resources()

2008-03-04 Thread Bjorn Helgaas
Each architecture has its own pcibios_enable_resources() implementation. These differ in many minor ways that have nothing to do with actual architectural differences. Follow-on patches will make most arches use this generic version instead. This version is based on powerpc, which seemed most up-

[patch 00/16] PCI: consolidate several pcibios_enable_resources() implementations, v3

2008-03-04 Thread Bjorn Helgaas
This series replaces most of the arch-specific pcibios_enable_resources() implementations with a single generic pci_enable_resources(). I think this is ready for -mm, but of course, I'm still interested in any other comments. Changes between v2 and v3: - Renamed the generic version to pc

Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()

2008-03-04 Thread Pekka Enberg
On Tue, 04 Mar 2008 18:42:19 +0530 Kamalesh Babulal <[EMAIL PROTECTED]> wrote: > > 3) Third attempt kernel booted up but had the following call trace 264 > times while running > > test > > > > Badness at include/linux/gfp.h:110 > > NIP: c00b4ff0 LR: c00b4fa0 CTR: c019c

Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()

2008-03-04 Thread Andrew Morton
On Tue, 04 Mar 2008 18:42:19 +0530 Kamalesh Babulal <[EMAIL PROTECTED]> wrote: > 3) Third attempt kernel booted up but had the following call trace 264 times > while running > test > > Badness at include/linux/gfp.h:110 > NIP: c00b4ff0 LR: c00b4fa0 CTR: c019cdb4 > REGS: c

Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()

2008-03-04 Thread Andrew Morton
On Tue, 04 Mar 2008 15:40:56 +0100 Michael Neuling <[EMAIL PROTECTED]> wrote: > In message <[EMAIL PROTECTED]> you wrote: > > Hi Andrew, > > > > The 2.6.25-rc3-mm1 kernel panics while bootup on power box. The machine > > boote > d up > > without the panic on the third attempt, but badness call t

Re: V4L2: __ucmpdi2 undefined on ppc

2008-03-04 Thread Scott Wood
On Tue, Mar 04, 2008 at 04:37:28PM +, David Woodhouse wrote: > > On Sun, 2008-03-02 at 22:53 +0100, Segher Boessenkool wrote: > > Every occurrence of r7 here is wrong (and some of the r6). > > Can you elucidate? They were being used as condition registers rather than GPRs. > > Is there an

Re: V4L2: __ucmpdi2 undefined on ppc

2008-03-04 Thread David Woodhouse
On Sun, 2008-03-02 at 22:53 +0100, Segher Boessenkool wrote: > Every occurrence of r7 here is wrong (and some of the r6). Can you elucidate? > Is there any reason to do this in assembler code at all? Is there any particular reason not to? -- dwmw2 __

[PATCH 4/4] Emerson KSI8560 default config

2008-03-04 Thread Alexandr Smirnov
Add default config for Emerson KSI8560 board. Signed-off-by: Alexandr Smirnov <[EMAIL PROTECTED]> arch/powerpc/configs/ksi8560_defconfig | 899 + 1 file changed, 899 insertions(+) diff --git a/arch/powerpc/configs/ksi8560_defconfig b/arch/powerpc/configs/ksi856

[PATCH 3/4] Emerson KSI8560 device tree

2008-03-04 Thread Alexandr Smirnov
Add device tree file for Emerson KSI8560 board. Signed-off-by: Alexandr Smirnov <[EMAIL PROTECTED]> arch/powerpc/boot/dts/ksi8560.dts | 267 ++ 1 file changed, 267 insertions(+) diff --git a/arch/powerpc/boot/dts/ksi8560.dts b/arch/powerpc/boot/dts/ksi8560.

[PATCH 2/4] Emerson KSI8560 bootwrapper

2008-03-04 Thread Alexandr Smirnov
Add boot wrapper for Emerson KSI8560 board. Signed-off-by: Alexandr Smirnov <[EMAIL PROTECTED]> arch/powerpc/boot/Makefile |1 + arch/powerpc/boot/wrapper |2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index e

[PATCH 1/4] Emerson KSI8560 base support

2008-03-04 Thread Alexandr Smirnov
The KSI8560 is a single compact, mid-, or full-size Advanced Mezzanine Card (AdvancedMC™) based on the Freescale™ Semiconductor MPC8560 PowerQUICC III™ microprocessor. This product will serve in data and signaling applications such as signaling gateways (SGW) and softswitch signaling interface car

Re: [PATCH] [POWERPC] (testers ?) Fix sleep on some powerbooks

2008-03-04 Thread Wolfgang Pfeiffer
Hi Ben, Gaudenz - Hi All On Mon, Mar 03 2008, at 17:27 +1100, Benjamin Herrenschmidt wrote: > The PMU backlight code would kick in during sleep/resume even on > machines that use a different backlight method. This appears to > break sleep on my PowerBook, though I can't test that patch at > the mo

[PATCH 0/4] Add Emerson KSI8560 board support

2008-03-04 Thread Alexandr Smirnov
Hi Paul, I've added short description for this board as header for the base support patch. Hope this is enough, board diagram is available at Emerson website. Let me know more information needed. Thanks, Alexandr. ___ Linuxppc-dev mailing list Linuxpp

Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()

2008-03-04 Thread Michael Neuling
In message <[EMAIL PROTECTED]> you wrote: > Hi Andrew, > > The 2.6.25-rc3-mm1 kernel panics while bootup on power box. The machine boote d up > without the panic on the third attempt, but badness call trace were seen whil e running > tests > > 1) The kernel panic on first attempt > > Unable to h

RE: locking problem in sata_sil24?

2008-03-04 Thread Rune Torgersen
[EMAIL PROTECTED] wrote: > Now I get an "inconsistent locking state", but I need help in > trying to > fiure out what I should look for. I did figure out htat lockdep only complains about inonsistent locking state when PREEMPT_RT paches are applied. Now I just need some help interpreting this outp

[BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()

2008-03-04 Thread Kamalesh Babulal
Hi Andrew, The 2.6.25-rc3-mm1 kernel panics while bootup on power box. The machine booted up without the panic on the third attempt, but badness call trace were seen while running tests 1) The kernel panic on first attempt Unable to handle kernel paging request for data at address 0x F

Re: [PATCH 11/17] Add memory mapping driver to RapidIO.

2008-03-04 Thread Stephen Rothwell
On Wed, 5 Mar 2008 00:29:56 +0800 Zhang Wei <[EMAIL PROTECTED]> wrote: > > + if (!(rmem->virt = dma_alloc_coherent(NULL, rmem->size, > + &rmem->iores.start, GFP_KERNEL))) { Please separate assignments from tests. > + if ((ret = rio_space_claim(rmem))) { Again

Re: [PATCH 06/17] Change the kernel configurated RapidIO system size to auto-probing.

2008-03-04 Thread Stephen Rothwell
On Wed, 5 Mar 2008 00:29:51 +0800 Zhang Wei <[EMAIL PROTECTED]> wrote: > > + if (!(rionet_active = (struct rio_dev **)__get_free_pages(GFP_KERNEL, > + mport->sys_size ? __ilog2(sizeof(void *)) + 4 > + : 0))) { Please separate the assignm

Re: [PATCH 05/17] Add OF-tree support to RapidIO controller driver.

2008-03-04 Thread Stephen Rothwell
On Wed, 5 Mar 2008 00:29:50 +0800 Zhang Wei <[EMAIL PROTECTED]> wrote: > > +static struct of_device_id fsl_of_rio_rpn_ids[] = { const, please. -- Cheers, Stephen Rothwell[EMAIL PROTECTED] http://www.canb.auug.org.au/~sfr/ pgpLbcHShFXuD.pgp Description: PGP signature __

Re: ARCH=ppc -> ARCH=powerpc : help needed for dts file

2008-03-04 Thread Philippe De Muyter
Hi Ben, On Tue, Mar 04, 2008 at 07:22:19PM +1100, Benjamin Herrenschmidt wrote: > > On Tue, 2008-03-04 at 09:08 +0100, Philippe De Muyter wrote: > > With ARCH=ppc, all those interrupt's info's are hardcoded in the .c > > files. > > But I expected I could fill the dts file for ARCH=powerpc from in

Re: ARCH=ppc -> ARCH=powerpc : help needed for dts file

2008-03-04 Thread Philippe De Muyter
Hi Ben, On Tue, Mar 04, 2008 at 08:26:14AM +1100, Benjamin Herrenschmidt wrote: > > > > Maybe your PCI interrupt-map is wrong... > > > > Is the PCI-interrupt map that part of the dts file : > > > > interrupt-map = < > > > > /* IDSEL 0x02 */ > >

[PATCH 17/17] Add the memory mapping support in rionet driver.

2008-03-04 Thread Zhang Wei
The user can select memory mapping mode or message mode in CONFIG. It is also an example to how-to use memory mapping driver for RapidIO. Signed-off-by: Zhang Wei <[EMAIL PROTECTED]> --- drivers/net/Kconfig | 10 ++ drivers/net/rionet.c | 321 ++

[PATCH 16/17] Change RapidIO doorbell source and target ID field to 16-bit.

2008-03-04 Thread Zhang Wei
Change RapidIO doorbell source and target ID field to 16-bit for support large system size, which max rio devid is 65535. Signed-off-by: Zhang Wei <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/fsl_rio.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/sys

[PATCH 15/17] Add RapidIO proc fs for memory mapping debugging.

2008-03-04 Thread Zhang Wei
Get RapidIO space resource by catting /proc/riores. Signed-off-by: Zhang Wei <[EMAIL PROTECTED]> --- drivers/rapidio/Kconfig |8 +++ drivers/rapidio/rio.c | 119 +++ 2 files changed, 127 insertions(+), 0 deletions(-) diff --git a/drivers/rapidio

[PATCH 14/17] Add the RapidIO master port maintance and doorbell window to space resources.

2008-03-04 Thread Zhang Wei
Add the RapidIO master port maintance and doorbell IO windows to RIO space resources. Signed-off-by: Zhang Wei <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/fsl_rio.c | 26 +- include/linux/rio.h |1 + 2 files changed, 22 insertions(+), 5 deletions(-) diff -

[PATCH 13/17] Add FSL RapidIO controller memory ops functions.

2008-03-04 Thread Zhang Wei
Add FSL RapidIO controller (MPC85xx, MPC86xx) memory operation functions, which include map inbound/outbound window and unmap incound/outbound window. Signed-off-by: Zhang Wei <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/fsl_rio.c | 202 + 1 files changed,

[PATCH 12/17] Add RapidIO space allocation bitmap arithmetic.

2008-03-04 Thread Zhang Wei
The bitmap is the simplest RapidIO space allocation arithmetic. It uses the fixed size space for each RapidIO device in the inter-connection network. Signed-off-by: Zhang Wei <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/fsl_rio.c | 11 + drivers/rapidio/Kconfig |2 + driver

[PATCH 11/17] Add memory mapping driver to RapidIO.

2008-03-04 Thread Zhang Wei
The memory mapping driver is used for mapping IO address and system memory address space to RapidIO address space. The driver support IO space allocation, RapidIO space inbound window and outbound window creation. The system can access other RapidIO device by outbound window and can be accessed by

[PATCH 10/17] Add RapidIO connection info print out and re-training for break connection.

2008-03-04 Thread Zhang Wei
Signed-off-by: Zhang Wei <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/fsl_rio.c | 71 + 1 files changed, 71 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fsl_rio.c index 1535d12..585f7d2 100644 --- a/arch/po

[PATCH 09/17] Add serial RapidIO controller support, which includes MPC8548, MPC8641.

2008-03-04 Thread Zhang Wei
Signed-off-by: Zhang Wei <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/fsl_rio.c | 74 +++- include/linux/rio.h |6 +++ 2 files changed, 70 insertions(+), 10 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fsl_rio.c i

[PATCH 05/17] Add OF-tree support to RapidIO controller driver.

2008-03-04 Thread Zhang Wei
Signed-off-by: Zhang Wei <[EMAIL PROTECTED]> --- arch/powerpc/kernel/Makefile |1 - arch/powerpc/kernel/rio.c | 52 --- arch/powerpc/sysdev/fsl_rio.c | 110 ++--- arch/powerpc/sysdev/fsl_rio.h | 20 --- 4 files changed, 102 inse

[PATCH 08/17] Add RapidIO node probing into MPC86xx_HPCN board id table.

2008-03-04 Thread Zhang Wei
Signed-off-by: Zhang Wei <[EMAIL PROTECTED]> --- arch/powerpc/platforms/86xx/mpc86xx_hpcn.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c index cfbe8c5..4a3e421 100644 --- a/arch/pow

[PATCH 07/17] Add RapidIO node into MPC8641HPCN dts file

2008-03-04 Thread Zhang Wei
Signed-off-by: Zhang Wei <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc8641_hpcn.dts | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/boot/dts/mpc8641_hpcn.dts b/arch/powerpc/boot/dts/mpc8641_hpcn.dts index 79385bc..4b296af 100644 --- a/arch/pow

[PATCH 06/17] Change the kernel configurated RapidIO system size to auto-probing.

2008-03-04 Thread Zhang Wei
The RapidIO system size will auto probe in RIO setup. The route table and rionet_active in rionet.c are changed to be allocated dynamically according the system size. Signed-off-by: Zhang Wei <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/fsl_rio.c |6 + drivers/net/rionet.c | 16

[PATCH 04/17] Add RapidIO multi mport support.

2008-03-04 Thread Zhang Wei
The original RapidIO driver suppose there is only one mpc85xx RIO controller in system. So, some data structures are defined as mpc85xx_rio global, such as 'regs_win', 'dbell_ring', 'msg_tx_ring'. Now, I changed them to mport's private members. And you can define multi RIO OF-nodes in dts file for

[PATCH 03/17] Move include/asm-ppc/rio.h to include/asm-powerpc/rio.h

2008-03-04 Thread Zhang Wei
Signed-off-by: Zhang Wei <[EMAIL PROTECTED]> --- include/asm-powerpc/rio.h | 18 ++ include/asm-ppc/rio.h | 18 -- 2 files changed, 18 insertions(+), 18 deletions(-) create mode 100644 include/asm-powerpc/rio.h delete mode 100644 include/asm-ppc/rio.h dif

[PATCH 01/17] Change RIO function mpc85xx_ to fsl_ .

2008-03-04 Thread Zhang Wei
The driver is also fit for Freescale MPC8641 processor. Signed-off-by: Zhang Wei <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/fsl_rio.c | 80 1 files changed, 40 insertions(+), 40 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sys

[PATCH 02/17] Add RapidIO option to kernel configuration.

2008-03-04 Thread Zhang Wei
Signed-off-by: Zhang Wei <[EMAIL PROTECTED]> --- arch/powerpc/Kconfig| 13 + arch/powerpc/platforms/86xx/Kconfig |1 + 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 485513c..70789e8 100644 --- a/a

Re: ARCH=ppc -> ARCH=powerpc : help needed for dts file

2008-03-04 Thread Benjamin Herrenschmidt
On Tue, 2008-03-04 at 09:08 +0100, Philippe De Muyter wrote: > With ARCH=ppc, all those interrupt's info's are hardcoded in the .c > files. > But I expected I could fill the dts file for ARCH=powerpc from info's > I > could collect in /proc on a running ARCH=ppc linux without dts file > for the sa

Re: ARCH=ppc -> ARCH=powerpc : help needed for dts file

2008-03-04 Thread Philippe De Muyter
Hi Ben, On Tue, Mar 04, 2008 at 08:41:33AM +1100, Benjamin Herrenschmidt wrote: > > > Thanks > > > > The following seems important also : > > > > /* > > interrupts = <18 2>; > > */ > > /* interrupts number are coded in hexa ! */ > > interrupts = <

Re: ARCH=ppc -> ARCH=powerpc : help needed for dts file

2008-03-04 Thread Philippe De Muyter
Hi Scott, On Mon, Mar 03, 2008 at 03:55:26PM -0600, Scott Wood wrote: > Philippe De Muyter wrote: >> The following seems important also : >> /* >> interrupts = <18 2>; >> */ >> /* interrupts number are coded in hexa ! */ >> interrupts = <12 2 19 2 1a

  1   2   >