Re: [PATCH] pata_of_platform: fix no irq handling

2008-10-12 Thread Tejun Heo
Anton Vorontsov wrote: > When no irq specified the pata_of_platform fills the irq_res with -1, > which is wrong to do for two reasons: > > 1. By definition, 'no irq' should be IRQ 0, not some negative integer; > 2. pata_platform checks for irq_res.start > 0, but since irq_res.start >is unsigne

Re: [PATCH 00/16] xics and ipi cleanups for 2.6.28

2008-10-12 Thread Benjamin Herrenschmidt
On Fri, 2008-10-10 at 06:56 -0500, Milton Miller wrote: > The first two patches in this series implememnt a couple of bug > fixes for the xics interrupt controller accessed as found in pseries > hardware. The next several patches implement some code orginization > and cleanups, followed by some ch

[PATCH] powerpc: enable heap randomization for linkstations

2008-10-12 Thread Rogério Brito
The current defconfig for Linkstation/Kuroboxes has the "Disable Heap Randomization" option enabled. Since some of these machines are facing the internet, it helps to have heap randomization enabled. This patch enables it. Signed-off-by: Rogério Brito <[EMAIL PROTECTED]> --- --- linux/arch/pow

[PATCH] powerpc: compile kernel for linkstations optimized for size

2008-10-12 Thread Rogério Brito
From: Rogério Brito <[EMAIL PROTECTED]> Since Linkstations and Kuroboxes often have *very* little memory (as they are embedded systems), it is desirable to get their kernels compiled optimized for size. Signed-off-by: Rogério Brito <[EMAIL PROTECTED]> --- I have been using kernels optimized for

Get USE_STRICT_MM_TYPECHECKS working again

2008-10-12 Thread David Gibson
The typesafe version of the powerpc pagetable handling (with USE_STRICT_MM_TYPECHECKS defined) has bitrotted again. This patch makes a bunch of small fixes to get it building again. Signed-off-by: David Gibson <[EMAIL PROTECTED]> --- Rebased onto current benh/next as requested. Index: working-

Re: [PATCH 7/16] xics: initialization cleanups

2008-10-12 Thread Benjamin Herrenschmidt
> static void __init xics_init_one_node(struct device_node *np, > @@ -700,8 +694,10 @@ void __init xics_init_IRQ(void) > > for_each_node_by_type(np, "PowerPC-External-Interrupt-Presentation") { > found = 1; > - if (firmware_has_feature(FW_FEATURE_LPAR)) > +

Re: [PATCH] Support for relocatable kdump kernel

2008-10-12 Thread Paul Mackerras
Mohan Kumar M writes: > Support for relocatable kdump kernel > @@ -1401,9 +1414,21 @@ _STATIC(__after_prom_start) > beq 9f /* have already put us at zero */ > li r6,0x100/* Start offset, the first 0x100 */ >

Re: [patch] powerpc: implement optimised mutex fastpaths

2008-10-12 Thread Nick Piggin
On Sun, Oct 12, 2008 at 07:47:32AM +0200, Nick Piggin wrote: > > Implement a more optimal mutex fastpath for powerpc, making use of acquire > and release barrier semantics. This takes the mutex lock+unlock benchmark > from 203 to 173 cycles on a G5. > > +static inline int > +__mutex_fastpath_tryl

Re: [PATCH 1/2 v2] OF: new helper: of_parse_phandles_with_args()

2008-10-12 Thread Benjamin Herrenschmidt
On Fri, 2008-10-10 at 18:43 +0400, Anton Vorontsov wrote: > The helper is factored out of of_get_gpio(). Will be used by the QE > pin multiplexing functions (they need to parse the gpios = <> too). > > Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> > --- > + while (list < list_end) { > +

[PATCH] Support for relocatable kdump kernel

2008-10-12 Thread Mohan Kumar M
Support for relocatable kdump kernel This patch adds relocatable kernel support for kdump. With this one can use the same regular kernel to capture the kdump. A signature (0xfeed1234) is passed in r8 from panic code to the next kernel through kexec_sequence and purgatory code. The signature is use

[PATCH 2/2] powerpc: reflect the used arguments in machine_init() prototype

2008-10-12 Thread Sebastian Andrzej Siewior
From: Sebastian Andrzej Siewior <[EMAIL PROTECTED]> phys arg isn't used. Kill it. Signed-off-by: Sebastian Andrzej Siewior <[EMAIL PROTECTED]> --- arch/powerpc/kernel/setup_32.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerp

Remove unused args in head_*

2008-10-12 Thread Sebastian Andrzej Siewior
I've stumbled over these while I tried to figure out how the boot procedure is working on powerpc. Right now (in powerpc) the comment seems to reflect the code but not what is actually happening: regs r4-r7 aren't used and r3 is the device tree. Sebastian

[PATCH 1/2] powerpc: don't pass unused regs around in head_.*.S

2008-10-12 Thread Sebastian Andrzej Siewior
From: Sebastian Andrzej Siewior <[EMAIL PROTECTED]> This looks like a relict from arch/ppc. machine_init() is accepting only two parameters (dtb, phys) and is using only the first one. Signed-off-by: Sebastian Andrzej Siewior <[EMAIL PROTECTED]> --- arch/powerpc/kernel/head_32.S|8 +-

Re: [RFC] powerpc: add kexec support on Book-E

2008-10-12 Thread Sebastian Andrzej Siewior
* Benjamin Herrenschmidt | 2008-10-10 14:53:46 [+1100]: >On Wed, 2008-10-01 at 23:20 +0200, Sebastian Andrzej Siewior wrote: > >> +#define KEXEC_MODE_NOMMU 1 >> +#define KEXEC_MODE_BOOKE 2 > >No need for runtime detection here, you cannot and likely never will be >able to build a kernel that does

Re: [PATCH] powerpc: dtb and purgatory support for ppc32

2008-10-12 Thread Sebastian Andrzej Siewior
* Simon Horman | 2008-10-08 14:03:26 [+1100]: >> +#ifdef WITH_GAMECUBE >> +static int go_purgatory = 0; >> +#else >> +static int go_purgatory = 1; >> +#endif > >Can you just use WITH_GAMECUBE inside elf_ppc_load() and remove >the need for go_purgatory, or do you plan to make go_purgatory >switchab

Re: [PATCH] remove bogus ppc_select syscall

2008-10-12 Thread Arnd Bergmann
On Saturday 11 October 2008, Benjamin Herrenschmidt wrote: > > > > -SYSX_SPU(sys_select,ppc32_select,ppc_select) > > +SYSX_SPU(sys_select,ppc32_select,sys_select) > > Ok, so you want to keep compat with the old stuff. Note that we still > have this weird thing that on 64-bit kernels, we don't pro