[PATCH 1/4] 8xx: Optimze TLB Miss handlers

2010-02-26 Thread Joakim Tjernlund
This removes a couple of insn's from the TLB Miss handlers whithout changing functionality. --- arch/powerpc/kernel/head_8xx.S | 11 +++ 1 files changed, 3 insertions(+), 8 deletions(-) diff --git a/arch/powerpc/kernel/head_8xx.S b/arch/powerpc/kernel/head_8xx.S index 3ef743f..ecc4a02

[PATCH 3/4] 8xx: Don't touch ACCESSED when no SWAP.

2010-02-26 Thread Joakim Tjernlund
Only the swap function cares about the ACCESSED bit in the pte. Do not waste cycles updateting ACCESSED when swap is not compiled into the kernel. --- arch/powerpc/kernel/head_8xx.S |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/head_8xx.S

[PATCH 4/4] 8xx: Use SPRG2 and DAR registers to stash r11 and cr.

2010-02-26 Thread Joakim Tjernlund
This avoids storing these registers in memory. CPU6 errata will still use the old way. Remove some G2 leftover accesses from 2.4 --- arch/powerpc/kernel/head_8xx.S | 49 +-- 1 files changed, 36 insertions(+), 13 deletions(-) diff --git

[PATCH] hvc_console: Fix a race between hvc_close and hvc_remove

2010-02-26 Thread Amit Shah
Alan pointed out a race in the code where hvc_remove is invoked. The recent virtio_console work is the first user of hvc_remove(). Alan describes it thus: The hvc_console assumes that a close and remove call can't occur at the same time. In addition tty_hangup(tty) is problematic as tty_hangup

Re: Gianfar driver failing on MPC8641D based board

2010-02-26 Thread Martyn Welch
Anton Vorontsov wrote: On Thu, Feb 25, 2010 at 04:46:54PM +, Martyn Welch wrote: [...] nfs: server 192.168.0.1 not responding, still trying Further testing has shown that this isn't restricted to warm reboots, it happens from cold as well. In addition, the exact timing of

Re: Gianfar driver failing on MPC8641D based board

2010-02-26 Thread Martyn Welch
Anton Vorontsov wrote: On Thu, Feb 25, 2010 at 07:53:30PM -0500, Paul Gortmaker wrote: [...] I was able to reproduce it on an 8641D and bisected it down to this: --- commit a3bc1f11e9b867a4f49505ecac486a33af248b2e Author: Anton Vorontsov avoront...@ru.mvista.com Date: Tue Nov

Re: [Cbe-oss-dev] No otheros feature on new PS3 slim ?

2010-02-26 Thread David Woodhouse
On Fri, 2009-08-21 at 09:58 -0700, geoffrey.lev...@am.sony.com wrote: The feature of Install Other OS was removed from the new Slim PS3 model to focus on delivering games and other entertainment content. Please be assured that SCE is committed to continue the support for previously sold

Re: [PATCH] powerpc: Fix lwsync feature fixup vs. modules on 64-bit

2010-02-26 Thread Sachin Sant
Benjamin Herrenschmidt wrote: Anton's commit enabling the use of the lwsync fixup mechanism on 64-bit breaks modules. The lwsync fixup section uses .long instead of the FTR_ENTRY_OFFSET macro used by other fixups sections, and thus will generate 32-bit relocations that our module loader cannot

Re: Gianfar driver failing on MPC8641D based board

2010-02-26 Thread Anton Vorontsov
On Fri, Feb 26, 2010 at 12:06:15PM +, Martyn Welch wrote: Anton Vorontsov wrote: On Thu, Feb 25, 2010 at 07:53:30PM -0500, Paul Gortmaker wrote: [...] I was able to reproduce it on an 8641D and bisected it down to this: --- commit

Re: Gianfar driver failing on MPC8641D based board

2010-02-26 Thread Martyn Welch
Martyn Welch wrote: Paul Gortmaker wrote: On 10-02-26 09:35 AM, Anton Vorontsov wrote: On Fri, Feb 26, 2010 at 12:06:15PM +, Martyn Welch wrote: Anton Vorontsov wrote: On Thu, Feb 25, 2010 at 07:53:30PM -0500, Paul Gortmaker wrote: [...]

Re: Gianfar driver failing on MPC8641D based board

2010-02-26 Thread Anton Vorontsov
On Fri, Feb 26, 2010 at 03:34:07PM +, Martyn Welch wrote: [...] Out of 10 boot attempts, 7 failed. OK, I see why. With ip=on (dhcp boot) it's much harder to trigger it. With static ip config can I see the same. ___ Linuxppc-dev mailing list

Re: Gianfar driver failing on MPC8641D based board

2010-02-26 Thread Paul Gortmaker
On 10-02-26 09:35 AM, Anton Vorontsov wrote: On Fri, Feb 26, 2010 at 12:06:15PM +, Martyn Welch wrote: Anton Vorontsov wrote: On Thu, Feb 25, 2010 at 07:53:30PM -0500, Paul Gortmaker wrote: [...] I was able to reproduce it on an 8641D and bisected it down to this: --- commit

Re: Gianfar driver failing on MPC8641D based board

2010-02-26 Thread Paul Gortmaker
On 10-02-26 11:10 AM, Anton Vorontsov wrote: On Fri, Feb 26, 2010 at 03:34:07PM +, Martyn Welch wrote: [...] Out of 10 boot attempts, 7 failed. OK, I see why. With ip=on (dhcp boot) it's much harder to trigger it. With static ip config can I see the same. I'd kind of expected to see us

Re: [Patch 1/1] PPC64-HWBKPT: Implement hw-breakpoints for PPC64

2010-02-26 Thread Frederic Weisbecker
On Tue, Feb 23, 2010 at 04:27:15PM +0530, K.Prasad wrote: On Mon, Feb 22, 2010 at 06:47:46PM +0530, K.Prasad wrote: On Sun, Feb 21, 2010 at 02:01:37AM +0100, Frederic Weisbecker wrote: On Mon, Feb 15, 2010 at 11:29:14AM +0530, K.Prasad wrote: [snipped] Also, do you think addr/len/type is

Re: Does Linux 2.6.32 support NAND flash connect with MPC8247 through localbus with GPCM mode?

2010-02-26 Thread Scott Wood
On Fri, Feb 26, 2010 at 10:08:09AM +0800, Peter Pan wrote: I'm recently porting Linux 2.6.32 to our custom board with MPC8247. We have a NAND flash connected using GPCM mode of local bus. But after I search through the Linux source, there is no compatible like fsl,gpcm-nand. And I can not

Re: [Cbe-oss-dev] No otheros feature on new PS3 slim ?

2010-02-26 Thread Geoff Levand
Hi All, On 02/26/2010 04:30 AM, David Woodhouse wrote: On Fri, 2009-08-21 at 09:58 -0700, geoffrey.lev...@am.sony.com wrote: The feature of Install Other OS was removed from the new Slim PS3 model to focus on delivering games and other entertainment content. Please be assured that SCE is

Re: [PATCH] 8250: add workaround for MPC8[356]xx UART break IRQ storm

2010-02-26 Thread Kumar Gala
On Feb 26, 2010, at 1:25 PM, Paul Gortmaker wrote: Sending a break on the SOC UARTs found in some MPC83xx/85xx/86xx chips seems to cause a short lived IRQ storm (/proc/interrupts typically shows somewhere between 300 and 1500 events). Unfortunately this renders SysRQ over the serial console

Re: [PATCH 1/4] 8xx: Optimze TLB Miss handlers

2010-02-26 Thread Scott Wood
On Fri, Feb 26, 2010 at 09:29:40AM +0100, Joakim Tjernlund wrote: This removes a couple of insn's from the TLB Miss handlers whithout changing functionality. --- Did a quick test of the patchset, seems to work OK (without CONFIG_SWAP or CONFIG_MODULES). Didn't try with CONFIG_8xx_CPU6.

Re: [PATCH 1/4] 8xx: Optimze TLB Miss handlers

2010-02-26 Thread Kumar Gala
On Feb 26, 2010, at 2:29 AM, Joakim Tjernlund wrote: li r11, 0x00f0 - rlwimi r10, r11, 0, 24, 28 /* Set 24-27, clear 28 */ + rlwimi r10, r11, 0, 0x07f8 /* Set 24-27, clear 21-23,28 */ DO_8xx_CPU6(0x2d80, r3) mtspr SPRN_MI_RPN, r10/* Update

Re: [net-next-2.6 PATCH v2 0/3] Support for MPC512x FEC

2010-02-26 Thread Anatolij Gustschin
Hi David, On Mon, 22 Feb 2010 03:44:52 -0800 (PST) David Miller da...@davemloft.net wrote: From: Anatolij Gustschin ag...@denx.de Date: Mon, 22 Feb 2010 12:37:24 +0100 Could you please comment on this patch series. It's in the net-next-2.6 tree. If you need to make any more changes,

RE: [PATCH 3/7] RapidIO: Add Port-Write handling for EM

2010-02-26 Thread Bounine, Alexandre
Micha Nelissen wrote: Bounine, Alexandre wrote: Micha Nelissen wrote: Alexandre Bounine wrote: /** + * rio_em_set_ops- Sets Error Managment operations for a particular vendor switch + * @rdev: RIO device + * + * Searches the RIO EM ops table for known switch types. If the vid +

Re: [PATCH] 8250: add workaround for MPC8[356]xx UART break IRQ storm

2010-02-26 Thread Paul Gortmaker
On 10-02-26 02:42 PM, Kumar Gala wrote: On Feb 26, 2010, at 1:25 PM, Paul Gortmaker wrote: [...] +if ((up-bugs UART_BUG_PPC) (status == UART_LSR_RFE_ERROR_BITS)) { +spin_unlock_irqrestore(up-port.lock, flags); +return; +} + [...] is there harm

Re: [PATCH] 8250: add workaround for MPC8[356]xx UART break IRQ storm

2010-02-26 Thread Scott Wood
On Fri, Feb 26, 2010 at 01:42:39PM -0600, Kumar Gala wrote: On Feb 26, 2010, at 1:25 PM, Paul Gortmaker wrote: Sending a break on the SOC UARTs found in some MPC83xx/85xx/86xx chips seems to cause a short lived IRQ storm (/proc/interrupts typically shows somewhere between 300 and 1500

[PATCH] 8250: add workaround for MPC8[356]xx UART break IRQ storm

2010-02-26 Thread Paul Gortmaker
Sending a break on the SOC UARTs found in some MPC83xx/85xx/86xx chips seems to cause a short lived IRQ storm (/proc/interrupts typically shows somewhere between 300 and 1500 events). Unfortunately this renders SysRQ over the serial console completely inoperable. Testing with obvious things like

Re: Gianfar driver failing on MPC8641D based board

2010-02-26 Thread Anton Vorontsov
On Fri, Feb 26, 2010 at 11:27:42AM -0500, Paul Gortmaker wrote: On 10-02-26 11:10 AM, Anton Vorontsov wrote: On Fri, Feb 26, 2010 at 03:34:07PM +, Martyn Welch wrote: [...] Out of 10 boot attempts, 7 failed. OK, I see why. With ip=on (dhcp boot) it's much harder to trigger it.

[net-next-2.6 PATCH v3 0/3] Support for MPC512x FEC

2010-02-26 Thread Anatolij Gustschin
These patches attempt to provide support for the Freescale MPC512x FEC in the fs_enet driver. The first cleanup patch replaces printk by dev_xxx. The second and third attemt to support MPC5121 FEC in the FEC driver. Changes since previous version: - don't attempt to provide runtime selection of

[net-next-2.6 PATCH v3 1/3] fs_enet: use dev_xxx instead of printk

2010-02-26 Thread Anatolij Gustschin
Signed-off-by: Anatolij Gustschin ag...@denx.de Acked-by: Grant Likely grant.lik...@secretlab.ca --- drivers/net/fs_enet/fs_enet-main.c | 39 +-- drivers/net/fs_enet/mac-fcc.c |5 ++- drivers/net/fs_enet/mac-fec.c | 12 --

[net-next-2.6 PATCH v3 2/3] fs_enet: Add support for MPC512x to fs_enet driver

2010-02-26 Thread Anatolij Gustschin
Extend the fs_enet driver to support MPC512x FEC. Enable it with CONFIG_FS_ENET_MPC5121_FEC option. Signed-off-by: John Rigby jcri...@gmail.com Signed-off-by: Piotr Ziecik ko...@semihalf.com Signed-off-by: Wolfgang Denk w...@denx.de Signed-off-by: Anatolij Gustschin ag...@denx.de Acked-by: Grant

[net-next-2.6 PATCH v3 3/3] fs_enet: add FEC TX buffer alignment workaround for MPC5121

2010-02-26 Thread Anatolij Gustschin
MPC5121 FEC requeries 4-byte alignmnent for TX data buffers. This patch is a work around that copies misaligned tx packets to an aligned skb before sending. Signed-off-by: John Rigby jcri...@gmail.com Signed-off-by: Piotr Ziecik ko...@semihalf.com Signed-off-by: Wolfgang Denk w...@denx.de

Re: Gianfar driver failing on MPC8641D based board

2010-02-26 Thread Paul Gortmaker
On 10-02-26 04:38 PM, Anton Vorontsov wrote: OK, I think I found what's happening in gianfar. Some background... start_xmit() prepares new skb for transmitting, generally it does three things: 1. sets up all BDs (marks them ready to send), except the first one. 2. stores skb into

Proposal to move PCI out of arch/powerpc and into drivers/of

2010-02-26 Thread John Linn
Hi all, We are in the process of putting PCI/PCIe into the microblaze architecture. In order to not duplicate/fork the PCI code in Powerpc, we're proposing to move the PCI code from arch/powerpc into drivers/of such that it would be common code for Powerpc and MicroBlaze. This would be the

Re: Proposal to move PCI out of arch/powerpc and into drivers/of

2010-02-26 Thread Jesse Barnes
On Fri, 26 Feb 2010 16:07:59 -0700 John Linn john.l...@xilinx.com wrote: Hi all, We are in the process of putting PCI/PCIe into the microblaze architecture. In order to not duplicate/fork the PCI code in Powerpc, we're proposing to move the PCI code from arch/powerpc into drivers/of

Re: Proposal to move PCI out of arch/powerpc and into drivers/of

2010-02-26 Thread Kumar Gala
On Feb 26, 2010, at 5:07 PM, John Linn wrote: Hi all, We are in the process of putting PCI/PCIe into the microblaze architecture. In order to not duplicate/fork the PCI code in Powerpc, we're proposing to move the PCI code from arch/powerpc into drivers/of such that it would be

Re: Proposal to move PCI out of arch/powerpc and into drivers/of

2010-02-26 Thread Grant Likely
On Fri, Feb 26, 2010 at 4:50 PM, Kumar Gala ga...@kernel.crashing.org wrote: On Feb 26, 2010, at 5:07 PM, John Linn wrote: Hi all, We are in the process of putting PCI/PCIe into the microblaze architecture. In order to not duplicate/fork the PCI code in Powerpc, we're proposing to move

Re: Does Linux 2.6.32 support NAND flash connect with MPC8247 through localbus with GPCM mode?

2010-02-26 Thread Peter Pan
2010/2/27 Scott Wood scottw...@freescale.com: On Fri, Feb 26, 2010 at 10:08:09AM +0800, Peter Pan wrote: There isn't one.  I was not under the impression that such a configuration was even possible (how do you control ALE/CLE, for example?).  There is a NAND driver that uses UPM, though --

Re: [PATCH] hvc_console: Fix a race between hvc_close and hvc_remove

2010-02-26 Thread Alan Cox
+ tty_kref_get(hp-tty); spin_lock_irqsave(hp-lock, flags); tty = hp-tty; @@ -830,7 +833,9 @@ int hvc_remove(struct hvc_struct *hp) * cleaned up the hvc_struct. */ if (tty) - tty_hangup(tty); + tty_vhangup(tty); + +

PCI NIC for powerpc system

2010-02-26 Thread John Linn
Hi, I should apologize ahead of time for my lack of knowledge with PCI. I'm trying to better understand if I can run a standard off the shelf PCI NIC with a powerpc kernel as the PCI with device tree is not clear to me. I don't see many Ethernet drivers having OF support in them so maybe

[git pull] Please pull powerpc.git next branch

2010-02-26 Thread Benjamin Herrenschmidt
Hi Linus ! Here's your batch of powerpc stuff for 2.6.34. As you can see, it's reasonably small this time around. There's a pile of scalability improvements from Anton, a batch of raw_spinlock conversion from Thomas, and a few more bits and pieces. Cheers, Ben. The following changes since

Re: PCI NIC for powerpc system

2010-02-26 Thread Grant Likely
On Fri, Feb 26, 2010 at 6:57 PM, John Linn john.l...@xilinx.com wrote: Hi, I should apologize ahead of time for my lack of knowledge with PCI. I'm trying to better understand if I can run a standard off the shelf PCI NIC with a powerpc kernel as the PCI with device tree is not clear to me.

RE: Gianfar driver failing on MPC8641D based board

2010-02-26 Thread Kumar Gopalpet-B05799
-Original Message- From: Anton Vorontsov [mailto:avoront...@ru.mvista.com] Sent: Saturday, February 27, 2010 3:08 AM To: Paul Gortmaker Cc: Martyn Welch; net...@vger.kernel.org; linux-ker...@vger.kernel.org; linuxppc-dev list; Kumar Gopalpet-B05799; da...@davemloft.net Subject: Re: