How to support scc-enet on MPC8247 in Linux 2.6.32.6

2010-04-22 Thread Peter Pan
I'm porting Linux 2.6.32.6 to our MPC8247 based board. We use SCC3 and SCC4 as ethernet port. These two ports are connect with LXT905 PHY chip. I'm now using fs_enet driver, how should I config the scc port in dtc file. I copied from mgcoge.dts file, and my dtc file of scc enet is follows:

[PATCH v3 1/5] fsl_msi: fix the conflict of virt_msir's chip_data

2010-04-22 Thread Li Yang
In fsl_of_msi_probe(), the virt_msir's chip_data have been stored the pointer to struct mpic. We add a struct fsl_msi_cascade_data to store the pointer to struct fsl_msi and msir_index in hanler_data. Otherwise, the pointer to struct mpic will be over-written, and will cause problem when calling

[PATCH v3 2/5] fsl_msi: enable msi allocation in all banks

2010-04-22 Thread Li Yang
Put all fsl_msi banks in a linked list. The list of banks then can be traversed when allocating new msi interrupts. Also fix failing path of fsl_setup_msi_irqs(). Signed-off-by: Zhao Chenhui b26...@freescale.com Signed-off-by: Li Yang le...@freescale.com --- arch/powerpc/sysdev/fsl_msi.c | 14

[PATCH v3 3/5] fsl_msi: enable msi sharing through AMP OSes

2010-04-22 Thread Li Yang
Make a single PCIe MSI bank shareable through CAMP OSes. The number of MSI used by each core can be configured by dts file. Signed-off-by: Zhao Chenhui b26...@freescale.com Signed-off-by: Li Yang le...@freescale.com --- arch/powerpc/sysdev/fsl_msi.c |8 +++- 1 files changed, 7

[PATCH v3 4/5] mpc8572ds: change camp dtses for MSI sharing

2010-04-22 Thread Li Yang
Enable the sharing of MSI interrupt through AMP OSes in the mpc8572ds dtses. Signed-off-by: Zhao Chenhui b26...@freescale.com Signed-off-by: Li Yang le...@freescale.com --- arch/powerpc/boot/dts/mpc8572ds_camp_core0.dts | 15 +-- arch/powerpc/boot/dts/mpc8572ds_camp_core1.dts |

[PATCH v3 5/5] fsl_msi: add removal path and probe failing path

2010-04-22 Thread Li Yang
Also cleanup the probe function. Signed-off-by: Li Yang le...@freescale.com --- arch/powerpc/sysdev/fsl_msi.c | 36 ++-- arch/powerpc/sysdev/fsl_msi.h |1 + 2 files changed, 31 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_msi.c

[PATCH 0/2] genirq: reliably replay pending edge-triggered irq (plus doc)

2010-04-22 Thread Guillaume Knispel
In the following series: [1/2] implements the proposal I made at the end of the thread http://lkml.org/lkml/2010/4/19/129 to reliably support replay of edge-triggered interrupts on all architectures when using disable_irq() / enable_irq(). Proper replays of pending edge-triggered interrupts was

[PATCH 2/2] genirq: update doc

2010-04-22 Thread Guillaume Knispel
Following genirq: always build resend_irqs and previous changes, this commit updates the genirq DocBook. Signed-off-by: Guillaume Knispel gknis...@proformatique.com CC: linux-ker...@vger.kernel.org CC: Linuxppc-dev@lists.ozlabs.org CC: Bartlomiej Zolnierkiewicz bzoln...@gmail.com CC: Benjamin

[PATCH] powerpc/85xx: Fix P1020RDB boot hang due USB2

2010-04-22 Thread Anton Vorontsov
Since USB2 is shared with local bus, either local bus or USB2 should be disabled. By default U-Boot enables local bus, so we have to disable USB2, otherwise kernel hangs: ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller

[patch 11/14] powerpc: invoke oom-killer from page fault

2010-04-22 Thread npiggin
As explained in commit 1c0fe6e3bd, we want to call the architecture independent oom killer when getting an unexplained OOM from handle_mm_fault, rather than simply killing current. Cc: linuxppc-...@ozlabs.org Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: linux-a...@vger.kernel.org

Re: How to support scc-enet on MPC8247 in Linux 2.6.32.6

2010-04-22 Thread Scott Wood
Peter Pan wrote: I'm porting Linux 2.6.32.6 to our MPC8247 based board. We use SCC3 and SCC4 as ethernet port. These two ports are connect with LXT905 PHY chip. I'm now using fs_enet driver, how should I config the scc port in dtc file. I copied from mgcoge.dts file, and my dtc file of scc enet

Boot hang when setting console=none with MPC5200B custom board

2010-04-22 Thread Sylvain Lamontagne
Hi everybody, I'm trying to remove the console from a custom board based on a MPC5200B. During development we used console=ttyS1,115200 in our bootcmd for the kernel, but now that the product is ready to be shipped we want to use ttyS1 for something else and would like to deactivate completely

Re: Boot hang when setting console=none with MPC5200B custom board

2010-04-22 Thread Grant Likely
On Thu, Apr 22, 2010 at 12:58 PM, Sylvain Lamontagne sylvain.lamonta...@novariant.com wrote: Hi everybody, I'm trying to remove the console from a custom board based on a MPC5200B. During development we used console=ttyS1,115200 in our bootcmd for the kernel, but now that the product is ready

Re: Boot hang when setting console=none with MPC5200B custom board

2010-04-22 Thread Albrecht Dreß
Hi Sylvain: Am 22.04.10 20:58 schrieb(en) Sylvain Lamontagne: [snip] 1. Is it possible ? Yes! I tried this with several kernel versions (currently 2.6.33), using the option 'console=tty0'. Works just fine... 2. Do you have any idea how it can be achieve ? Hmmm, iirc, I also saw the

Re: Boot hang when setting console=none with MPC5200B custom board

2010-04-22 Thread Sylvain Lamontagne
Hi Albrecht, 1. Is it possible ? Yes! I tried this with several kernel versions (currently 2.6.33), using the option 'console=tty0'. Works just fine... Happy to know that it can be done ! 2. Do you have any idea how it can be achieve ? Hmmm, iirc, I also saw the effect you have.

Re: Boot hang when setting console=none with MPC5200B custom board

2010-04-22 Thread Sylvain Lamontagne
[snip] Can you halt the processor with JTAG and look at the contents of __log_buf? Ok I'll try that as soon as I can get CodeWarrior to work again... 1. Is it possible ? Yes, I believe so, but I haven't tried. Ok 2. Do you have any idea how it can be achieve ? You should be doing

Re: [patch 11/14] powerpc: invoke oom-killer from page fault

2010-04-22 Thread David Rientjes
On Fri, 23 Apr 2010, npig...@suse.de wrote: As explained in commit 1c0fe6e3bd, we want to call the architecture independent oom killer when getting an unexplained OOM from handle_mm_fault, rather than simply killing current. Cc: linuxppc-...@ozlabs.org Cc: Benjamin Herrenschmidt

Re: Continual reading from the PowerPc time base register is not stable

2010-04-22 Thread Kim Phillips
On Thu, 22 Apr 2010 10:50:16 +1000 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Wed, 2010-04-21 at 19:44 -0500, Kim Phillips wrote: I took an 8377 rdb board, and let it run timebase.c (with the isync long long casts) all weekend, and have failed to reproduce the issue. That

[PATCH] Fixes for MPC512x PSC

2010-04-22 Thread Steve Deiters
This will apply on the mpc512x-v2.6.33-devel branch of the DENX git repository. This is all mostly based on what was in the Freescale LTIB release from the Freescale website. On a somewhat unrelated note, does anyone know if the Freescale LTIB drivers have been merged into any newer kernel

[GIT PULL] Perf probe support for PowerPC, from Ian Munsie

2010-04-22 Thread Paul Mackerras
Ingo, Please pull my perf.git master branch: git://git.kernel.org/pub/scm/linux/kernel/git/paulus/perf.git master It has two commits from Ian Munsie that allow us to access local variables with perf probe on PowerPC. We also need a commit in Ben's powerpc-next branch for it to function, but

Re: How to support scc-enet on MPC8247 in Linux 2.6.32.6

2010-04-22 Thread Peter Pan
There is an MDIO used by FCC, but the SCC is connected with LXT905, which is Ethernet Interface Adapter. So I think the SCC should be fixed-link. But how can I set the fixed-link property? I searched through the Document directory, there is nothing about the fixed-link property. 2010/4/23 Scott

My MDIO is acting strange

2010-04-22 Thread Peter Pan
I'm porting Linux 2.6.32.6 to my MPC8247 based board. Our FCC1 and FCC2 are used as 100MBps ethernet ports. MDIO is used to connect with PHY chip. During boot, the of driver is checking the PHYID, it gets all Fs. But after I comment the following lines: //if ((phy_id 0x1fff) == 0x1fff) //