Re: kernel panic during kernel module load (powerpc specific part)

2012-06-04 Thread Steffen Rumler
I believe that the basic premise is that you should provide a directly reachable copy of the save/rstore functions, even if this means that you need several copies of the functions. I just fixed a very similar problem with grub2 in fact. It was using r0 and trashing the saved LR that way. The

[PATCH] powerpc: Optimise the 64bit optimised __clear_user

2012-06-04 Thread Anton Blanchard
I blame Mikey for this. He elevated my slightly dubious testcase: # dd if=/dev/zero of=/dev/null bs=1M count=1 to benchmark status. And naturally we need to be number 1 at creating zeros. So lets improve __clear_user some more. As Paul suggests we can use dcbz for large lengths. This patch

[PATCH] powerpc/pci: save P2P bridge resource if possible

2012-06-04 Thread Gavin Shan
When PCI probe flag PCI_REASSIGN_ALL_RSRC has been passed into PCI core, it's hoped that all resources to be reassigned by PCI core. As to particular P2P (PCI-to-PCI) bridge, the size of the corresponding BAR (I/O, MMIO, prefetchable MMIO) is calculated by the resources required by the PCI devices

Re: [PATCH] powerpc/pci: save P2P bridge resource if possible

2012-06-04 Thread Benjamin Herrenschmidt
On Mon, 2012-06-04 at 16:15 +0800, Gavin Shan wrote: > When PCI probe flag PCI_REASSIGN_ALL_RSRC has been passed into PCI > core, it's hoped that all resources to be reassigned by PCI core. > As to particular P2P (PCI-to-PCI) bridge, the size of the corresponding > BAR (I/O, MMIO, prefetchable MMIO

[PATCH] powerpc: Add MSR_DE to MSR_KERNEL

2012-06-04 Thread Joakim Tjernlund
Emulators such as BDI2000 and CodeWarrior needs to have MSR_DE set in order to support break points for booke archs. This adds MSR_DE for kernel space only, protected by CONFIG_BDI_SWITCH Signed-off-by: Joakim Tjernlund --- arch/powerpc/include/asm/reg_booke.h |4 1 files changed, 4 ins

Re: [RFC] [PATCH] powerpc: Add MSR_DE to MSR_KERNEL

2012-06-04 Thread Joakim Tjernlund
Benjamin Herrenschmidt wrote on 2012/06/02 23:21:16: > > On Sat, 2012-06-02 at 20:29 +0200, Joakim Tjernlund wrote: > > > > hmm, where does this go w.r.t the patch? Got the feeling that the > > best thing is to just turn MSR:DE on and be done with it? > > Not unconditionally, we need to have a clo

Re: [PATCH] powerpc/pci: save P2P bridge resource if possible

2012-06-04 Thread Gavin Shan
>> When PCI probe flag PCI_REASSIGN_ALL_RSRC has been passed into PCI >> core, it's hoped that all resources to be reassigned by PCI core. >> As to particular P2P (PCI-to-PCI) bridge, the size of the corresponding >> BAR (I/O, MMIO, prefetchable MMIO) is calculated by the resources >> required by t

NIC bring-up issue on powerpc-440 based board

2012-06-04 Thread Sumesh Kaana
Hi All, I'm trying to bring-up a PCIe based NIC(e1000e) card on a PowerPC-440 based board, I'm able to list this device under lspci from the user space, but the driver probe fails and looks like mmio mapping doesn't look right. Following is the bootlog of the kernel. Can anyone point out what i

Re: [PATCH v5 2/5] powerpc/85xx: add HOTPLUG_CPU support

2012-06-04 Thread Zhao Chenhui
On Fri, Jun 01, 2012 at 04:27:27PM -0500, Scott Wood wrote: > On 05/11/2012 06:53 AM, Zhao Chenhui wrote: > \> +#if defined(CONFIG_FSL_BOOKE) || defined(CONFIG_6xx) > > +extern void __flush_disable_L1(void); > > +#endif > > Prototypes aren't normally guarded by ifdefs. OK. Thanks. > > > +static

Re: [PATCH v5 3/5] powerpc/85xx: add sleep and deep sleep support

2012-06-04 Thread Zhao Chenhui
On Fri, Jun 01, 2012 at 04:54:35PM -0500, Scott Wood wrote: > On 05/11/2012 06:53 AM, Zhao Chenhui wrote: > > From: Li Yang > > > > In sleep PM mode, the clocks of e500 core and unused IP blocks is > > turned off. IP blocks which are allowed to wake up the processor > > are still running. > > >

Re: kernel panic during kernel module load (powerpc specific part)

2012-06-04 Thread Gabriel Paubert
On Fri, Jun 01, 2012 at 11:33:37AM +, Wrobel Heinz-R39252 wrote: > > > I believe that the basic premise is that you should provide a directly > > > reachable copy of the save/rstore functions, even if this means that > > you need several copies of the functions. > > > > I just fixed a very sim

Re: [PATCH v2] usb: fsl_udc: errata - postpone freeing current dTD

2012-06-04 Thread Christoph Fritz
Hi, On Mon, 2012-05-21 at 22:04 +0300, Felipe Balbi wrote: > On Mon, May 21, 2012 at 08:57:22AM +0200, Christoph Fritz wrote: > > USB controller may access a wrong address for the dTD (endpoint transfer > > descriptor) and then hang. This happens a lot when doing tests with > > g_ether module and

Re: [PATCH v5 4/5] fsl_pmc: Add API to enable device as wakeup event source

2012-06-04 Thread Zhao Chenhui
On Fri, Jun 01, 2012 at 05:08:52PM -0500, Scott Wood wrote: > On 05/11/2012 06:53 AM, Zhao Chenhui wrote: > > Add APIs for setting wakeup source and lossless Ethernet in low power modes. > > These APIs can be used by wake-on-packet feature. > > > > Signed-off-by: Dave Liu > > Signed-off-by: Li Ya

Re: [PATCH v2] usb: fsl_udc: errata - postpone freeing current dTD

2012-06-04 Thread Christoph Fritz
On Mon, 2012-06-04 at 13:30 +0200, Christoph Fritz wrote: > Hi, > > On Mon, 2012-05-21 at 22:04 +0300, Felipe Balbi wrote: > > On Mon, May 21, 2012 at 08:57:22AM +0200, Christoph Fritz wrote: > > > USB controller may access a wrong address for the dTD (endpoint transfer > > > descriptor) and then

Re: kernel panic during kernel module load (powerpc specific part)

2012-06-04 Thread Paul Mackerras
On Mon, Jun 04, 2012 at 09:43:01AM +0200, Steffen Rumler wrote: > Let me summarize the situation: > >+ According to Freescale, EABI assigns a dedicated function to register > r11. >+ The ELF sections .text and .init.text may trigger the usage of the > trampoline code. >+ The trampoli

Re: [PATCH] powerpc: Optimise the 64bit optimised __clear_user

2012-06-04 Thread Olof Johansson
Hi, On Mon, Jun 4, 2012 at 12:58 AM, Anton Blanchard wrote: > > I blame Mikey for this. He elevated my slightly dubious testcase: > > # dd if=/dev/zero of=/dev/null bs=1M count=1 > > to benchmark status. And naturally we need to be number 1 at creating > zeros. So lets improve __clear_user so

Re: [PATCH] powerpc: Optimise the 64bit optimised __clear_user

2012-06-04 Thread Kumar Gala
On Jun 4, 2012, at 8:12 AM, Olof Johansson wrote: > Hi, > > On Mon, Jun 4, 2012 at 12:58 AM, Anton Blanchard wrote: >> >> I blame Mikey for this. He elevated my slightly dubious testcase: >> >> # dd if=/dev/zero of=/dev/null bs=1M count=1 >> >> to benchmark status. And naturally we need

Re: [PATCH v2] usb: fsl_udc: errata - postpone freeing current dTD

2012-06-04 Thread Felipe Balbi
On Mon, Jun 04, 2012 at 01:30:24PM +0200, Christoph Fritz wrote: > Hi, > > On Mon, 2012-05-21 at 22:04 +0300, Felipe Balbi wrote: > > On Mon, May 21, 2012 at 08:57:22AM +0200, Christoph Fritz wrote: > > > USB controller may access a wrong address for the dTD (endpoint transfer > > > descriptor) an

[PATCH] usb: gadget: regression fix - useage of usb_ep

2012-06-04 Thread Christoph Fritz
This patch removes redundant pointer to struct usb_endpoint_descriptor which were missed in commit 79149b8: usb: gadget: Update fsl_udc_core to use usb_endpoint_descriptor inside the struct usb_ep Due to clock framework regressions, this patch is only compile tested! Signed-off-by: Christoph F

Re: [PATCH v5 2/5] powerpc/85xx: add HOTPLUG_CPU support

2012-06-04 Thread Scott Wood
On 06/04/2012 06:04 AM, Zhao Chenhui wrote: > On Fri, Jun 01, 2012 at 04:27:27PM -0500, Scott Wood wrote: >> On 05/11/2012 06:53 AM, Zhao Chenhui wrote: >>> -#ifdef CONFIG_KEXEC >>> +#if defined(CONFIG_KEXEC) || defined(CONFIG_HOTPLUG_CPU) >> >> Let's not grow lists like this. Is there any harm in

Cannot boot an kernel version other than 2.6.35 on P2020RDB-PCA

2012-06-04 Thread MAUSSIRE Cedric
Hello all, I am currently working on the Freescale P2020RDB-PCA Board, which has been delivred with the linux-2.6.35 kernel. I succeed in re-generating my own uImage in 2.6.35 thanks to ELDK, but when I want to move on to a newer or older version of linux, the system does not respond any longer

Re: Serial RAPID IO kernel hang on maintenance read transaction

2012-06-04 Thread Michael Steckly
On 06/01/2012 04:40 PM, Proicou, Mike wrote: > > I've been struggling with a kernel hang during bootup + enumeration of > a Rapid IO system. > > My current system contains a N.A.T MCH (using the IDT/Tundra Tsi 578 > switch) and a Vadatech AMC719 card using the Freescale P4080 > processor. There wi

Re: kernel panic during kernel module load (powerpc specific part)

2012-06-04 Thread Benjamin Herrenschmidt
On Mon, 2012-06-04 at 13:03 +0200, Gabriel Paubert wrote: > There is no conflict to the ABI. These functions are supposed to be > directly reachable from whatever code > section may need them. > > Now I have a question: how did you get the need for this? > > None of my kernels uses them: > - if I

Re: [PATCH v5 3/5] powerpc/85xx: add sleep and deep sleep support

2012-06-04 Thread Scott Wood
On 06/04/2012 06:12 AM, Zhao Chenhui wrote: > On Fri, Jun 01, 2012 at 04:54:35PM -0500, Scott Wood wrote: >> On 05/11/2012 06:53 AM, Zhao Chenhui wrote: >>> diff --git a/arch/powerpc/include/asm/cacheflush.h >>> b/arch/powerpc/include/asm/cacheflush.h >>> index 94ec20a..baa000c 100644 >>> --- a/ar

Re: [PATCH v5 4/5] fsl_pmc: Add API to enable device as wakeup event source

2012-06-04 Thread Scott Wood
On 06/04/2012 06:36 AM, Zhao Chenhui wrote: > On Fri, Jun 01, 2012 at 05:08:52PM -0500, Scott Wood wrote: >> On 05/11/2012 06:53 AM, Zhao Chenhui wrote: >>> Add APIs for setting wakeup source and lossless Ethernet in low power modes. >>> These APIs can be used by wake-on-packet feature. >>> >>> Sig

[PATCH] powerpc: Optimise the 64bit optimised __clear_user

2012-06-04 Thread Anton Blanchard
I blame Mikey for this. He elevated my slightly dubious testcase: # dd if=/dev/zero of=/dev/null bs=1M count=1 to benchmark status. And naturally we need to be number 1 at creating zeros. So lets improve __clear_user some more. As Paul suggests we can use dcbz for large lengths. This patch

[PATCH] powerpc/ftrace: Do not trace restore_interrupts()

2012-06-04 Thread Steven Rostedt
As I was adding code that affects all archs, I started testing function tracer against PPC64 and found that it currently locks up with 3.4 kernel. I figured it was due to tracing a function that shouldn't be, so I went through the following process to bisect to find the culprit: cat /debug/tracin

Re: [PATCH] powerpc/ftrace: Do not trace restore_interrupts()

2012-06-04 Thread Steven Rostedt
On Mon, 2012-06-04 at 22:27 -0400, Steven Rostedt wrote: > As I was adding code that affects all archs, I started testing function > tracer against PPC64 and found that it currently locks up with 3.4 > kernel. I figured it was due to tracing a function that shouldn't be, so > I went through the fol

Re: [PATCH] powerpc: pseries: Round up MSI-X requests

2012-06-04 Thread Anton Blanchard
Hi, > On Mon, 2012-06-04 at 16:43 +1000, Michael Ellerman wrote: > > There is some chance this will result in breakage because the driver > > asks for N - and assumes that is what was allocated - and the > > device is configured for > N. > > We can fix that. We can whack the configuration back w

RE: [PATCH v5 4/5] fsl_pmc: Add API to enable device as wakeup event source

2012-06-04 Thread Li Yang-R58472
> -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, June 05, 2012 7:03 AM > To: Zhao Chenhui-B35336 > Cc: linuxppc-dev@lists.ozlabs.org; linux-ker...@vger.kernel.org; > ga...@kernel.crashing.org; Li Yang-R58472 > Subject: Re: [PATCH v5 4/5] fsl_pmc: Add API to enable device as

RE: Cannot boot an kernel version other than 2.6.35 on P2020RDB-PCA

2012-06-04 Thread Tang Yuantian-B29983
Hi Cedric MAUSSIRE, P2020RDB-PCA Board gets supported since kernel 3.3 in mainline code. Are you sure the board works on kernel 2.6.35? Regards, Yuantian From: linuxppc-dev-bounces+b29983=freescale@lists.ozlabs.org [mailto:linuxppc-dev-bounces+b29983=freescale@lists.ozlabs.org] On Beha