All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] sparc32: smp fixes
@ 2006-06-11  6:15 Bob Breuer
  2006-06-11  6:33 ` David Miller
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Bob Breuer @ 2006-06-11  6:15 UTC (permalink / raw)
  To: sparclinux

Here's a set of patches to get sparc32 caught back up to the moving SMP
target:
 1 - add topology_init
 2 - setup cpu_possible_map
 3 - add missing rw can_lock macros
 4 - mark smp init functions as cpuinit

I have tested these successfully with 2.6.17-rc5.  With 2x
SuperSPARC-II, I can rebuild the kernel with "make -j6" while running
the SMP kernel.  I've verified that UP still builds and runs.  No luck
yet with dual hyperSPARC's, but it will fully boot when restricted to
just one.

Bob

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/4] sparc32: smp fixes
  2006-06-11  6:15 [PATCH 0/4] sparc32: smp fixes Bob Breuer
@ 2006-06-11  6:33 ` David Miller
  2006-06-11 20:12 ` Ludovic Courtès
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2006-06-11  6:33 UTC (permalink / raw)
  To: sparclinux

From: Bob Breuer <breuerr@mc.net>
Date: Sun, 11 Jun 2006 01:15:00 -0500

> Here's a set of patches to get sparc32 caught back up to the moving SMP
> target:
>  1 - add topology_init
>  2 - setup cpu_possible_map
>  3 - add missing rw can_lock macros
>  4 - mark smp init functions as cpuinit
> 
> I have tested these successfully with 2.6.17-rc5.  With 2x
> SuperSPARC-II, I can rebuild the kernel with "make -j6" while running
> the SMP kernel.  I've verified that UP still builds and runs.  No luck
> yet with dual hyperSPARC's, but it will fully boot when restricted to
> just one.

Thanks Bob, I'll try to integrate these over the weekend.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/4] sparc32: smp fixes
  2006-06-11  6:15 [PATCH 0/4] sparc32: smp fixes Bob Breuer
  2006-06-11  6:33 ` David Miller
@ 2006-06-11 20:12 ` Ludovic Courtès
  2006-06-11 23:28 ` Bob Breuer
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Ludovic Courtès @ 2006-06-11 20:12 UTC (permalink / raw)
  To: sparclinux

Hi,

Today, 12 hours, 39 minutes, 42 seconds ago, Bob Breuer wrote:
> Here's a set of patches to get sparc32 caught back up to the moving SMP
> target:
>  1 - add topology_init
>  2 - setup cpu_possible_map
>  3 - add missing rw can_lock macros
>  4 - mark smp init functions as cpuinit
> 
> I have tested these successfully with 2.6.17-rc5.

Your patches apply correctly to rc6 as well.

However, when trying to compile natively rc6 with your patches, with
either GCC 4.1.1 or 4.0.4 (from Debian unstable), I get an ICE:

  CC      kernel/sched.o
  kernel/sched.c: In function 'effective_prio':
  kernel/sched.c:659: internal compiler error: in choose_multiplier, at expmed.c:3269

What compiler and what platform do you use to compile the kernel?
Has anyone experienced similar problems?

Thanks,
Ludovic.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/4] sparc32: smp fixes
  2006-06-11  6:15 [PATCH 0/4] sparc32: smp fixes Bob Breuer
  2006-06-11  6:33 ` David Miller
  2006-06-11 20:12 ` Ludovic Courtès
@ 2006-06-11 23:28 ` Bob Breuer
  2006-06-14 17:35 ` Ludovic Courtès
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Bob Breuer @ 2006-06-11 23:28 UTC (permalink / raw)
  To: sparclinux

Ludovic Courtès wrote:
> However, when trying to compile natively rc6 with your patches, with
> either GCC 4.1.1 or 4.0.4 (from Debian unstable), I get an ICE:
> 
>   CC      kernel/sched.o
>   kernel/sched.c: In function 'effective_prio':
>   kernel/sched.c:659: internal compiler error: in choose_multiplier, at expmed.c:3269
> 
> What compiler and what platform do you use to compile the kernel?
> Has anyone experienced similar problems?

That's strange, I didn't touch kernel/sched.c, but I did modify a couple
of sparc specific header files.  Can you narrow down which patch broke
it for you?

I compiled it both with gcc 3.3.4 and 3.4.2 from Aurora, specifically:
  gcc version 3.3.4 20040623 (Red Hat 3.3.4-2)
  gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)

Bob

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/4] sparc32: smp fixes
  2006-06-11  6:15 [PATCH 0/4] sparc32: smp fixes Bob Breuer
                   ` (2 preceding siblings ...)
  2006-06-11 23:28 ` Bob Breuer
@ 2006-06-14 17:35 ` Ludovic Courtès
  2006-06-14 22:31 ` David Miller
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Ludovic Courtès @ 2006-06-14 17:35 UTC (permalink / raw)
  To: sparclinux

Hi,

2 days, 18 hours, 3 minutes, 4 seconds ago, 
Bob Breuer wrote:
> Ludovic Courtès wrote:
> > However, when trying to compile natively rc6 with your patches, with
> > either GCC 4.1.1 or 4.0.4 (from Debian unstable), I get an ICE:
> > 
> >   CC      kernel/sched.o
> >   kernel/sched.c: In function 'effective_prio':
> >   kernel/sched.c:659: internal compiler error: in choose_multiplier, at expmed.c:3269
> > 
> > What compiler and what platform do you use to compile the kernel?
> > Has anyone experienced similar problems?
> 
> That's strange, I didn't touch kernel/sched.c, but I did modify a couple
> of sparc specific header files.  Can you narrow down which patch broke
> it for you?
> 
> I compiled it both with gcc 3.3.4 and 3.4.2 from Aurora, specifically:
>   gcc version 3.3.4 20040623 (Red Hat 3.3.4-2)
>   gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)

Using GCC 3.4.6 (from Debian sid) fixes the problem.

However, the resulting kernel hangs right after the "Booting Linux..."
message.  Unfortunately, I might have a few objects compiled with 4.x in
the middle of those compiled with 3.4.6.  Is this likely to cause
troubles?

In the meantime, could you make SMP images available?  Then I could
spend my CPU time compiling natively, which would be more useful.

Thanks,
Ludovic.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/4] sparc32: smp fixes
  2006-06-11  6:15 [PATCH 0/4] sparc32: smp fixes Bob Breuer
                   ` (3 preceding siblings ...)
  2006-06-14 17:35 ` Ludovic Courtès
@ 2006-06-14 22:31 ` David Miller
  2006-06-19 20:38 ` Ludovic Courtès
  2006-06-20  5:03 ` Bob Breuer
  6 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2006-06-14 22:31 UTC (permalink / raw)
  To: sparclinux

From: Ludovic Courtès <ludo@chbouib.org>
Date: Wed, 14 Jun 2006 19:35:26 +0200

> However, the resulting kernel hangs right after the "Booting Linux..."
> message.  Unfortunately, I might have a few objects compiled with 4.x in
> the middle of those compiled with 3.4.6.  Is this likely to cause
> troubles?

Absolutely.    Changing the compiler changes many defines use in
the build, via include/linux/compiler.h, and this can even change
data structure layout.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/4] sparc32: smp fixes
  2006-06-11  6:15 [PATCH 0/4] sparc32: smp fixes Bob Breuer
                   ` (4 preceding siblings ...)
  2006-06-14 22:31 ` David Miller
@ 2006-06-19 20:38 ` Ludovic Courtès
  2006-06-20  5:03 ` Bob Breuer
  6 siblings, 0 replies; 8+ messages in thread
From: Ludovic Courtès @ 2006-06-19 20:38 UTC (permalink / raw)
  To: sparclinux

Hi,

5 days, 2 hours, 52 minutes, 18 seconds ago, 
Ludovic Courtès wrote:
> Using GCC 3.4.6 (from Debian sid) fixes the problem.

Actually it doesn't.  For some reason, I now hit the following ICE with
3.4.6 (Debian's `gcc-3.4', version 3.4.6-2) systematically:

    CC      fs/proc/proc_misc.o
    CC      fs/dnotify.o
  distcc[13671] ERROR: compile /home/ludo/.ccache/proc_misc.tmp.cheetah.13656.i on localhost failed
  fs/proc/proc_misc.c: In function `uptime_read_proc':
  fs/proc/proc_misc.c:109: internal compiler error: in choose_multiplier, at expmed.c:2738
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See <URL:http://gcc.gnu.org/bugs.html> for instructions.
  For Debian GNU/Linux specific bug reporting instructions,
  see <URL:file:///usr/share/doc/gcc-3.4/README.Bugs>.

I finally used 3.3.6 to built the whole kernel and I don't hit any ICE
there.  Is anybody building SPARC kernels with 3.4 or 4.x?

> However, the resulting kernel hangs right after the "Booting Linux..."
> message.

The kernel (once cleanly recompiled with 3.3.6) still hangs at the same
point, whether there are one or two CPUs in the machine.

I guess I should try to selectively revert some of the SMP patches in
order to try to find out what's causing this.  Any advice about how to
proceed?

Thanks,
Ludovic.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/4] sparc32: smp fixes
  2006-06-11  6:15 [PATCH 0/4] sparc32: smp fixes Bob Breuer
                   ` (5 preceding siblings ...)
  2006-06-19 20:38 ` Ludovic Courtès
@ 2006-06-20  5:03 ` Bob Breuer
  6 siblings, 0 replies; 8+ messages in thread
From: Bob Breuer @ 2006-06-20  5:03 UTC (permalink / raw)
  To: sparclinux

Ludovic Courtès wrote:
> Hi,
> 
> 5 days, 2 hours, 52 minutes, 18 seconds ago, 
> Ludovic Courtès wrote:
>> Using GCC 3.4.6 (from Debian sid) fixes the problem.
> 
> Actually it doesn't.  For some reason, I now hit the following ICE with
> 3.4.6 (Debian's `gcc-3.4', version 3.4.6-2) systematically:
> 
>     CC      fs/proc/proc_misc.o
>     CC      fs/dnotify.o
>   distcc[13671] ERROR: compile
    ^^^^^^
Jumping through extra hoops here?  Or in other words, is there any
chance that distcc may cause problems?

> I finally used 3.3.6 to built the whole kernel and I don't hit any ICE
> there.  Is anybody building SPARC kernels with 3.4 or 4.x?
> 
>> However, the resulting kernel hangs right after the "Booting Linux..."
>> message.
> 
> The kernel (once cleanly recompiled with 3.3.6) still hangs at the same
> point, whether there are one or two CPUs in the machine.

I've put my SMP kernel image up at: http://user.mc.net/~breuerr/sparc/
if you want to give it a try.  No initrd needed, and it's a pretty
trimmed down config, but it works for me.  The config and patch to
recreate it are also there.

Bob

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-06-20  5:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-11  6:15 [PATCH 0/4] sparc32: smp fixes Bob Breuer
2006-06-11  6:33 ` David Miller
2006-06-11 20:12 ` Ludovic Courtès
2006-06-11 23:28 ` Bob Breuer
2006-06-14 17:35 ` Ludovic Courtès
2006-06-14 22:31 ` David Miller
2006-06-19 20:38 ` Ludovic Courtès
2006-06-20  5:03 ` Bob Breuer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.