Safe in bedroom

2008-09-16 Thread Jon Smirl
Leave the safe in the closet and don't lock it. They will build it into the closet permanently. -- Jon Smirl [EMAIL PROTECTED] ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: demuxing irqs

2008-09-16 Thread Jon Smirl
On Tue, Sep 16, 2008 at 7:24 PM, Scott Wood <[EMAIL PROTECTED]> wrote: > On Tue, Sep 16, 2008 at 06:08:34PM -0400, Jon Smirl wrote: >> You have to map between GPIO and IRQ inside the interrupt handlers so >> it has to be reasonably fast. This gets done on every shared interrupt >> so you will end u

Re: demuxing irqs

2008-09-16 Thread Scott Wood
On Tue, Sep 16, 2008 at 06:08:34PM -0400, Jon Smirl wrote: > You have to map between GPIO and IRQ inside the interrupt handlers so > it has to be reasonably fast. This gets done on every shared interrupt > so you will end up building mapping tables. Also, gpio_to_irq() > doesn't take the gpio chip

Re: demuxing irqs

2008-09-16 Thread Jon Smirl
On Tue, Sep 16, 2008 at 5:42 PM, Anton Vorontsov <[EMAIL PROTECTED]> wrote: > On Tue, Sep 16, 2008 at 02:32:45PM -0400, Jon Smirl wrote: >> On Tue, Sep 16, 2008 at 1:49 PM, Scott Wood <[EMAIL PROTECTED]> wrote: >> > On Tue, Sep 16, 2008 at 10:24:35AM -0400, Jon Smirl wrote: >> >> On Tue, Sep 16, 20

Re: demuxing irqs

2008-09-16 Thread Anton Vorontsov
On Tue, Sep 16, 2008 at 02:32:45PM -0400, Jon Smirl wrote: > On Tue, Sep 16, 2008 at 1:49 PM, Scott Wood <[EMAIL PROTECTED]> wrote: > > On Tue, Sep 16, 2008 at 10:24:35AM -0400, Jon Smirl wrote: > >> On Tue, Sep 16, 2008 at 10:14 AM, Anton Vorontsov > >> <[EMAIL PROTECTED]> wrote: > >> > Assume tha

[PATCH] powerpc: Remove obsolete junk in Documentation/powerpc

2008-09-16 Thread Benjamin Herrenschmidt
We have all sort of totally rotten pieces of documentation in there, let's get rid of them Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- ppc_htab.txt | 118 -- smp.txt | 34 --- sound.txt |

Re: Please pull from 'for-2.6.27'

2008-09-16 Thread Kumar Gala
On Sep 16, 2008, at 12:48 PM, Paul Mackerras wrote: Kumar Gala writes: Jochen Friedrich (1): powerpc/cpm1: Fix race condition in CPM1 GPIO library. This looks like a biggish change for after -rc6, and the commit message doesn't tell me what dire things will happen if the patch doesn't g

Re: [PATCH v5 1/4] powerpc: Introduce local (non-broadcast) forms of tlb invalidates

2008-09-16 Thread Kumar Gala
On Sep 16, 2008, at 1:31 PM, Benjamin Herrenschmidt wrote: static inline void flush_tlb_kernel_range(unsigned long start, unsigned long end) { - _tlbia(); + _tlbil_all(); } I love making you respin your patches so what about the one abov

[PATCH v6 3/4] powerpc/fsl-booke: Fixup 64-bit PTE reading for SMP support

2008-09-16 Thread Kumar Gala
We need to create a false data dependency to ensure the loads of the pte are done in the right order. Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> --- arch/powerpc/kernel/head_fsl_booke.S | 26 +- 1 files changed, 21 insertions(+), 5 deletions(-) diff --git a/arch/powe

[PATCH v6 1/4] powerpc: Introduce local (non-broadcast) forms of tlb invalidates

2008-09-16 Thread Kumar Gala
Introduced a new set of low level tlb invalidate functions that do not broadcast invalidates on the bus: _tlbil_all - invalidate all _tlbil_pid - invalidate based on process id (or mm context) _tlbil_va - invalidate based on virtual address (ea + pid) On non-SMP configs _tlbil_all should be func

[PATCH v6 2/4] powerpc: Fixes for CONFIG_PTE_64BIT for SMP support

2008-09-16 Thread Kumar Gala
There are some minor issues with support 64-bit PTEs on a 32-bit processor when dealing with SMP. * We need to order the stores in set_pte_at to make sure the flag word is set second. * Change pte_clear to use pte_update so only the flag word is cleared * Added a WARN_ON to set_pte_at to ensure

[PATCH v6 4/4] powerpc/mm: Implement _PAGE_SPECIAL & pte_special() for 32-bit

2008-09-16 Thread Kumar Gala
Implement _PAGE_SPECIAL and pte_special() for 32-bit powerpc. This bit will be used by the fast get_user_pages() to differenciate PTEs that correspond to a valid struct page from special mappings that don't such as IO mappings obtained via io_remap_pfn_ranges(). We currently only implement this on

Re: demuxing irqs

2008-09-16 Thread Jon Smirl
On Tue, Sep 16, 2008 at 1:49 PM, Scott Wood <[EMAIL PROTECTED]> wrote: > On Tue, Sep 16, 2008 at 10:24:35AM -0400, Jon Smirl wrote: >> On Tue, Sep 16, 2008 at 10:14 AM, Anton Vorontsov >> <[EMAIL PROTECTED]> wrote: >> > Assume that GPIO 8 does not translate to any IRQ, but IRQ 8 is still >> > valid

Re: [PATCH v5 1/4] powerpc: Introduce local (non-broadcast) forms of tlb invalidates

2008-09-16 Thread Benjamin Herrenschmidt
> static inline void flush_tlb_kernel_range(unsigned long start, > unsigned long end) > { > - _tlbia(); > + _tlbil_all(); > } I love making you respin your patches so what about the one above becomes tlbil_pid(0) ? :-) Cheers, Ben. ___

Re: Please pull from 'for-2.6.27'

2008-09-16 Thread Paul Mackerras
Kumar Gala writes: > > Jochen Friedrich (1): > > powerpc/cpm1: Fix race condition in CPM1 GPIO library. This looks like a biggish change for after -rc6, and the commit message doesn't tell me what dire things will happen if the patch doesn't go in, or what systems see this breakage, or wheth

Re: demuxing irqs

2008-09-16 Thread Scott Wood
On Tue, Sep 16, 2008 at 10:24:35AM -0400, Jon Smirl wrote: > On Tue, Sep 16, 2008 at 10:14 AM, Anton Vorontsov > <[EMAIL PROTECTED]> wrote: > > Assume that GPIO 8 does not translate to any IRQ, but IRQ 8 is still > > valid virq b/c it is mapped for another IRQ controller (particularly > > lots of k

Re: [PATCH] ib/ehca: add flush CQE generation

2008-09-16 Thread Roland Dreier
thanks, queued for 2.6.28. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH v5 0/2] powerpc: Board support for GE Fanuc SBC610

2008-09-16 Thread Kumar Gala
On Sep 16, 2008, at 4:57 AM, Martyn Welch wrote: The following series implements basic board support for GE Fanuc's SBC610, a 6U single board computer, based on Freescale's MPC8641D. This series provides basic functionality: - The board can boot with a serial console. - Ethernet works, thoug

Re: [PATCH v5 2/2] powerpc: Default configuration for GE Fanuc SBC610

2008-09-16 Thread Kumar Gala
On Sep 16, 2008, at 4:57 AM, Martyn Welch wrote: Support for the SBC610 VPX Single Board Computer from GE Fanuc (PowerPC MPC8641D). This is the default config file for GE Fanuc's SBC610, a 6U single board computer, based on Freescale's MPC8641D. Signed-off-by: Martyn Welch <[EMAIL PROTEC

Re: [PATCH v5 1/2] powerpc: Board support for GE Fanuc SBC610

2008-09-16 Thread Kumar Gala
On Sep 16, 2008, at 4:57 AM, Martyn Welch wrote: Support for the SBC610 VPX Single Board Computer from GE Fanuc (PowerPC MPC8641D). This is the basic board support for GE Fanuc's SBC610, a 6U single board computer, based on Freescale's MPC8641D. Signed-off-by: Martyn Welch <[EMAIL PROTEC

[PATCH v5 4/4] powerpc/mm: Implement _PAGE_SPECIAL & pte_special() for 32-bit

2008-09-16 Thread Kumar Gala
Implement _PAGE_SPECIAL and pte_special() for 32-bit powerpc. This bit will be used by the fast get_user_pages() to differenciate PTEs that correspond to a valid struct page from special mappings that don't such as IO mappings obtained via io_remap_pfn_ranges(). We currently only implement this on

[PATCH v5 2/4] powerpc: Fixes for CONFIG_PTE_64BIT for SMP support

2008-09-16 Thread Kumar Gala
There are some minor issues with support 64-bit PTEs on a 32-bit processor when dealing with SMP. * We need to order the stores in set_pte_at to make sure the flag word is set second. * Change pte_clear to use pte_update so only the flag word is cleared * Added a WARN_ON to set_pte_at to ensure

[PATCH v5 3/4] powerpc/fsl-booke: Fixup 64-bit PTE reading for SMP support

2008-09-16 Thread Kumar Gala
We need to create a false data dependency to ensure the loads of the pte are done in the right order. Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> --- arch/powerpc/kernel/head_fsl_booke.S | 26 +- 1 files changed, 21 insertions(+), 5 deletions(-) diff --git a/arch/powe

[PATCH v5 1/4] powerpc: Introduce local (non-broadcast) forms of tlb invalidates

2008-09-16 Thread Kumar Gala
Introduced a new set of low level tlb invalidate functions that do not broadcast invalidates on the bus: _tlbil_all - invalidate all _tlbil_pid - invalidate based on process id (or mm context) _tlbil_va - invalidate based on virtual address (ea + pid) On non-SMP configs _tlbil_all should be func

Re: [PATCH] sbc8560: fix compile warning on CPM pin array

2008-09-16 Thread Kumar Gala
On Sep 3, 2008, at 3:02 PM, Paul Gortmaker wrote: This is just a parallel of a5dc66e2ab2e2cf641346b056a69a67cfcf9458c applied to the sbc8560 board. Signed-off-by: Paul Gortmaker <[EMAIL PROTECTED]> --- arch/powerpc/platforms/85xx/sbc8560.c |2 +- 1 files changed, 1 insertions(+), 1 deletion

Re: [PATCH v5 0/2] powerpc: Board support for GE Fanuc SBC610

2008-09-16 Thread Martyn Welch
On Tue, 16 Sep 2008 09:54:59 -0500 Kumar Gala <[EMAIL PROTECTED]> wrote: > > On Sep 16, 2008, at 4:57 AM, Martyn Welch wrote: > > > The following series implements basic board support for GE Fanuc's > > SBC610, a > > 6U single board computer, based on Freescale's MPC8641D. > > > > This series

Re: Please pull from 'for-2.6.27'

2008-09-16 Thread Kumar Gala
On Sep 12, 2008, at 3:47 PM, Kumar Gala wrote: Please pull from 'for-2.6.27' branch of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc.git for-2.6.27 to receive the following updates: arch/powerpc/boot/dts/mpc8610_hpcd.dts |8 +-- arch/powerpc/sysdev/cpm1.c | 7

Re: demuxing irqs

2008-09-16 Thread Jon Smirl
On Tue, Sep 16, 2008 at 10:14 AM, Anton Vorontsov <[EMAIL PROTECTED]> wrote: > On Tue, Sep 16, 2008 at 09:36:22AM -0400, Jon Smirl wrote: > [...] >> >> >> -/* >> >> >> - * Not implemented, yet. >> >> >> - */ >> >> >> -static inline int gpio_to_irq(unsigned int gpio) >> >> >> +static inline unsigned

Re: demuxing irqs

2008-09-16 Thread Jon Smirl
On Tue, Sep 16, 2008 at 10:14 AM, Anton Vorontsov <[EMAIL PROTECTED]> wrote: > On Tue, Sep 16, 2008 at 09:36:22AM -0400, Jon Smirl wrote: > [...] >> >> >> -/* >> >> >> - * Not implemented, yet. >> >> >> - */ >> >> >> -static inline int gpio_to_irq(unsigned int gpio) >> >> >> +static inline unsigned

Re: demuxing irqs

2008-09-16 Thread Anton Vorontsov
On Tue, Sep 16, 2008 at 09:36:22AM -0400, Jon Smirl wrote: [...] > >> >> -/* > >> >> - * Not implemented, yet. > >> >> - */ > >> >> -static inline int gpio_to_irq(unsigned int gpio) > >> >> +static inline unsigned int gpio_to_irq(unsigned int gpio) > >> >> { > >> >> - return -ENOSYS; > >> >>

Re: demuxing irqs

2008-09-16 Thread Jon Smirl
On Tue, Sep 16, 2008 at 9:12 AM, Anton Vorontsov <[EMAIL PROTECTED]> wrote: > On Tue, Sep 16, 2008 at 08:37:55AM -0400, Jon Smirl wrote: >> On Tue, Sep 16, 2008 at 8:17 AM, Anton Vorontsov >> <[EMAIL PROTECTED]> wrote: >> > Hi Jon, >> > >> > On Sun, Sep 14, 2008 at 11:06:23PM -0400, Jon Smirl wrote

Re: demuxing irqs

2008-09-16 Thread Anton Vorontsov
On Tue, Sep 16, 2008 at 08:37:55AM -0400, Jon Smirl wrote: > On Tue, Sep 16, 2008 at 8:17 AM, Anton Vorontsov > <[EMAIL PROTECTED]> wrote: > > Hi Jon, > > > > On Sun, Sep 14, 2008 at 11:06:23PM -0400, Jon Smirl wrote: > >> I have demultiplexing the GPIO interrupts working well enough to make > >> m

Re: demuxing irqs

2008-09-16 Thread Jon Smirl
On Tue, Sep 16, 2008 at 8:17 AM, Anton Vorontsov <[EMAIL PROTECTED]> wrote: > Hi Jon, > > On Sun, Sep 14, 2008 at 11:06:23PM -0400, Jon Smirl wrote: >> I have demultiplexing the GPIO interrupts working well enough to make >> my hardware work. But now I've discovered that these interrupts can't >> d

Re: [PATCH HACK] powerpc: quick hack to get a functional eHEA with hardirq preemption

2008-09-16 Thread Sebastien Dugue
Hi Anton, On Tue, 16 Sep 2008 15:59:47 +0400 Anton Vorontsov <[EMAIL PROTECTED]> wrote: > On Mon, Sep 15, 2008 at 03:13:32PM +0200, Sebastien Dugue wrote: > [...] > > > we are a bit worried about putting this into the mainstream part of non > > > real > > > time linux. > > > > Heck, I sure

Re: demuxing irqs

2008-09-16 Thread Anton Vorontsov
Hi Jon, On Sun, Sep 14, 2008 at 11:06:23PM -0400, Jon Smirl wrote: > I have demultiplexing the GPIO interrupts working well enough to make > my hardware work. But now I've discovered that these interrupts can't > do what I need. > > Anton, Grant - are either of you interested in this code? It's n

Re: [PATCH HACK] powerpc: quick hack to get a functional eHEA with hardirq preemption

2008-09-16 Thread Anton Vorontsov
On Mon, Sep 15, 2008 at 03:13:32PM +0200, Sebastien Dugue wrote: [...] > > we are a bit worried about putting this into the mainstream part of non real > > time linux. > > Heck, I sure do not want this to be applied mainstream nor into any tree. > The sole purpose of this patch was to trigger so

Re: [PATCH 2/2] ehea: fix mutex and spinlock use

2008-09-16 Thread Sebastien Dugue
On Tue, 16 Sep 2008 11:13:13 +0200 Thomas Klein <[EMAIL PROTECTED]> wrote: > Sebastien Dugue wrote: > > On Mon, 15 Sep 2008 17:18:27 +0200 Thomas Klein <[EMAIL PROTECTED]> wrote: > > > >> NACK! > >> > >> I regret but this patch is wrong. It is not sufficient to only lock > >> the replacement of a

[PATCH v5 2/2] powerpc: Default configuration for GE Fanuc SBC610

2008-09-16 Thread Martyn Welch
Support for the SBC610 VPX Single Board Computer from GE Fanuc (PowerPC MPC8641D). This is the default config file for GE Fanuc's SBC610, a 6U single board computer, based on Freescale's MPC8641D. Signed-off-by: Martyn Welch <[EMAIL PROTECTED]> --- arch/powerpc/configs/86xx/gef_sbc610_defconfig

[PATCH v5 1/2] powerpc: Board support for GE Fanuc SBC610

2008-09-16 Thread Martyn Welch
Support for the SBC610 VPX Single Board Computer from GE Fanuc (PowerPC MPC8641D). This is the basic board support for GE Fanuc's SBC610, a 6U single board computer, based on Freescale's MPC8641D. Signed-off-by: Martyn Welch <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/gef_sbc610.dts | 26

[PATCH v5 0/2] powerpc: Board support for GE Fanuc SBC610

2008-09-16 Thread Martyn Welch
The following series implements basic board support for GE Fanuc's SBC610, a 6U single board computer, based on Freescale's MPC8641D. This series provides basic functionality: - The board can boot with a serial console. - Ethernet works, though the phys are polled. - The PCI bus is scanned and sa

Re: dts file for ep8548A board

2008-09-16 Thread John Traill
Don't know if this helps but .. The EP boards I've used have an old version of u-boot which don't support passing the device tree address so I've had to build a cuImage. Cheers. poornima r wrote: Hi all, I am working on ep8548A embedded planet board. I am using mpc8548cds dtb file (mpc8548cd

Re: [PATCH 2/2] ehea: fix mutex and spinlock use

2008-09-16 Thread Thomas Klein
Sebastien Dugue wrote: On Mon, 15 Sep 2008 17:18:27 +0200 Thomas Klein <[EMAIL PROTECTED]> wrote: NACK! I regret but this patch is wrong. It is not sufficient to only lock the replacement of an old list with a new list. Building up those lists is a 3-step process: 1. Count the number of entri

[PATCH] powerpc: Kill outdated Documentation/powerpc/smp.txt

2008-09-16 Thread Geert Uytterhoeven
From: Geert Uytterhoeven <[EMAIL PROTECTED]> Documentation/powerpc/smp.txt is so outdated that it makes sense to just remove it. Signed-off-by: Geert Uytterhoeven <[EMAIL PROTECTED]> --- Documentation/powerpc/00-INDEX |2 -- Documentation/powerpc/smp.txt | 34 -

[PATCH] powerpc: Kill /proc/ppc_htab remainings

2008-09-16 Thread Geert Uytterhoeven
commit 14cf11af6cf608eb8c23e989ddb17a715ddce109 ("powerpc: Merge enough to start building in arch/powerpc.") unwired /proc/ppc_htab, and commit 917f0af9e5a9ceecf9e72537fabb501254ba321d ("powerpc: Remove arch/ppc and include/asm-ppc") removed the rest of the /proc/ppc_htab support, but there are sti

dts file for ep8548A board

2008-09-16 Thread poornima r
Hi all, I am working on ep8548A embedded planet board. I am using mpc8548cds dtb file (mpc8548cds.dts file in arch/powerpc/boot/dts directory of the kernel source) as my device tree file. I am tracing the kernel initilization path through BDI. The BDI tracing is hanging in early_init_devtree