[PATCH 03/18] powerpc: remove cast for kmalloc/kzalloc return value

2013-03-11 Thread Zhang Yanfei
remove cast for kmalloc/kzalloc return value. Signed-off-by: Zhang Yanfei Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Andrew Morton Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/kernel/nvram_64.c |3 +-- arch/powerpc/kvm/book3s_pr.c |2 +- 2 files changed, 2 insertions(+)

Re: [PATCH -V2 2/2] powerpc: Update kernel VSID range

2013-03-11 Thread David Gibson
On Fri, Feb 15, 2013 at 09:09:38PM +0530, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" > > This patch change the kernel VSID range so that we limit VSID_BITS to 37. > This enables us to support 64TB with 65 bit VA (37+28). Without this patch > we have boot hangs on platforms that only suppo

Re: [PATCH -V2 2/2] powerpc: Update kernel VSID range

2013-03-11 Thread Benjamin Herrenschmidt
On Tue, 2013-03-12 at 08:28 +0530, Aneesh Kumar K.V wrote: > Ben, Paul, > > Any update on this ? Paul and David are reviewing it and I was trying to test on POWER3 (STAB vs. SLB) but ended up bisecting instead why POWER3 stopped working in 3.4 ... :-) Cheers, Ben.

Re: [PATCH -V2 2/2] powerpc: Update kernel VSID range

2013-03-11 Thread Aneesh Kumar K.V
Ben, Paul, Any update on this ? -aneesh "Aneesh Kumar K.V" writes: > From: "Aneesh Kumar K.V" > > This patch change the kernel VSID range so that we limit VSID_BITS to 37. > This enables us to support 64TB with 65 bit VA (37+28). Without this patch > we have boot hangs on platforms that on

powerpc/ptrace: Fix brk.len used uninitialised

2013-03-11 Thread Michael Neuling
With some CONFIGS it's possible that in ppc_set_hwdebug, brk.len is uninitialised before being used. It has been reported that GCC 4.2 will produce the following error in this case: arch/powerpc/kernel/ptrace.c:1479: warning: 'brk.len' is used uninitialized in this function arch/powerpc/kern

Re: [PATCH] edac/85xx: Add PCIe error interrupt edac support

2013-03-11 Thread Chunhe Lan
On 03/09/2013 03:22 AM, Gala Kumar-B11780 wrote: On Mar 8, 2013, at 2:32 AM, Chunhe Lan wrote: Adding pcie error interrupt edac support for mpc85xx, p3041, p4080, and p5020. The mpc85xx uses the legacy interrupt report mechanism - the error interrupts are reported directly to mpic. While, the p

Re: [PATCH -V2 2/2] powerpc: Update kernel VSID range

2013-03-11 Thread Benjamin Herrenschmidt
On Mon, 2013-03-11 at 17:41 -0700, Geoff Levand wrote: > I didn't seen this fix go in for 3.8. Did I miss it, or is there some > reason we don't want it? > > I need this to boot PS3. Working on it. There's a couple of issues, among others testing on STAB and a couple of comments from David, I'm

Re: [PATCH -V2 2/2] powerpc: Update kernel VSID range

2013-03-11 Thread Geoff Levand
Hi, On Fri, 2013-02-15 at 21:09 +0530, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" > > This patch change the kernel VSID range so that we limit VSID_BITS to 37. > This enables us to support 64TB with 65 bit VA (37+28). Without this patch > we have boot hangs on platforms that only support

Re: [PATCH] arch/powerpc/kernel: using %12.12s instead of %12s for avoiding memory overflow.

2013-03-11 Thread Chen Gang
Hello Benjamin Herrenschmidt: how about this patch ? is it correct ? thanks. :-) gchen. 于 2013年01月24日 12:14, Chen Gang 写道: > > for tmp_part->header.name: > it is "Terminating null required only for names < 12 chars". > so need to limit the %.12s for it in printk > > addit

[PATCH] powerpc: remove outdated default

2013-03-11 Thread Paul Bolle
The Kconfig symbol PCI_PERMEDIA got removed in v2.6.24, through commit e6b6e3ffb9ee8926f9f2f7dc9147df73e27d5828 ("[POWERPC] Remove APUS support from arch/ppc"). Remove its last occurrence. Signed-off-by: Paul Bolle --- Tested with "make ARCH=powerpc menuconfig" using ps3_defconfig, both before an

[PATCH] powerpc: Remove last traces of POWER4_ONLY

2013-03-11 Thread Paul Bolle
The Kconfig symbol POWER4_ONLY got removed in commit 694caf0255dcab506d1e174c96a65ab65d96e108 ("powerpc: Remove CONFIG_POWER4_ONLY"). Remove its last traces. Signed-off-by: Paul Bolle --- Untested. arch/powerpc/platforms/Kconfig.cputype | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-

Re: [PATCH] powerpc: Use PTR_RET instead of IS_ERR/PTR_ERR

2013-03-11 Thread Geoff Levand
On Sun, 2013-03-10 at 15:07 +0200, Adrian-Leonard Radu wrote: > Signed-off-by: Adrian-Leonard Radu > --- > arch/powerpc/kernel/iommu.c |2 +- > arch/powerpc/kernel/time.c |4 +--- > arch/powerpc/platforms/ps3/time.c|4 +--- > arch/powerpc/sysdev/rtc_cmos_setup.c

Re: Linux kernel 3.x problems on PowerMac G5

2013-03-11 Thread Phileas Fogg
On 03/10/2013 01:52 PM, Benjamin Herrenschmidt wrote: On Sun, 2013-03-10 at 11:53 +0100, Phileas Fogg wrote: Good news :) I found the bug. MMU features were not set properly for PPC970MP DD1.0 which, unfortunately, my machine has. Damn, one line fix but one week searching. Linux 3.8.2 boots with

Re: [PATCH] Make PCIe hotplug work with Freescale PCIe controllers

2013-03-11 Thread Kumar Gala
On Mar 11, 2013, at 9:47 AM, Rojhalat Ibrahim wrote: > Hi, > > this issue was brought up before. > See this thread: > https://lists.ozlabs.org/pipermail/linuxppc-dev/2012-July/099529.html > > The following patch works for me. > Hot-added devices appear after "echo 1 > /sys/bus/pci/rescan". >

Re: Dead mappings and drivers in MTD

2013-03-11 Thread Artem Bityutskiy
On Mon, 2013-03-11 at 09:20 -0700, Olof Johansson wrote: > On Mon, Mar 11, 2013 at 8:34 AM, Artem Bityutskiy wrote: > > Hi MTD folks, > > > > we have huge amount of drivers, espacially mapping drives in > > 'drivers/mtd', and for sure may of them are for ancient devices which > > are long dead and

Re: Dead mappings and drivers in MTD

2013-03-11 Thread Olof Johansson
On Mon, Mar 11, 2013 at 8:34 AM, Artem Bityutskiy wrote: > Hi MTD folks, > > we have huge amount of drivers, espacially mapping drives in > 'drivers/mtd', and for sure may of them are for ancient devices which > are long dead and not supported by modern kernels anyway. I would like > to do a small

Re: [PATCH] Make PCIe hotplug work with Freescale PCIe controllers

2013-03-11 Thread Joakim Tjernlund
Rojhalat Ibrahim wrote on 2013/03/11 15:47:30: > > Hi, > > this issue was brought up before. > See this thread: https://lists.ozlabs.org/pipermail/linuxppc-dev/2012-July/099529.html > > The following patch works for me. > Hot-added devices appear after "echo 1 > /sys/bus/pci/rescan". > I test

[PATCH] Make PCIe hotplug work with Freescale PCIe controllers

2013-03-11 Thread Rojhalat Ibrahim
Hi, this issue was brought up before. See this thread: https://lists.ozlabs.org/pipermail/linuxppc-dev/2012-July/099529.html The following patch works for me. Hot-added devices appear after "echo 1 > /sys/bus/pci/rescan". I tested it with a P5020DS development system. Signed-off-by: Rojhalat I

[PATCH -next] powerpc: use for_each_compatible_node() macro

2013-03-11 Thread Wei Yongjun
From: Wei Yongjun Use for_each_compatible_node() macro instead of open coding it. Signed-off-by: Wei Yongjun --- arch/powerpc/include/asm/parport.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/parport.h b/arch/powerpc/include/asm/parport.h in

[v4][PATCH 7/7] book3e/kgdb: Fix a single stgep case of lazy IRQ

2013-03-11 Thread Tiejun Chen
When we're in kgdb_singlestep(), we have to work around to get thread_info by copying from the kernel stack before calling kgdb_handle_exception(), then copying it back afterwards. But for PPC64, we have a lazy interrupt implementation. So after copying thread info frome kernle stack, if we need t

[v4][PATCH 6/7] powerpc/kgdb: use DEFINE_PER_CPU to allocate kgdb's thread_info

2013-03-11 Thread Tiejun Chen
Use DEFINE_PER_CPU to allocate thread_info statically instead of kmalloc(). This can avoid introducing more memory check codes. Signed-off-by: Tiejun Chen --- arch/powerpc/kernel/kgdb.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/kgdb.c b/arch/

[v4][PATCH 5/7] kgdb/kgdbts: support ppc64

2013-03-11 Thread Tiejun Chen
We can't look up the address of the entry point of the function simply via that function symbol for all architectures. For PPC64 ABI, actually there is a function descriptors structure. A function descriptor is a three doubleword data structure that contains the following values: * The fi

[v4][PATCH 4/7] powerpc/book3e: support kgdb for kernel space

2013-03-11 Thread Tiejun Chen
Currently we need to skip this for supporting KGDB. Signed-off-by: Tiejun Chen --- arch/powerpc/kernel/exceptions-64e.S |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/exceptions-64e.S b/arch/powerpc/kernel/exceptions-64e.S index 7df9a1f..fd5d61b 10

[v4][PATCH 3/7] book3e/kgdb: update thread's dbcr0

2013-03-11 Thread Tiejun Chen
gdb always need to generate a single step properly to invoke a kgdb state. But with lazy interrupt, book3e can't always trigger a debug exception with a single step since the current is blocked for handling those pending exception, then we miss that expected dbcr configuration at last to generate a

[v4][PATCH 2/7] powerpc/book3e: store critical/machine/debug exception thread info

2013-03-11 Thread Tiejun Chen
We need to store thread info to these exception thread info like something we already did for PPC32. Signed-off-by: Tiejun Chen --- arch/powerpc/kernel/exceptions-64e.S | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/powerpc/kernel/exceptions-64e.S b/arch/powerpc/ker

[v4][PATCH 1/7] powerpc/book3e: load critical/machine/debug exception stack

2013-03-11 Thread Tiejun Chen
We always alloc critical/machine/debug check exceptions. This is different from the normal exception. So we should load these exception stack properly like we did for booke. Signed-off-by: Tiejun Chen --- arch/powerpc/kernel/exceptions-64e.S | 49 +++--- 1 file chan

[v4][PATCH 0/7] powerpc/book3e: powerpc/book3e: make kgdb to work well

2013-03-11 Thread Tiejun Chen
This patchset is used to support kgdb/gdb on book3e. Validated on p4080ds and p5040ds with test single step and breakpoint v4: * use DEFINE_PER_CPU to allocate kgdb's thread_info * add patch 7 to make usre copy thread_info only !__check_irq_replay * leave "andi. r14,r11,MSR_PR" out of "#ifndef

Re: [PATCH]->[PATCH v2] kgdb: Removed kmalloc returned value cast

2013-03-11 Thread tiejun.chen
On 03/11/2013 09:33 AM, tiejun.chen wrote: On 03/11/2013 06:39 AM, Alex Grad wrote: While at it, check kmalloc return value. Signed-off-by: Alex Grad --- arch/powerpc/kernel/kgdb.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/kgdb.c b/arch/p

[PATCH 1/1] powerpc/kgdb: use DEFINE_PER_CPU to allocate kgdb's thread_info

2013-03-11 Thread Tiejun Chen
Use DEFINE_PER_CPU to allocate thread_info statically instead of kmalloc(). This can avoid introducing more memory check codes. Signed-off-by: Tiejun Chen --- arch/powerpc/kernel/kgdb.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/kgdb.c b/arch/

RE: [PATCH 3/4] TDM Device Tree entries for various Freescale Platforms

2013-03-11 Thread Singh Sandeep-B37400
> -Original Message- > From: Timur Tabi [mailto:ti...@tabi.org] > Sent: Friday, March 08, 2013 10:17 PM > To: Singh Sandeep-B37400 > Cc: linuxppc-dev@lists.ozlabs.org; Aggrwal Poonam-B10812 > Subject: Re: [PATCH 3/4] TDM Device Tree entries for various Freescale > Platforms > > On Thu, Ma