[PATCH] irqbalance, powerpc: add IRQs without settable SMP affinity to banned list

2010-09-21 Thread Michael Neuling
On pseries powerpc, IPIs are registered with an IRQ number so /proc/interrupts looks like this on a 2 core/2 thread machine: CPU0 CPU1 CPU2 CPU3 16:316428232905141138794 983121 XICS Level IPI 18:2605674 0 304994

Re: [U-Boot] cuImage and multi image?

2010-09-21 Thread Shawn Jin
>> > > A follow up question. With this method, the total image size >> > > (uncompressed) is limited to the 4MB (the link address of >> the boot >> > > wrapper)? >> > >> > No. >> >> Yes, unless you change the link address, or provide a >> vmlinux_alloc callback (which currently only happens on true

Re: [PATCH] fsldma: add support to 36-bit physical address

2010-09-21 Thread Kumar Gala
On Sep 21, 2010, at 5:34 PM, Timur Tabi wrote: > On Tue, Sep 21, 2010 at 5:17 PM, Scott Wood wrote: > >> It needs to be the actual device that is performing the DMA -- the >> platform may need to do things such as IOMMU manipulation where >> knowing the device matters. > > Ok, this all makes s

Re: [PATCH 1/2 v3]Update broken web addresses.

2010-09-21 Thread Justin P. Mattock
On 09/21/2010 08:25 PM, Finn Thain wrote: On Tue, 21 Sep 2010, Justin P. Mattock wrote: Below is an update from the original, with changes to the broken web addresses and removal of archive.org and moved to a seperate patch for you guys to decide if you want to use this and/or just leave the o

Re: [PATCH 1/2 v3]Update broken web addresses.

2010-09-21 Thread Finn Thain
On Tue, 21 Sep 2010, Justin P. Mattock wrote: > Below is an update from the original, with changes to the broken web > addresses and removal of archive.org and moved to a seperate patch for > you guys to decide if you want to use this and/or just leave the old url > in and leave it at that.. >

[PATCH 2/2 v3]Update broken web addresses archive dot org only.

2010-09-21 Thread Justin P. Mattock
Below is a patch consisting of only the broken web addresses using webarchive.org. Please have a look and let me know if you want to go on with using these and/or just leave the old links in there. Note: the address needs to have an %2A added to it due to webarchive.org using a "*" for it's sea

[PATCH 1/2 v3]Update broken web addresses.

2010-09-21 Thread Justin P. Mattock
Below is an update from the original, with changes to the broken web addresses and removal of archive.org and moved to a seperate patch for you guys to decide if you want to use this and/or just leave the old url in and leave it at that.. Please dont apply this to anything just comments and fixe

RE: Questions on interrupt vector assignment on MPC8641D

2010-09-21 Thread Chen, Tiejun
> -Original Message- > From: > linuxppc-dev-bounces+tiejun.chen=windriver@lists.ozlabs.or > g > [mailto:linuxppc-dev-bounces+tiejun.chen=windriver@lists.o > zlabs.org] On Behalf Of Scott Wood > Sent: Wednesday, September 22, 2010 6:07 AM > To: Anderson, Trevor > Cc: david.hag...@g

RE: [U-Boot] cuImage and multi image?

2010-09-21 Thread Chen, Tiejun
> -Original Message- > From: > linuxppc-dev-bounces+tiejun.chen=windriver@lists.ozlabs.or > g > [mailto:linuxppc-dev-bounces+tiejun.chen=windriver@lists.o zlabs.org] On Behalf Of Scott Wood > Sent: Wednesday, September 22, 2010 1:53 AM > To: Chen, Tiejun > Cc: ppcdev; uboot > Subj

RE: Generating elf kernel ?

2010-09-21 Thread Chen, Tiejun
> -Original Message- > From: Scott Wood [mailto:scottw...@freescale.com] > Sent: Wednesday, September 22, 2010 1:00 AM > To: Chen, Tiejun > Cc: linuxppc-dev@lists.ozlabs.org; Guillaume Dargaud > Subject: Re: Generating elf kernel ? > > On Tue, 21 Sep 2010 03:00:40 +0200 > "Chen, Tiejun"

Re: [PATCH] fsldma: add support to 36-bit physical address

2010-09-21 Thread Timur Tabi
On Tue, Sep 21, 2010 at 5:17 PM, Scott Wood wrote: > It needs to be the actual device that is performing the DMA -- the > platform may need to do things such as IOMMU manipulation where > knowing the device matters. Ok, this all makes sense. So it appears that the patch is valid, at least in th

Re: [PATCH] fsldma: add support to 36-bit physical address

2010-09-21 Thread Scott Wood
On Tue, 21 Sep 2010 17:08:54 -0500 Timur Tabi wrote: > On Tue, Sep 21, 2010 at 5:05 PM, Dan Malek wrote: > > > The DMA descriptors are accessed using DMA by the > > controller itself. > > Yes and no. Technically, it is DMA, but it's not something that > SWIOTLB could ever know about. We just

Re: [PATCH] fsldma: add support to 36-bit physical address

2010-09-21 Thread Dan Malek
On Sep 21, 2010, at 2:49 PM, Scott Wood wrote: On Tue, 21 Sep 2010 16:43:12 -0500 Timur Tabi wrote: Since we don't DMA the descriptors themselves, I just don't see how this patch does anything. Look in dmaengine.c, there are calls to dma_map_single() and dma_map_page(), using what I assum

Re: [PATCH] fsldma: add support to 36-bit physical address

2010-09-21 Thread Timur Tabi
On Tue, Sep 21, 2010 at 5:05 PM, Dan Malek wrote: > The DMA descriptors are accessed using DMA by the > controller itself. Yes and no. Technically, it is DMA, but it's not something that SWIOTLB could ever know about. We just pass the physical address to the DMA controller, and it does a memor

Re: Questions on interrupt vector assignment on MPC8641D

2010-09-21 Thread Scott Wood
On Tue, 21 Sep 2010 17:37:15 -0400 "Anderson, Trevor" wrote: > IRQ assignments for MPC8641D are "virtual", This is true for powerpc in general. > meaning "made up" and quite difficult to determine by looking through code. > But I believe the plan goes something like this: > > IRQ >

Re: [PATCH] fsldma: add support to 36-bit physical address

2010-09-21 Thread Timur Tabi
On Tue, Sep 21, 2010 at 4:49 PM, Scott Wood wrote: > Look in dmaengine.c, there are calls to dma_map_single() and > dma_map_page(), using what I assume is that same device pointer -- > unless there's confusion between the channel and the controller. You're right. I missed this line in the drive

Re: [PATCH] fsldma: add support to 36-bit physical address

2010-09-21 Thread Scott Wood
On Tue, 21 Sep 2010 16:43:12 -0500 Timur Tabi wrote: > On Tue, Sep 21, 2010 at 4:34 PM, Scott Wood wrote: > > > This doesn't control allocation (it probably should with > > dma_alloc_coherent, though I don't see it in the code), it controls > > whether swiotlb will create a bounce buffer -- def

Re: [PATCH] fsldma: add support to 36-bit physical address

2010-09-21 Thread Timur Tabi
On Tue, Sep 21, 2010 at 4:34 PM, Scott Wood wrote: > This doesn't control allocation (it probably should with > dma_alloc_coherent, though I don't see it in the code), it controls > whether swiotlb will create a bounce buffer -- defeating the point of > using DMA to accelerate a memcpy. But it w

RE: Questions on interrupt vector assignment on MPC8641D

2010-09-21 Thread Anderson, Trevor
IRQ assignments for MPC8641D are "virtual", meaning "made up" and quite difficult to determine by looking through code. But I believe the plan goes something like this: IRQ - 0 No interrupt 1 - 15External interrupts (only 1..12 would be used) 16 - 127 Inte

Re: [PATCH] fsldma: add support to 36-bit physical address

2010-09-21 Thread Scott Wood
On Tue, 21 Sep 2010 16:24:10 -0500 Timur Tabi wrote: > On Tue, Sep 21, 2010 at 7:55 AM, Kumar Gala wrote: > > > > On Sep 21, 2010, at 5:57 AM, Li Yang wrote: > > > >> Signed-off-by: Li Yang > >> --- > > > > We really should have a sentence about how or why this works to address > > 36-bit addr

Re: [PATCH] fsldma: add support to 36-bit physical address

2010-09-21 Thread Timur Tabi
On Tue, Sep 21, 2010 at 7:55 AM, Kumar Gala wrote: > > On Sep 21, 2010, at 5:57 AM, Li Yang wrote: > >> Signed-off-by: Li Yang >> --- > > We really should have a sentence about how or why this works to address > 36-bit addressing. For example, I would like to know which memory is going to be al

Re: [PATCH 1/5] ptp: Added a brand new class driver for ptp clocks.

2010-09-21 Thread Kyle Moffett
On Fri, Aug 27, 2010 at 18:30, John Stultz wrote: > On one side, there is the view that the kernel should abstract and hide > the hardware details to increase app portability. And the other is that > the raw hardware details should be exposed, so the OS stays out of the > way. > > Neither of these

Re: [U-Boot] cuImage and multi image?

2010-09-21 Thread Scott Wood
On Tue, 21 Sep 2010 03:03:22 +0200 "Chen, Tiejun" wrote: > > -Original Message- > > From: Shawn Jin [mailto:shawnx...@gmail.com] > > Sent: Tuesday, September 21, 2010 1:53 AM > > To: Chen, Tiejun > > Cc: ppcdev; uboot > > Subject: Re: cuImage and multi image? > > > > >> I have a cuImage

Re: Generating elf kernel ?

2010-09-21 Thread Scott Wood
On Tue, 21 Sep 2010 03:00:40 +0200 "Chen, Tiejun" wrote: > This should be depend on the hypervisor design implementation. I think > your > option should be based on the Freescale hypervisor. Again, I was giving an example, about ELF loading. I was not making any claims about what all hyperviso

RE: [PATCH 1/2] PPC4xx: Generelizing drivers/dma/ppc4xx/adma.c

2010-09-21 Thread Tirumala Marri
> -Original Message- > From: linuxppc-dev-bounces+tmarri=amcc@lists.ozlabs.org > [mailto:linuxppc-dev-bounces+tmarri=amcc@lists.ozlabs.org] On > Behalf Of Ilya Yanok > Sent: Sunday, September 19, 2010 1:01 PM > To: linuxppc-...@ozlabs.org > Subject: Re: [PATCH 1/2] PPC4xx: Genereliz

Re: [PATCH 1/5] ptp: Added a brand new class driver for ptp clocks.

2010-09-21 Thread Stephan Gatzka
Hi Richard, 1. Character device 2. POSIX clock with dynamic ids Please, just take your pick ;^) Just to reopen this nearly dead but very interesting thread: I'm happy with every solution that has no impact on the accuracy of the PTP clock. If I can choose, I would prefer the POSIX clock wi

Questions on interrupt vector assignment on MPC8641D

2010-09-21 Thread david . hagood
I'm new to developing on the PPC (most of my experience is on x86), and I have a couple of questions about mapping of interrupts on the PPC, specifically on the Freescale 8641D embedded CPU. 1) How does one allocate interrupt vectors for the embedded devices, such as the MPIC? All the kernel how-t

Re: [PATCH] fsldma: add support to 36-bit physical address

2010-09-21 Thread Kumar Gala
On Sep 21, 2010, at 5:57 AM, Li Yang wrote: > Signed-off-by: Li Yang > --- We really should have a sentence about how or why this works to address 36-bit addressing. > drivers/dma/fsldma.c |3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/drivers/dma/fsldma.c b/d

Re: [PATCH 1/2] powerpc: export ppc_tb_freq so that modules can reference it

2010-09-21 Thread Detlev Zundel
Hi Scott, > On Sat, 18 Sep 2010 14:22:12 -0400 > Josh Boyer wrote: > >> Capitalizing? The patch you posted that uses this symbol is for a GPL >> driver so you gain or lose nothing by having this symbol be >> EXPORT_SYMBOL_GPL. Are you somehow advocating and getting some sort >> of gain by allow

[PATCH] fsldma: add support to 36-bit physical address

2010-09-21 Thread Li Yang
Signed-off-by: Li Yang --- drivers/dma/fsldma.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c index cea08be..9163552 100644 --- a/drivers/dma/fsldma.c +++ b/drivers/dma/fsldma.c @@ -1,7 +1,7 @@ /* * Freescale MPC85xx, MPC

Dual ethernet attachment with single FEC

2010-09-21 Thread LEROY Christophe
Hello, I have a board with 2 PHYs attached to one FEC ethernet controler on powerpc. I want to implement some kind of main-standby attachment to LAN by setting the ISOLATE bit on one on the two PHYs then monitoring the link status and switch to the other PHY when the link status goes down. I