Re: [PATCH] change acquire/release_console_sem() to console_lock/unlock()

2011-01-21 Thread Geert Uytterhoeven
On Thu, Jan 20, 2011 at 21:35, Andrew Morton wrote: > On Thu, 20 Jan 2011 17:55:02 +0100 > torbenh wrote: > >> On Thu, Jan 20, 2011 at 08:34:48AM -0800, Greg KH wrote: >> > On Thu, Jan 20, 2011 at 04:58:13PM +0100, Torben Hohn wrote: >> > > the -rt patches change the console_semaphore to console_

Re: [PATCH] change acquire/release_console_sem() to console_lock/unlock()

2011-01-21 Thread Andrew Morton
On Fri, 21 Jan 2011 09:10:06 +0100 Geert Uytterhoeven wrote: > include/linux/mutex.h: > > /* > * NOTE: mutex_trylock() follows the spin_trylock() convention, > * not the down_trylock() convention! > * > * Returns 1 if the mutex has been acquired successfully, and 0 on contention. > *

Re: [PATCH] powerpc: Fix some 6xx/7xxx CPU setup functions

2011-01-21 Thread Andreas Schwab
Benjamin Herrenschmidt writes: > In absence of good testing I would appreciate a close inspection of the patch > by different pairs of eyes :-) Looks good to me. That broke apparently in 400d221 ("ppc32: make cur_cpu_spec a single pointer instead of an array"), which changed the calling convent

Re: [PATCH] powerpc: Pass the right cpu_spec to ->setup_cpu() on 64-bit

2011-01-21 Thread Andreas Schwab
You may also want to remove the misleading sentence about PTRRELOC in the preceding comment, since both s and t were already passed through it anyway. Andreas. -- Andreas Schwab, sch...@redhat.com GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E "And now for something com

Re: [PATCH] powerpc: Fix some 6xx/7xxx CPU setup functions

2011-01-21 Thread Benjamin Herrenschmidt
On Fri, 2011-01-21 at 10:48 +0100, Andreas Schwab wrote: > Benjamin Herrenschmidt writes: > > > In absence of good testing I would appreciate a close inspection of the > > patch > > by different pairs of eyes :-) > > Looks good to me. That broke apparently in 400d221 ("ppc32: make > cur_cpu_sp

[patch 1/2] powerpc: Use ARCH_IRQ_INIT_FLAGS

2011-01-21 Thread Thomas Gleixner
Define the ARCH_IRQ_INIT_FLAGS instead of fixing it up in a loop. Signed-off-by: Thomas Gleixner --- arch/powerpc/include/asm/hw_irq.h |2 ++ arch/powerpc/kernel/irq.c | 15 --- 2 files changed, 2 insertions(+), 15 deletions(-) Index: linux-2.6-tip/arch/powerpc/include

[patch 0/2] Sparse irq cleanup - Resend

2011-01-21 Thread Thomas Gleixner
The following series cleans up the left overs of the old sparse irq code. Thanks, tglx ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[patch 2/2] powerpc: Use new irq allocator

2011-01-21 Thread Thomas Gleixner
Use the new functions and free the descriptor when the virq is destroyed. Signed-off-by: Thomas Gleixner --- arch/powerpc/kernel/irq.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) Index: linux-2.6-tip/arch/powerpc/kernel/irq.c ===

fsl-esdhc on P2020 weird endianess behavior

2011-01-21 Thread Elie De Brauwer
Hello list, I have a P2020 processor on a custom board which uses the embedded fsl-esdhc controller. Hardware-wise this is functional and in u-boot everything seems to behave (mmc part 0 gives the correct partition table and ext2ls/fatls are capable of reading the contents of the sd card). H

Re: [PATCH] Globally s/struct irq_host/struct irq_domain/

2011-01-21 Thread Jon Loeliger
> > For this to make sense, it really needs to also rename irq_host_ops > structure, the IRQ_HOST_MAP* #defines, and the irq_*_host functions. > It also /should/ adjust the users of irq_domain to rename function > local variables and structure members. Otherwise there will be an > even worse mism

Re: [PATCH] Globally s/struct irq_host/struct irq_domain/

2011-01-21 Thread Grant Likely
On Fri, Jan 21, 2011 at 10:19 AM, Jon Loeliger wrote: >> >> For this to make sense, it really needs to also rename irq_host_ops >> structure, the IRQ_HOST_MAP* #defines, and the irq_*_host functions. >> It also /should/ adjust the users of irq_domain to rename function >> local variables and struc

Re: [PATCH] Globally s/struct irq_host/struct irq_domain/

2011-01-21 Thread Jon Loeliger
> > I always reserve the right to change my mind. }:-> Naturally! > Sorry about that, No problem. The thought back then was that we'd hit the "global" piece and then we'd buy the time to hit the local pieces as we could. > but I actually applied the patch this morning with the thought that

Re: [PATCH] powerpc: Fix some 6xx/7xxx CPU setup functions

2011-01-21 Thread kevin diggs
On Fri, Jan 21, 2011 at 12:35 AM, Benjamin Herrenschmidt wrote: > Some of those functions try to adjust the CPU features, for example > to remove NAP support on some revisions. However, they seem to use > r5 as an index into the CPU table entry, which might have been right > a long time ago but no

BootX

2011-01-21 Thread kevin diggs
Hi, Anyone familiar with BootX? Could my problems with the 8600 be related to some interaction with BootX? kevin ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH] powerpc: Fix some 6xx/7xxx CPU setup functions

2011-01-21 Thread Benjamin Herrenschmidt
On Fri, 2011-01-21 at 12:15 -0600, kevin diggs wrote: > I have a GigE (PowerMac 3,4?) with an upgrade card that has a pair of > 7455s on it and an 8600 with a 750GX cpu card. I can probably test > this on the GigE. It is running 2.6.36. Is that recent enough? The > 8600 is not cooperating. > > Th

Re: BootX

2011-01-21 Thread Benjamin Herrenschmidt
On Fri, 2011-01-21 at 13:26 -0600, kevin diggs wrote: > Hi, > > Anyone familiar with BootX? Could my problems with the 8600 be related > to some interaction with BootX? It's possible. Have you tried using OF booting instead ? The 8600 should be cable to boot off SCSI or netboot COFF images. Chee

Setting GPIO to trigger interrupt on mpc85xx

2011-01-21 Thread Kenny Ho
Hi, I am working on the fsl P1020rdb kit with the 2.6.32 linux kernel that came with the kit and I am trying to get an GPIO to trigger an interrupt. I am fairly new and have been stumbling for quite a bit with no success so I am hoping some of you experts out there can give me some pointers.

elf section .text.unlikely

2011-01-21 Thread kevin diggs
Hi, I am trying to get a PowerMac 8600 to boot past 2.6.28. I can boot 2.6.28 compiled with either 3.3.3 or 3.4.6. I can't get 2.6.28 to boot using 4.3.5. The 4.3.5 vmlinux has a section '.text.unlikely' that the 3.4.6 version does not. Anyone know what this might be? kevin _

Re: BootX

2011-01-21 Thread kevin diggs
Hi, This would require quik, right? I went to penguinppc.org and tried to get the latest BootX and quik but the links are dead. Do you know where the latest versions are? kevin On Fri, Jan 21, 2011 at 3:21 PM, Benjamin Herrenschmidt wrote: > On Fri, 2011-01-21 at 13:26 -0600, kevin diggs wrote:

Re: BootX

2011-01-21 Thread Benjamin Herrenschmidt
On Fri, 2011-01-21 at 19:48 -0600, kevin diggs wrote: > Hi, > > This would require quik, right? I went to penguinppc.org and tried to > get the latest BootX and quik but the links are dead. Do you know > where the latest versions are? That link still works: > kevin > > On Fri, Jan 21, 2011 at

Re: BootX

2011-01-21 Thread Benjamin Herrenschmidt
On Fri, 2011-01-21 at 19:48 -0600, kevin diggs wrote: > Hi, > > This would require quik, right? I went to penguinppc.org and tried to > get the latest BootX and quik but the links are dead. Do you know > where the latest versions are? That link still works: Oops... typing FAIL :-) I meant: htt

Re: BootX

2011-01-21 Thread kevin diggs
Hi, The link: http://www.shiner.info/?files/Yellow%20Dog%20Linux%204/quik to download the latest source does not seem to have anything useful??? kevin On Fri, Jan 21, 2011 at 7:50 PM, Benjamin Herrenschmidt wrote: > On Fri, 2011-01-21 at 19:48 -0600, kevin diggs wrote: >> Hi, >> >> This would

Re: elf section .text.unlikely

2011-01-21 Thread kevin diggs
For what it is worth, this section contains dump_stack, panic, and printk Thanks! kevin On Fri, Jan 21, 2011 at 7:40 PM, kevin diggs wrote: > Hi, > > I am trying to get a PowerMac 8600 to boot past 2.6.28. > > I can boot 2.6.28 compiled with either 3.3.3 or 3.4.6. I can't get > 2.6.28 to boot u

Re: BootX

2011-01-21 Thread Benjamin Herrenschmidt
On Fri, 2011-01-21 at 20:03 -0600, kevin diggs wrote: > Hi, > > The link: > > http://www.shiner.info/?files/Yellow%20Dog%20Linux%204/quik > > to download the latest source does not seem to have anything useful??? Ah right. 2.0e is still there tho. Try to have a look at what's in distros like de

Re: elf section .text.unlikely

2011-01-21 Thread kevin diggs
Hi, One more thing: The last message printed is: Driver 'sd' needs updating - please us bus_type methods The mesh SCSI controller seems to successfully scan the bus. The next message that a 3.4.6 compiled kernel prints are details about disk sda (from SCSI disk driver?). 4.3.5 keyboard is dead