[RFC PATCH v6 08/10] fadump: Invalidate registration and release reserved memory for general use.

2011-12-09 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar This patch introduces an sysfs interface '/sys/kernel/fadump_release_mem' to invalidate the last fadump registration, invalidate '/proc/vmcore', release the reserved memory for general use and re-register for future kernel dump. Once the dump is copied to the disk, the use

[RFC PATCH v6 10/10] fadump: Remove the phyp assisted dump code.

2011-12-09 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar Remove the phyp assisted dump implementation which is not is use. Signed-off-by: Mahesh Salgaonkar --- Documentation/powerpc/phyp-assisted-dump.txt | 127 -- arch/powerpc/Kconfig | 10 - arch/powerpc/include/asm/phyp_dump.h | 47

[RFC PATCH v6 09/10] fadump: Invalidate the fadump registration during machine shutdown.

2011-12-09 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar If dump is active during system reboot, shutdown or halt then invalidate the fadump registration as it does not get invalidated automatically. Signed-off-by: Mahesh Salgaonkar --- arch/powerpc/kernel/setup-common.c |8 1 files changed, 8 insertions(+), 0 de

[RFC PATCH v6 05/10] fadump: Convert firmware-assisted cpu state dump data into elf notes.

2011-12-09 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar When registered for firmware assisted dump on powerpc, firmware preserves the registers for the active CPUs during a system crash. This patch reads the cpu register data stored in Firmware-assisted dump format (except for crashing cpu) and converts it into elf notes and up

[RFC PATCH v6 07/10] fadump: Introduce cleanup routine to invalidate /proc/vmcore.

2011-12-09 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar With the firmware-assisted dump support we don't require a reboot when we are in second kernel after crash. The second kernel after crash is a normal kernel boot and has knowledge about entire system RAM with the page tables initialized for entire system RAM. Hence once th

[RFC PATCH v6 06/10] fadump: Add PT_NOTE program header for vmcoreinfo

2011-12-09 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar Introduce a PT_NOTE program header that points to physical address of vmcoreinfo_note buffer declared in kernel/kexec.c. The vmcoreinfo note buffer is populated during crash_fadump() at the time of system crash. Signed-off-by: Mahesh Salgaonkar --- arch/powerpc/kernel/f

[RFC PATCH v6 02/10] fadump: Reserve the memory for firmware assisted dump.

2011-12-09 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar Reserve the memory during early boot to preserve CPU state data, HPTE region and RMA (real mode area) region data in case of kernel crash. At the time of crash, powerpc firmware will store CPU state data, HPTE region data and move RMA region data to the reserved memory are

[RFC PATCH v6 04/10] fadump: Initialize elfcore header and add PT_LOAD program headers.

2011-12-09 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar Build the crash memory range list by traversing through system memory during the first kernel before we register for firmware-assisted dump. After the successful dump registration, initialize the elfcore header and populate PT_LOAD program headers with crash memory ranges.

[RFC PATCH v6 03/10] fadump: Register for firmware assisted dump.

2011-12-09 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar This patch registers for firmware-assisted dump using rtas token ibm,configure-kernel-dump. During registration firmware is informed about the reserved area where it saves the CPU state data, HPTE table and contents of RMR region at the time of kernel crash. Apart from thi

[RFC PATCH v6 01/10] fadump: Add documentation for firmware-assisted dump.

2011-12-09 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar Documentation for firmware-assisted dump. This document is based on the original documentation written for phyp assisted dump by Linas Vepstas and Manish Ahuja, with few changes to reflect the current implementation. Signed-off-by: Mahesh Salgaonkar --- Documentation/po

[RFC PATCH v6 00/10] fadump: Firmware-assisted dump support for Powerpc.

2011-12-09 Thread Mahesh J Salgaonkar
Hi All, Please find the version 6 of the patchset that implements firmware-assisted dump mechanism to capture kernel crash dump for Powerpc architecture. The firmware-assisted dump is a robust mechanism to get reliable kernel crash dump with assistance from firmware. This approach does not use kex

Re: [RFC PATCH v5 1/9] fadump: Add documentation for firmware-assisted dump.

2011-12-09 Thread Mahesh Jagannath Salgaonkar
On 11/25/2011 04:04 AM, Paul Mackerras wrote: >> + /sys/kernel/debug/powerpc/fadump_region >> + >> +This file shows the reserved memory regions if fadump is >> +enabled otherwise this file is empty. The output format >> +is: >> +: [-] bytes, Dumped: >> + >> +e.g. >> +Conte

Re: [PATCH v4 0/7] Kudmp support for PPC440x

2011-12-09 Thread Suzuki Poulose
On 12/09/11 17:13, Suzuki K. Poulose wrote: 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

Re: [GIT PULL] tty-next: Fix Fsl 8250 BRK bug

2011-12-09 Thread Greg KH
On Tue, Dec 06, 2011 at 10:39:57PM -0500, Paul Gortmaker wrote: > Hi Greg, > > This is the Freescale hardware bug fix which turned into a > six-pack of 8250 updates. This is exactly what was posted > in the v2 review, with just Alan's ack added[1]. Since nobody > else has had any follow-on comme

[UPDATED] [PATCH v4 3/7] [ppc] Process dynamic relocations for kernel

2011-12-09 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_

Re: [PATCH v4 3/7] [ppc] Process dynamic relocations for kernel

2011-12-09 Thread Suzuki Poulose
On 12/09/11 19:10, Josh Boyer wrote: On Fri, Dec 9, 2011 at 6:47 AM, Suzuki K. Poulose wrote: Signed-off-by: Suzuki K. Poulose Signed-off-by: Josh Poimboeuf Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Cc: Alan Modra Cc: Kumar Gala Cc: linuxppc-dev --- arch/powerpc/Kconfig |

Re: [PATCH] powerpc: fix wrong divisor in usecs_to_cputime

2011-12-09 Thread Anton Blanchard
Hi Andreas, > There is no user of usecs_to_cputime before 3.2-rc1, so it wouldn't > have any effect for older versions. Great, that explains why I only noticed it last week :) Anton ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://l

Re: [PATCH] powerpc: fix wrong divisor in usecs_to_cputime

2011-12-09 Thread Andreas Schwab
Anton Blanchard writes: > Hi Andreas, > >> Commit d57af9b (taskstats: use real microsecond granularity for CPU >> times) renamed msecs_to_cputime to usecs_to_cputime, but failed to >> update all numbers on the way. This causes nonsensical cpu >> idle/iowait values to be displayed in /proc/stat (

Re: [PATCH] powerpc: fix wrong divisor in usecs_to_cputime

2011-12-09 Thread Anton Blanchard
Hi Andreas, > Commit d57af9b (taskstats: use real microsecond granularity for CPU > times) renamed msecs_to_cputime to usecs_to_cputime, but failed to > update all numbers on the way. This causes nonsensical cpu > idle/iowait values to be displayed in /proc/stat (the only user of > usecs_to_cputi

Re: [PATCH v2] ipc: provide generic compat versions of IPC syscalls

2011-12-09 Thread Arnd Bergmann
On Friday 09 December 2011 13:48:52 Andrew Morton wrote: > What would we need to do to get all architectures using the new > interfaces, and remove __ARCH_WANT_OLD_COMPAT_IPC? We would change the various compat_sys_ipc functions (mips, powerpc, s390, sparc, x86) to call the new functions instead o

Re: [PATCH 10/13] powerpc: Update mpc85xx/corenet 32-bit defconfigs

2011-12-09 Thread Tabi Timur-B04825
On Mon, Oct 10, 2011 at 3:50 PM, Becky Bruce wrote: > From: Becky Bruce > > Results from updates via make savedefconfig. > > Signed-off-by: Becky Bruce > --- ... > -CONFIG_PPC_EPAPR_HV_BYTECHAN=y I guess no one noticed that this patch removes byte channel support, thereby preventing this kern

Re: [PATCH v2] ipc: provide generic compat versions of IPC syscalls

2011-12-09 Thread Andrew Morton
On Fri, 9 Dec 2011 10:29:07 -0500 Chris Metcalf wrote: > When using the "compat" APIs, architectures will generally want to > be able to make direct syscalls to msgsnd(), shmctl(), etc., and > in the kernel we would want them to be handled directly by > compat_sys_xxx() functions, as is true for

[PATCH] powerpc: fix wrong divisor in usecs_to_cputime

2011-12-09 Thread Andreas Schwab
Commit d57af9b (taskstats: use real microsecond granularity for CPU times) renamed msecs_to_cputime to usecs_to_cputime, but failed to update all numbers on the way. This causes nonsensical cpu idle/iowait values to be displayed in /proc/stat (the only user of usecs_to_cputime so far). This also

Re: [PATCH] powerpc: Fix compiliation with hugetlbfs enabled

2011-12-09 Thread Tabi Timur-B04825
On Thu, Nov 24, 2011 at 1:40 PM, Kumar Gala wrote: > arch/powerpc/mm/hugetlbpage.c: In function 'reserve_hugetlb_gpages': > arch/powerpc/mm/hugetlbpage.c:312:2: error: implicit declaration of function > 'parse_args' > > Signed-off-by: Kumar Gala Acked-by: Timur Tabi Would you please apply thi

Re: [PATCH 2/2 v4] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2011-12-09 Thread Scott Wood
On 12/09/2011 03:42 AM, shuo@freescale.com wrote: > From: Liu Shuo > > Freescale FCM controller has a 2K size limitation of buffer RAM. In order > to support the Nand flash chip whose page size is larger than 2K bytes, > we read/write 2k data repeatedly by issuing FIR_OP_RB/FIR_OP_WB and save

Re: [PATCH 1/2] mtd/nand : set Nand flash page address to FBAR and FPAR correctly

2011-12-09 Thread Scott Wood
On 12/09/2011 03:42 AM, shuo@freescale.com wrote: > From: Liu Shuo > > If we use the Nand flash chip whose number of pages in a block is greater > than 64(for large page), we must treat the low bit of FBAR as being the > high bit of the page address due to the limitation of FCM, it simply use

[PATCH v2] ipc: provide generic compat versions of IPC syscalls

2011-12-09 Thread Chris Metcalf
When using the "compat" APIs, architectures will generally want to be able to make direct syscalls to msgsnd(), shmctl(), etc., and in the kernel we would want them to be handled directly by compat_sys_xxx() functions, as is true for other compat syscalls. However, for historical reasons, several

Re: linux-next bad Kconfig for drivers/hid

2011-12-09 Thread Randy Dunlap
On Thu, December 8, 2011 9:33 pm, Jeremy Fitzhardinge wrote: > On 12/08/2011 05:27 PM, Tony Breeds wrote: >> Commit 4f5ca836bef3 (HID: hid-input: add support for HID devices >> reporting Battery Strength) went into linux-next on Dec 1st since then a >> ppc6xx_defconfig has been failing with: >> >>

Re: Linuxppc-dev Digest, Vol 88, Issue 24

2011-12-09 Thread Scott Wood
On 12/09/2011 03:27 AM, Liu Shengzhou-B36685 wrote: > Before calling nand_scan_ident(), we can still use 2k FCM RAM, not need a > buffer greater than 2k, > After nand_scan_ident(), if writesize > 2048, then allocate a large buffer. > We can do it in fsl_elbc_chip_init_tail() > if (mtd->writesiz

Re: [PATCH 61/62] highmem: kill all __kmap_atomic()

2011-12-09 Thread Ralf Baechle
On Sun, Nov 27, 2011 at 01:27:41PM +0800, Cong Wang wrote: Acked-by: Ralf Baechle Ralf ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH] [for-3.2] powerpc/85xx: fix PCI and localbus properties in p1022ds.dts

2011-12-09 Thread Timur Tabi
Signed-off-by: Timur Tabi --- arch/powerpc/boot/dts/p1022ds.dts | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/boot/dts/p1022ds.dts b/arch/powerpc/boot/dts/p1022ds.dts index e627f70..d4c1439 100644 --- a/arch/powerpc/boot/dts/p1022ds.dts +++ b/arch

[PATCH 2/2] [v3] powerpc/85xx: create 32-bit DTS for the P1022DS

2011-12-09 Thread Timur Tabi
Create a 32-bit address space version of p1022ds.dts. To avoid confusion, p1022ds.dts is renamed to p1022ds_36b.dts. We also create p1022ds.dtsi to store some common nodes. Signed-off-by: Timur Tabi --- arch/powerpc/boot/dts/p1022ds.dts | 270 - arch/powerp

[PATCH 1/2] [v3] powerpc/85xx: p1022ds: disable the NOR flash node if video is enabled

2011-12-09 Thread Timur Tabi
The Freescale P1022 has a unique pin muxing "feature" where the DIU video controller's video signals are muxed with 24 of the local bus address signals. When the DIU is enabled, the bulk of the local bus is disabled, preventing access to memory-mapped devices like NOR flash and the pixis FPGA. The

Please pull 'next' branch of new 4xx tree (updated)

2011-12-09 Thread Josh Boyer
On Wed, Nov 30, 2011 at 10:14 AM, Josh Boyer wrote: > Hi Ben, > > I have a new 4xx tree setup now.  Two small commits for the next > branch are queued up.  I'd like to get the patch series from Suzie and > Tony included soon as well, but thought I'd start with these to get > things rolling. I've

Re: [PATCH v4 3/7] [ppc] Process dynamic relocations for kernel

2011-12-09 Thread Josh Boyer
On Fri, Dec 9, 2011 at 6:47 AM, Suzuki K. Poulose wrote: > > Signed-off-by: Suzuki K. Poulose > Signed-off-by: Josh Poimboeuf > Cc: Paul Mackerras > Cc: Benjamin Herrenschmidt > Cc: Alan Modra > Cc: Kumar Gala > Cc: linuxppc-dev > --- > >  arch/powerpc/Kconfig              |   42 > +++

Unable to connect via Ethernet on P1022RDK

2011-12-09 Thread Arshad, Farrukh
Greetings All, I am doing a dual boot on P1022RDK with following configuration Core 0: Linux RT: Running fine, ethernet@B is working fine. Core 1: Linux: Crashing at following, ethernet@B1000 is not creating a link I have allocated ethernet1 to core 1 in its DTS file but when I boot my kerne

[PATCH v4 7/7] [boot] Change the load address for the wrapper to fit the kernel

2011-12-09 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 v4 6/7] [44x] Enable CRASH_DUMP for 440x

2011-12-09 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: Benjamin Her

[PATCH v4 5/7] [44x] Enable CONFIG_RELOCATABLE for PPC44x

2011-12-09 Thread Suzuki K. Poulose
The following patch adds relocatable kernel support - based on processing of dynamic relocations - for PPC44x kernel. We find the runtime address of _stext and relocate ourselves based on the following calculation. virtual_base = ALIGN(KERNELBASE,256M) + MODULO(_st

[PATCH v4 4/7] [ppc] Define virtual-physical translations for RELOCATABLE

2011-12-09 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 v4 3/7] [ppc] Process dynamic relocations for kernel

2011-12-09 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 v4 2/7] [44x] Enable DYNAMIC_MEMSTART for 440x

2011-12-09 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 v4 1/7] [booke] Rename mapping based RELOCATABLE to DYNAMIC_MEMSTART for BookE

2011-12-09 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

[PATCH v4 0/7] Kudmp support for PPC440x

2011-12-09 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 V3: * Added a

[PATCH 2/2 v4] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2011-12-09 Thread shuo.liu
From: Liu Shuo Freescale FCM controller has a 2K size limitation of buffer RAM. In order to support the Nand flash chip whose page size is larger than 2K bytes, we read/write 2k data repeatedly by issuing FIR_OP_RB/FIR_OP_WB and save them to a large buffer. Signed-off-by: Liu Shuo Signed-off-by

[PATCH 1/2] mtd/nand : set Nand flash page address to FBAR and FPAR correctly

2011-12-09 Thread shuo.liu
From: Liu Shuo If we use the Nand flash chip whose number of pages in a block is greater than 64(for large page), we must treat the low bit of FBAR as being the high bit of the page address due to the limitation of FCM, it simply uses the low 6-bits (for large page) of the combined block/page add

Re: cpu idle time going backward

2011-12-09 Thread Andreas Schwab
kevin diggs writes: > On 12/8/11, Andreas Schwab wrote: >> There seems to be something wrong with cpu idle time accounting at least >> on G5. The value as reported in the cpu lines in /proc/stat seems to be >> stuck in the interval [10,21] for each cpu, jumping back at >> random points.

RE: Linuxppc-dev Digest, Vol 88, Issue 24

2011-12-09 Thread Liu Shengzhou-B36685
> -Original Message- > > Message: 4 > Date: Sun, 4 Dec 2011 12:31:38 +0800 > From: > To: , , > > Cc: linux-ker...@vger.kernel.org, shuo@freescale.com, > linux-...@lists.infradead.org, a...@linux-foundation.org, > linuxppc-dev@lists.ozlabs.org > Subject: [PATCH 3/3