Re: [PATCH v2] powerpc32: Kexec support for PPC440X chipsets

2011-07-12 Thread Suzuki Poulose
On 07/13/11 10:58, Kumar Gala wrote: On Jul 12, 2011, at 1:44 AM, Suzuki K. Poulose wrote: Changes from V1: Uses a tmp mapping in the other address space to setup the 1:1 mapping (suggested by Sebastian Andrzej Siewior). Note: Should we do the same for kernel entry code for P

Re: [PATCH 2/3] powerpc/44x: don't use tlbivax on AMP systems

2011-07-12 Thread Tony Breeds
On Wed, Jul 13, 2011 at 12:48:21AM -0500, Kumar Gala wrote: > > On Jul 4, 2011, at 11:38 PM, Tony Breeds wrote: > > > +#ifdef CONFIG_PPC_47x > > +void __init early_init_mmu_47x(void) > > +{ > > +#ifdef CONFIG_SMP > > + unsigned long root = of_get_flat_dt_root(); > > + if (of_get_flat_dt_prop(

Re: [PATCH 2/3] powerpc/44x: don't use tlbivax on AMP systems

2011-07-12 Thread Kumar Gala
On Jul 4, 2011, at 11:38 PM, Tony Breeds wrote: > +#ifdef CONFIG_PPC_47x > +void __init early_init_mmu_47x(void) > +{ > +#ifdef CONFIG_SMP > + unsigned long root = of_get_flat_dt_root(); > + if (of_get_flat_dt_prop(root, "cooperative-partition", NULL)) > + mmu_clear_feature(MM

[PATCH] hvc_console: Add kdb support

2011-07-12 Thread Anton Blanchard
Add poll_get_char and poll_put_char for kdb. Enable kdb at boot with: kgdboc=hvc0 or at runtime with: echo hvc0 > /sys/module/kgdboc/parameters/kgdboc Signed-off-by: Anton Blanchard --- A couple of things: - I needed to enable CONFIG_KGDB_SERIAL_CONSOLE in order to enable CONFIG_CONSOLE_P

Re: [PATCH] powerpc: add denormalisation exception handling for POWER6/7

2011-07-12 Thread Michael Neuling
In message <5e6fbb75-be97-4d97-aea2-ec8eaf1e0...@kernel.crashing.org> you wrote : > > On Jul 11, 2011, at 12:52 AM, Michael Neuling wrote: > > > On POWER6 and POWER7 if the input operand to an instruction is a > > denormalised single precision binary floating we can take a > > denormalisation exc

Re: [PATCH v2] powerpc32: Kexec support for PPC440X chipsets

2011-07-12 Thread Kumar Gala
On Jul 12, 2011, at 1:44 AM, Suzuki K. Poulose wrote: > Changes from V1: Uses a tmp mapping in the other address space to setup >the 1:1 mapping (suggested by Sebastian Andrzej Siewior). > > Note: Should we do the same for kernel entry code for PPC44x ? > > This patch adds kexec

Re: [PATCH] powerpc: add denormalisation exception handling for POWER6/7

2011-07-12 Thread Kumar Gala
On Jul 11, 2011, at 12:52 AM, Michael Neuling wrote: > On POWER6 and POWER7 if the input operand to an instruction is a > denormalised single precision binary floating we can take a > denormalisation exception where it's expected that the hypervisor (HV=1) > will fix up the inputs before the inst

[PATCH] powerpc/pseries: Fix hvterm_raw_get_chars to accept < 16 chars, fixing xmon

2011-07-12 Thread Anton Blanchard
commit 4d2bb3f50036 (powerpc/pseries: Re-implement HVSI as part of hvc_vio) changed udbg_getc to be based on hvterm_raw_get_chars. Unfortunately hvterm_raw_get_chars returns -EAGAIN if you ask for anything less than 16 characters. As a result xmon no longer accepts input and prints a stream of jun

MPC8360RDK: Badness at kernel/softirq.c:122

2011-07-12 Thread ps2k
Hi, When we are writing to the flash while data traffic is on we do see the target rebooting with the following messages. Could some body please explain what's going on here? Any help is greatly appreciated. Regards psk Call Trace:" LR [c0005ea4] do_softirq+0x58/0x5c" Badness at c0051360 [verbo

Re: [PATCH] [v3] kexec-tools: ppc32: Fixup ThreadPointer for purgatory code

2011-07-12 Thread Simon Horman
On Tue, Jul 12, 2011 at 03:20:40PM +0530, Suzuki K. Poulose wrote: > PPC32 ELF ABI expects r2 to be loaded with Thread Pointer, which is 0x7000 > bytes past the end of TCB. Though the purgatory is single threaded, it uses > TCB scratch space in vsnprintf(). This patch allocates a 1024byte TCB > and

Re: [PATCH] 4xx: Add check_link to struct ppc4xx_pciex_hwops

2011-07-12 Thread Tony Breeds
On Tue, Jul 12, 2011 at 02:04:04PM -0400, Josh Boyer wrote: > On Tue, Jul 12, 2011 at 12:40:07PM -0500, Ayman El-Khashab wrote: > >On Fri, Jul 01, 2011 at 04:44:24PM +1000, Tony Breeds wrote: > >> All current pcie controllers unconditionally use SDR to check the link and > >> poll for reset. > > >

Re: [PATCH] 4xx: Add check_link to struct ppc4xx_pciex_hwops

2011-07-12 Thread Tony Breeds
On Tue, Jul 12, 2011 at 05:13:38PM -0500, Ayman El-Khashab wrote: > Ok, so let me ask the following ... will it cause trouble if > I swap the sequence of the calls to the following in xxx_port_init > > ppc4xx_pciex_port_init_mapping(...) > > and > > if (ppc4xx_pciex_hwops->check_link)... > > T

Re: [PATCH] 4xx: Add check_link to struct ppc4xx_pciex_hwops

2011-07-12 Thread Ayman El-Khashab
On Tue, Jul 12, 2011 at 02:04:04PM -0400, Josh Boyer wrote: > On Tue, Jul 12, 2011 at 12:40:07PM -0500, Ayman El-Khashab wrote: > >On Fri, Jul 01, 2011 at 04:44:24PM +1000, Tony Breeds wrote: > >> All current pcie controllers unconditionally use SDR to check the link and > >> poll for reset. > > >

Please pull 'next' branch of 4xx tree

2011-07-12 Thread Josh Boyer
Hi Ben, A few fixes from Tony/Dave, a DTS update from Stefan, and a MAINTAINERS update. josh The following changes since commit af9719c3062dfe216a0c3de3fa52be6d22b4456c: powerpc: Use -mtraceback=no (2011-07-01 13:49:27 +1000) are available in the git repository at: ssh://master.kernel.org/

Re: [PATCH 1/3] powerpc/47x: allow kernel to be loaded in higher physical memory

2011-07-12 Thread Suzuki Poulose
On 07/12/11 18:57, Josh Boyer wrote: On Tue, Jul 5, 2011 at 2:18 AM, Suzuki Poulose wrote: On 07/05/11 10:06, Tony Breeds wrote: From: Dave Kleikamp The 44x code (which is shared by 47x) assumes the available physical memory begins at 0x. This is not necessarily the case in an AMP e

Re: softirqs are invoked while bottom halves are masked (was: Re: [PATCH] [PATCH] Fix deadlock in af_packet while stressing raw ethernet socket interface)

2011-07-12 Thread Ronny Meeus
On Tue, Jul 12, 2011 at 5:27 PM, Eric Dumazet wrote: > Le mardi 12 juillet 2011 à 14:03 +0200, Ronny Meeus a écrit : > >> Sorry for not mentioning we were using a patched kernel. >> I was not aware that the code involved was patched by the FreeScale >> patches we applied. The code found in the sta

Re: [PATCH] 4xx: Add check_link to struct ppc4xx_pciex_hwops

2011-07-12 Thread Josh Boyer
On Tue, Jul 12, 2011 at 12:40:07PM -0500, Ayman El-Khashab wrote: >On Fri, Jul 01, 2011 at 04:44:24PM +1000, Tony Breeds wrote: >> All current pcie controllers unconditionally use SDR to check the link and >> poll for reset. > >I was able to apply this patch and then modify the 460SX to >work corre

Re: [PATCH] 4xx: Add check_link to struct ppc4xx_pciex_hwops

2011-07-12 Thread Ayman El-Khashab
On Fri, Jul 01, 2011 at 04:44:24PM +1000, Tony Breeds wrote: > All current pcie controllers unconditionally use SDR to check the link and > poll for reset. I was able to apply this patch and then modify the 460SX to work correctly, so I think it is fine. There is only 1 comment below. So how doe

Re: softirqs are invoked while bottom halves are masked (was: Re: [PATCH] [PATCH] Fix deadlock in af_packet while stressing raw ethernet socket interface)

2011-07-12 Thread Ronny Meeus
On Tue, Jul 12, 2011 at 12:10 PM, Eric Dumazet wrote: > Le mardi 12 juillet 2011 à 11:23 +0200, Thomas De Schampheleire a > écrit : >> Hi, >> >> I'm adding the linuxppc-dev mailing list since this may be pointing to >> an irq/softirq problem in the powerpc architecture-specific code... > >> >> Not

Re: softirqs are invoked while bottom halves are masked (was: Re: [PATCH] [PATCH] Fix deadlock in af_packet while stressing raw ethernet socket interface)

2011-07-12 Thread Eric Dumazet
Le mardi 12 juillet 2011 à 14:03 +0200, Ronny Meeus a écrit : > Sorry for not mentioning we were using a patched kernel. > I was not aware that the code involved was patched by the FreeScale > patches we applied. The code found in the stack dumps is not > implemented in FSL specific files. > > Wh

RE: RFC: top level compatibles for virtual platforms

2011-07-12 Thread Yoder Stuart-B08248
> -Original Message- > From: Wood Scott-B07421 > Sent: Monday, July 11, 2011 4:07 PM > To: Yoder Stuart-B08248 > Cc: Wood Scott-B07421; Tabi Timur-B04825; Grant Likely; Benjamin > Herrenschmidt; Gala Kumar- > B11780; Alexander Graf; linuxppc-...@ozlabs.org > Subject: Re: RFC: top level c

Re: [PATCH 1/3] powerpc/47x: allow kernel to be loaded in higher physical memory

2011-07-12 Thread Josh Boyer
On Tue, Jul 5, 2011 at 2:18 AM, Suzuki Poulose wrote: > On 07/05/11 10:06, Tony Breeds wrote: >> >> From: Dave Kleikamp >> >> The 44x code (which is shared by 47x) assumes the available physical >> memory >> begins at 0x.  This is not necessarily the case in an AMP >> environment. >> >> Su

Re: [PATCH] mm: Fix output of total_ram.

2011-07-12 Thread Josh Boyer
On Tue, Jul 5, 2011 at 12:44 AM, Tony Breeds wrote: > On 32bit platforms that support >= 4GB memory total_ram was truncated. > This creates a confusing printk: >        Top of RAM: 0x1, Total RAM: 0x0 > Fix that: >        Top of RAM: 0x1, Total RAM: 0x1 > > Signed-off-by: T

Re: softirqs are invoked while bottom halves are masked

2011-07-12 Thread David Miller
From: David Miller Date: Tue, 12 Jul 2011 05:08:17 -0700 (PDT) > From: Ronny Meeus > Date: Tue, 12 Jul 2011 14:03:04 +0200 > >> but we still see the issue "BUG: sleeping function called from invalid >> context": >> >> [ 91.015989] BUG: sleeping function called from invalid context at >> inc

Re: softirqs are invoked while bottom halves are masked

2011-07-12 Thread David Miller
From: Ronny Meeus Date: Tue, 12 Jul 2011 14:03:04 +0200 > but we still see the issue "BUG: sleeping function called from invalid > context": > > [ 91.015989] BUG: sleeping function called from invalid context at > include/linux/skbuff.h:786 > [ 91.117096] in_atomic(): 1, irqs_disabled(): 0,

[PATCH] powerpc/44x: Use correct phy-address dt nodes on taishan.dts

2011-07-12 Thread Stefan Roese
Taishan (440GX) has the first PHY (EMAC2) mapped at PHY address 1 and the 2nd PHY (EMAC3) at PHY address 3. Use "phy-address" to correctly describe this instead of "phy-map". Signed-off-by: Stefan Roese Cc: Josh Boyer --- arch/powerpc/boot/dts/taishan.dts |4 ++-- 1 files changed, 2 inserti

Re: [RFC PATCH 7/7] powerpc: Support RELOCATABLE kernel for PPC44x

2011-07-12 Thread Suzuki Poulose
On 06/16/11 19:44, Michal Simek wrote: Changes: - Find out address where kernel runs - Create the first 256MB TLB from online detected address Limitations: - Kernel must be aligned to 256MB Backport: - Changes in page.h are backported from newer kernel version mmu_mapin_ram function has to ref

Re: softirqs are invoked while bottom halves are masked (was: Re: [PATCH] [PATCH] Fix deadlock in af_packet while stressing raw ethernet socket interface)

2011-07-12 Thread Eric Dumazet
Le mardi 12 juillet 2011 à 11:23 +0200, Thomas De Schampheleire a écrit : > Hi, > > I'm adding the linuxppc-dev mailing list since this may be pointing to > an irq/softirq problem in the powerpc architecture-specific code... > > Note that the reason we are seeing this problem, may be because the

Re: softirqs are invoked while bottom halves are masked

2011-07-12 Thread David Miller
From: Thomas De Schampheleire Date: Tue, 12 Jul 2011 11:23:28 +0200 > Note that the reason we are seeing this problem, may be because the > kernel we are using contains some patches from Freescale. > Specifically, in dev_queue_xmit(), support is added for hardware queue > handling, just before en

[PATCH] [v3] kexec-tools: ppc32: Fixup ThreadPointer for purgatory code

2011-07-12 Thread Suzuki K. Poulose
PPC32 ELF ABI expects r2 to be loaded with Thread Pointer, which is 0x7000 bytes past the end of TCB. Though the purgatory is single threaded, it uses TCB scratch space in vsnprintf(). This patch allocates a 1024byte TCB and populates the TP with the address accordingly. Changes from V2: Avoid add

softirqs are invoked while bottom halves are masked (was: Re: [PATCH] [PATCH] Fix deadlock in af_packet while stressing raw ethernet socket interface)

2011-07-12 Thread Thomas De Schampheleire
Hi, I'm adding the linuxppc-dev mailing list since this may be pointing to an irq/softirq problem in the powerpc architecture-specific code... On Tue, Jul 12, 2011 at 8:58 AM, Eric Dumazet wrote: > Le mardi 12 juillet 2011 à 08:38 +0200, Ronny Meeus a écrit : >> On Tue, Jul 12, 2011 at 5:27 AM,

[PATCH v2] powerpc/85xx: fix mpic configuration in CAMP mode

2011-07-12 Thread Fabio Baltieri
Change the string to check for CAMP mode boot on MPC85xx (eg. P2020) to match the one in the corresponding dts files (p2020rdb_camp_core{0,1}.dts). Without this fix the mpic is configured as in the SMP boot mode, which causes the first core to report a protected source interrupt error for devices

Re: [PATCH] powerpc/85xx: fix mpic configuration in CAMP mode

2011-07-12 Thread Fabio Baltieri
On Mon, Jul 11, 2011 at 9:38 PM, Scott Wood wrote: > On Sun, 10 Jul 2011 20:55:32 +0200 > Fabio Baltieri wrote: > >> Change the string to check for CAMP mode boot on MPC85xx (eg. P2020) to match >> the one in the corresponding dts files (p2020rdb_camp_core{0,1}.dts). >> >> Without this fix the mp