Re: [PATCH] irq: move some interrupt arch_* functions into struct irq_chip.

2010-03-10 Thread Ian Campbell
On Wed, 2010-03-10 at 10:55 +, i...@hellion.org.uk wrote: arch_init_chip_data cannot be moved into struct irq_chip at this time because irq_desc-chip is not known at the time the irq_desc is setup. For now rename arch_init_chip_data to arch_init_irq_desc (for PowerPC, the only other

Re: [PATCH] irq: move some interrupt arch_* functions into struct irq_chip.

2010-03-10 Thread Yinghai Lu
On Wed, Mar 10, 2010 at 2:55 AM, i...@hellion.org.uk wrote: From: Ian Campbell ian.campb...@citrix.com Move arch_init_copy_chip_data and arch_free_chip_data into function pointers in struct irq_chip since they operate on irq_desc-chip_data. arch_init_chip_data cannot be moved into struct

[PATCH] irq: move some interrupt arch_* functions into struct irq_chip.

2010-03-10 Thread ijc
From: Ian Campbell ian.campb...@citrix.com Move arch_init_copy_chip_data and arch_free_chip_data into function pointers in struct irq_chip since they operate on irq_desc-chip_data. arch_init_chip_data cannot be moved into struct irq_chip at this time because irq_desc-chip is not known at the

[PATCH v2] powerpc: export data from new hcall H_EM_GET_PARMS

2010-03-10 Thread Vaidyanathan Srinivasan
Hi Ben, I have cleaned up the code from the previous post: http://lists.ozlabs.org/pipermail/linuxppc-dev/2010-February/080630.html Changes from v1: * Removed redundant return statements and rearranged code Description: A new hcall H_EM_GET_PARMS as been added to obtain power mode data from

Re: [PATCH] irq: move some interrupt arch_* functions into struct irq_chip.

2010-03-10 Thread Ian Campbell
On Wed, 2010-03-10 at 12:06 +, Yinghai Lu wrote: On Wed, Mar 10, 2010 at 2:55 AM, i...@hellion.org.uk wrote: From: Ian Campbell ian.campb...@citrix.com Move arch_init_copy_chip_data and arch_free_chip_data into function pointers in struct irq_chip since they operate on

mv643xx_eth broken again on pegasos2 G4

2010-03-10 Thread acrux
hi, mv643xx_eth driver seems to be broken (and very often there is a kernel panic too). Last working kernel is 2.6.31.2 here a dmesg from 2.6.32.9: memory = 1024MB; using 2048kB for hash table (at cfe0) Linux version 2.6.32.9 (r...@pegasos2) (gcc version 4.3.4 (CRUX PPC) (GCC) ) #1 PREEMPT

Re: mv643xx_eth broken again on pegasos2 G4

2010-03-10 Thread Gabriel Paubert
On Wed, Mar 10, 2010 at 04:14:41PM +0100, acrux wrote: hi, mv643xx_eth driver seems to be broken (and very often there is a kernel panic too). Last working kernel is 2.6.31.2 here a dmesg from 2.6.32.9: My Pegasos running a pristine 2.6.32 seems to disagree with you. [...] Linux version

Re: [PATCH] irq: move some interrupt arch_* functions into struct irq_chip.

2010-03-10 Thread Ian Campbell
On Wed, 2010-03-10 at 17:18 +, Eric W. Biederman wrote: Ian Campbell ian.campb...@citrix.com writes: On Wed, 2010-03-10 at 10:55 +, i...@hellion.org.uk wrote: arch_init_chip_data cannot be moved into struct irq_chip at this time because irq_desc-chip is not known at the time

Re: [PATCH] irq: move some interrupt arch_* functions into struct irq_chip.

2010-03-10 Thread Eric W. Biederman
Ian Campbell ian.campb...@citrix.com writes: On Wed, 2010-03-10 at 12:06 +, Yinghai Lu wrote: On Wed, Mar 10, 2010 at 2:55 AM, i...@hellion.org.uk wrote: From: Ian Campbell ian.campb...@citrix.com Move arch_init_copy_chip_data and arch_free_chip_data into function pointers in

Re: [PATCH] irq: move some interrupt arch_* functions into struct irq_chip.

2010-03-10 Thread Ian Campbell
On Wed, 2010-03-10 at 17:42 +, Eric W. Biederman wrote: Ian Xen in this sense is simply not x86. irq_cfg is not acpi or ioapic or anything but x86 specific. It has everything to do with having a per cpu vector table of 256 entries and architecturally receiving a vector number when an

Re: [PATCH] irq: move some interrupt arch_* functions into struct irq_chip.

2010-03-10 Thread Eric W. Biederman
Ian Campbell ian.campb...@citrix.com writes: On Wed, 2010-03-10 at 17:18 +, Eric W. Biederman wrote: Ian Campbell ian.campb...@citrix.com writes: On Wed, 2010-03-10 at 10:55 +, i...@hellion.org.uk wrote: arch_init_chip_data cannot be moved into struct irq_chip at this time

Re: [PATCH] irq: move some interrupt arch_* functions into struct irq_chip.

2010-03-10 Thread Eric W. Biederman
Ian Campbell ian.campb...@citrix.com writes: On Wed, 2010-03-10 at 17:42 +, Eric W. Biederman wrote: Ian Xen in this sense is simply not x86. irq_cfg is not acpi or ioapic or anything but x86 specific. It has everything to do with having a per cpu vector table of 256 entries and

5200B: BUG in 2.6.34-rc1-dirty while loading at24 driver

2010-03-10 Thread Albrecht Dreß
Hi all, not sure if this is the right place to ask: When I boot a custom 5200B (more or less Lite-based) board with Linus' git tree (2.6.34-rc1-dirty), I always get the following bug: [1.110693] i2c /dev entries driver [1.117285] mpc-i2c f0003d00.i2c: clock 375000 Hz (fdr=137) [

Re: [PATCH] irq: move some interrupt arch_* functions into struct irq_chip.

2010-03-10 Thread Ian Campbell
On Wed, 2010-03-10 at 18:15 +, Eric W. Biederman wrote: Ian Campbell ian.campb...@citrix.com writes: On Wed, 2010-03-10 at 17:42 +, Eric W. Biederman wrote: Ian Xen in this sense is simply not x86. irq_cfg is not acpi or ioapic or anything but x86 specific. It has

Re: [PATCH] irq: move some interrupt arch_* functions into struct irq_chip.

2010-03-10 Thread Jeremy Fitzhardinge
On 03/10/2010 09:42 AM, Eric W. Biederman wrote: All we need between the Xen and the rest of x86 is a convention so that we never manage the same irqs. At least for domU we are in an either/or situation so I don't see even that being a problem. Dom0 too. This is part of the work

Re: [PATCH] irq: move some interrupt arch_* functions into struct irq_chip.

2010-03-10 Thread Yinghai Lu
On 03/10/2010 04:51 AM, Ian Campbell wrote: On Wed, 2010-03-10 at 12:06 +, Yinghai Lu wrote: On Wed, Mar 10, 2010 at 2:55 AM, i...@hellion.org.uk wrote: From: Ian Campbell ian.campb...@citrix.com Move arch_init_copy_chip_data and arch_free_chip_data into function pointers in struct

Re: [PATCH] irq: move some interrupt arch_* functions into struct irq_chip.

2010-03-10 Thread Eric W. Biederman
Ian Campbell ian.campb...@citrix.com writes: On Wed, 2010-03-10 at 10:55 +, i...@hellion.org.uk wrote: arch_init_chip_data cannot be moved into struct irq_chip at this time because irq_desc-chip is not known at the time the irq_desc is setup. For now rename arch_init_chip_data to

Re: [PATCH] irq: move some interrupt arch_* functions into struct irq_chip.

2010-03-10 Thread Eric W. Biederman
Yinghai Lu ying...@kernel.org writes: On 03/10/2010 04:51 AM, Ian Campbell wrote: On Wed, 2010-03-10 at 12:06 +, Yinghai Lu wrote: On Wed, Mar 10, 2010 at 2:55 AM, i...@hellion.org.uk wrote: From: Ian Campbell ian.campb...@citrix.com Move arch_init_copy_chip_data and

[PATCH] powerpc: Build fix for mpc52xx

2010-03-10 Thread Jeff Mahoney
mpc52xx_gpt_wdt_setup is defined as 0, which causes the following build failure with gcc 4.5, since it's built with -Werror. arch/powerpc/platforms/52xx/mpc52xx_gpt.c:761:3: error: statement with no effect Defining it as do { } while(0) fixes the problem. Signed-off-by: Jeff Mahoney

Re: [PATCH 05/13] powerpc/476: Add isync after loading mmu and debug spr's

2010-03-10 Thread Dave Kleikamp
On Sun, 2010-03-07 at 15:08 -0800, Hollis Blanchard wrote: On Fri, Mar 5, 2010 at 12:43 PM, Dave Kleikamp sha...@linux.vnet.ibm.com wrote: powerpc/476: Add isync after loading mmu and debug spr's From: Dave Kleikamp sha...@linux.vnet.ibm.com 476 requires an isync after loading MMU

[PATCH 1/6] arch/powerpc/platforms/pseries: Use kasprintf

2010-03-10 Thread Julia Lawall
From: Julia Lawall ju...@diku.dk kasprintf combines kmalloc and sprintf, and takes care of the size calculation itself. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // smpl @@ expression a,flag; expression list args; statement S; @@ a = -

Re: [PATCH] irq: move some interrupt arch_* functions into struct irq_chip.

2010-03-10 Thread Michael Ellerman
On Wed, 2010-03-10 at 10:55 +, i...@hellion.org.uk wrote: From: Ian Campbell ian.campb...@citrix.com Move arch_init_copy_chip_data and arch_free_chip_data into function pointers in struct irq_chip since they operate on irq_desc-chip_data. arch_init_chip_data cannot be moved into struct

Re: 5200B: BUG in 2.6.34-rc1-dirty while loading at24 driver

2010-03-10 Thread Wolfram Sang
Hi Albrecht, not sure if this is the right place to ask: When I boot a custom 5200B (more Check MAINTAINERS for AT24 ;) or less Lite-based) board with Linus' git tree (2.6.34-rc1-dirty), I always get the following bug: Will send a patch in some minutes... Regards, Wolfram --

Need help with using the BDI2K to debug exception handlers

2010-03-10 Thread Bruce_Leonard
Hi all, Okay, I'm putting on my asbestos underwear and hoping I don't sound too stupid. Here's my sitch: we're seeing an illegal instruction exception, but the tracks our diagnostic code we put into the kernel program_check_exception() function claims the instruction is perfectly good. So I

PowerPC 85xx board are caused die by Commit: 864b9e6fd76489aab422bac62162f57c52e06ed8(powerpc: Use lwarx/ldarx hint in bit locks)

2010-03-10 Thread Andrew Liu
Hi Guys: I have done several experiments on fsl_8548cds and fsl_p2020rdb, pinpointed the commit: 864b9e6fd76489aab422bac62162f57c52e06ed8(powerpc: Use lwarx/ldarx hint in bit locks) cause the bootup stalledd. Filename 'fsl_8548cds/uImage'. Load address: 0x100 Loading:

Re: PowerPC 85xx board are caused die by Commit: 864b9e6fd76489aab422bac62162f57c52e06ed8(powerpc: Use lwarx/ldarx hint in bit locks)

2010-03-10 Thread Kumar Gala
On Mar 10, 2010, at 9:20 PM, Andrew Liu wrote: Hi Guys: I have done several experiments on fsl_8548cds and fsl_p2020rdb, pinpointed the commit: 864b9e6fd76489aab422bac62162f57c52e06ed8(powerpc: Use lwarx/ldarx hint in bit locks) cause the bootup stalledd. Filename

[PATCH] powerpc/85xx: Make sure lwarx hint isn't set on ppc32

2010-03-10 Thread Kumar Gala
e500v1/v2 based chips will treat any reserved field being set in an opcode as illegal. Thus always setting the hint in the opcode is a bad idea. Anton should be kept away from the powerpc opcode map. Signed-off-by: Kumar Gala ga...@kernel.crashing.org --- arch/powerpc/include/asm/ppc-opcode.h

Re: PowerPC 85xx board are caused die by Commit: 864b9e6fd76489aab422bac62162f57c52e06ed8(powerpc: Use lwarx/ldarx hint in bit locks)

2010-03-10 Thread Kumar Gala
On Mar 10, 2010, at 11:20 PM, Kumar Gala wrote: On Mar 10, 2010, at 9:20 PM, Andrew Liu wrote: Hi Guys: I have done several experiments on fsl_8548cds and fsl_p2020rdb, pinpointed the commit: 864b9e6fd76489aab422bac62162f57c52e06ed8(powerpc: Use lwarx/ldarx hint in bit locks) cause

Re: Freescale MPC5554 device tree (was: cross-compiling Linux for PowerPC e200 core?)

2010-03-10 Thread Németh Márton
Grant Likely wrote: 2010/3/9 Németh Márton nm...@freemail.hu: Hi, Grant Likely wrote: 2010/3/8 Németh Márton nm...@freemail.hu: [snip] As far as I could find out I'll need to create a device tree as documented in the linux/Documentation/powerpc/booting-without-of.txt file. Yes, you'll

Re: Freescale MPC5554 device tree (was: cross-compiling Linux for PowerPC e200 core?)

2010-03-10 Thread David Gibson
On Thu, Mar 11, 2010 at 07:11:56AM +0100, Németh Márton wrote: [snip] +/dts-v1/; + +/ { + model = MPC5554; + compatible = fsl,MPC5554EVB; // Freescale MPC5554 Evaluation Board + #address-cells = 1; + #size-cells = 1; + + cpus { + #address-cells

Re: Problem with PCI bus rescan on 460EX

2010-03-10 Thread Felix Radensky
Hi Alex, Resending, previous attempt was erroneously send as HTML. Thanks a lot for replying. Alex Chiang wrote: * Felix Radensky fe...@embedded-sol.com: The problem arises when device is plugged in after boot. After doing echo 1 /sys/bus/pci/rescan the device is identified, but bridge