[PATCH v3 0/8] Kudmp support for PPC440x

2011-11-13 Thread Suzuki K. Poulose
The following series implements: * Generic framework for relocatable kernel on PPC32, based on processing the dynamic relocation entries. * Relocatable kernel support for 44x * Kdump support for 44x. Doesn't support 47x yet, as the kexec support is missing. Changes from V2: * Renamed

[PATCH v3 0/8] Kdump support for PPC440x

2011-11-13 Thread Suzuki Poulose
[ Don't know what happened to the Cover message. Resending this again ] The following series implements: * Generic framework for relocatable kernel on PPC32, based on processing the dynamic relocation entries. * Relocatable kernel support for 44x * Kdump support for 44x. Doesn't support 47

[PATCH v3 7/8] [44x] Enable CRASH_DUMP for 440x

2011-11-13 Thread Suzuki K. Poulose
Now that we have relocatable kernel, supporting CRASH_DUMP only requires turning the switches on for UP machines. We don't have kexec support on 47x yet. Enabling SMP support would be done as part of enabling the PPC_47x support. Signed-off-by: Suzuki K. Poulose Cc: Josh Boyer Cc: Benj

[PATCH v3 8/8] [boot] Change the load address for the wrapper to fit the kernel

2011-11-13 Thread Suzuki K. Poulose
The wrapper code which uncompresses the kernel in case of a 'ppc' boot is by default loaded at 0x0040 and the kernel will be uncompressed to fit the location 0-0x0040. But with dynamic relocations, the size of the kernel may exceed 0x0040(4M). This would cause an overlap of the uncompre

[PATCH v3 6/8] [44x] Enable CONFIG_RELOCATABLE for PPC44x

2011-11-13 Thread Suzuki K. Poulose
The following patch adds relocatable support for PPC44x kernel. This enables two types of relocatable kernel support for PPC44x. 1) The old style, mapping based- which restricts the load address to 256M aligned. 2) The new approach based on processing dynamic relocation entries - CONFIG_RE

[PATCH v3 1/8] [44x] Fix typo in KEXEC Kconfig dependency

2011-11-13 Thread Suzuki K. Poulose
Kexec is not supported on 47x. 47x is a variant of 44x with slightly different MMU and SMP support. There was a typo in the Kconfig dependency for KEXEC. This patch fixes the same. Signed-off-by: Suzuki K. Poulose Cc: Kumar Gala Cc: Josh Boyer Cc: linux ppc dev --- arch/powerpc/K

[PATCH v3 5/8] [ppc] Define virtual-physical translations for RELOCATABLE

2011-11-13 Thread Suzuki K. Poulose
We find the runtime address of _stext and relocate ourselves based on the following calculation. virtual_base = ALIGN(KERNELBASE,KERNEL_TLB_PIN_SIZE) + MODULO(_stext.run,KERNEL_TLB_PIN_SIZE) relocate() is called with the Effective Virtual Base Address (as shown bel

[PATCH v3 4/8] [ppc] Process dynamic relocations for kernel

2011-11-13 Thread Suzuki K. Poulose
The following patch implements the dynamic relocation processing for PPC32 kernel. relocate() accepts the target virtual address and relocates the kernel image to the same. Currently the following relocation types are handled : R_PPC_RELATIVE R_PPC_ADDR16_LO R_PPC_ADDR16_

[PATCH v3 3/8] [44x] Enable DYNAMIC_MEMSTART for 440x

2011-11-13 Thread Suzuki K. Poulose
DYNAMIC_MEMSTART(old RELOCATABLE) was restricted only to PPC_47x variants of 44x. This patch enables DYNAMIC_MEMSTART for 440x based chipsets. Signed-off-by: Suzuki K. Poulose Cc: Josh Boyer Cc: Kumar Gala Cc: Benjamin Herrenschmidt Cc: linux ppc dev --- arch/powerpc/Kconfig

[PATCH v3 2/8] [booke] Rename mapping based RELOCATABLE to DYNAMIC_MEMSTART for BookE

2011-11-13 Thread Suzuki K. Poulose
The current implementation of CONFIG_RELOCATABLE in BookE is based on mapping the page aligned kernel load address to KERNELBASE. This approach however is not enough for platforms, where the TLB page size is large (e.g, 256M on 44x). So we are renaming the RELOCATABLE used currently in BookE to DYN

Re: [PATCH v3 2/3] hvc_init(): Enforce one-time initialization.

2011-11-13 Thread Rusty Russell
On Tue, 08 Nov 2011 13:45:04 -0800, Miche Baker-Harvey wrote: > hvc_init() must only be called once, and no thread should continue with > hvc_alloc() > until after initialization is complete. The original code does not enforce > either > of these requirements. A new mutex limits entry to hvc_i

Re: [PATCH] powerpc/p3060qds: Fix select of 'MPC8xxx_GPIO'

2011-11-13 Thread Wolfram Sang
On Sun, Nov 13, 2011 at 12:50:30AM +0100, Paul Bolle wrote: > The driver for the Freescale P3060 QDS got added by commit 96cc017c5b > ("[...] Add support for P3060QDS board"). Its Kconfig entry selects > MPC8xxx_GPIO. But at the time that driver got added MPC8xxx_GPIO was > already renamed to GPIO_