Skip to contentSkip to conversation

ss20/ross/smp

DISCUSSION Heitzso 5 participants 10 messages May 5, 2005 – May 6, 2005

lore
Share & tools
lore

Heitzso

author
#0 lore raw

Some data points in case they are useful.

On a current gentoo ss20 (512M ram, standard internal scsi) with dual hypersparc (ross) 150s, I can compile SMP current 2.4.30 stable kernel (pulled down from kernel.org, no extra patches) and it seems to be running stable SMP provided I don't attempt to run X (xorg is what's on the box, via gentoo). With xorg X running the system locks up after awhile (few minutes to an hour or so, seems to depend on how much I'm trying to do).

I'm compiling current 2.6.x stable (again from kernel.org) now just to get a baseline. It seems to have SMP disabled in the config in a way that would have to be manually edited to enable.

I'm not in a position to do in-the-guts debugging by myself of SMP sparc32/ross issues. BUT, am quite willing to download kernels, patches, etc. and run tests, report on those tests, etc. Just let me know.

Heitzso

#1 lore raw

Hi,

Quoted 1 line

Some data points in case they are useful.

They are, at least for me ;-)

Quoted 7 lines

On a current gentoo ss20 (512M ram, standard internal scsi) with dual hypersparc (ross) 150s, I can compile SMP current 2.4.30 stable kernel (pulled down from kernel.org, no extra patches) and it seems to be running stable SMP provided I don't attempt to run X (xorg is what's on the box, via gentoo). With xorg X running the system locks up after awhile (few minutes to an hour or so, seems to depend on how much I'm trying to do).

Then you're better off than me. Mine dies hard during init, 2.4.30 from kernel.org, SMP enabled. UP runs OK, though. But we seem to have similar hardware:

SPARCstation 20 MP (2 X RT626), No Keyboard
ROM Rev. 2.25, 512 MB memory installed, Serial #7661520. Ethernet address 8:0:20:74:e7:d0, Host ID: 7274e7d0.

The only thing I've noticed is that my prom counts the CPUs as 0 and 2:

CPU_#0       HyperSPARC ROSS RT620/RT626         0x00080000 Bytes ECache 
CPU_#2       HyperSPARC ROSS RT620/RT626         0x00080000 Bytes ECache 

CPU_#1 ******* NOT installed *******
CPU_#3 ******* NOT installed *******

Does that hurt?

Quoted 8 lines

I'm compiling current 2.6.x stable (again from kernel.org) now just to get a baseline. It seems to have SMP disabled in the config in a way that would have to be manually edited to enable.

I'm not in a position to do in-the-guts debugging by myself of SMP sparc32/ross issues. BUT, am quite willing to download kernels, patches, etc. and run tests, report on those tests, etc. Just let me know.

I'd like to do some debugging, but I don't know where to start. I have no idea where my sparc dies. Cache flushing (these routines are totally different for UP and SMP on Hypersparc, as I found out)? Forking and context changes? Being a kernel newbie doesn't really help, but I am willing to learn,

TIA,
Uli
PS: I just recently subscribed to this list and have searched the archives before. All the references I found are suggesting that my setup should run SMP under 2.4.x - and I would like to know why it does not.

Signature · 3 lines
Dipl. Inf. Ulrich Teichert|e-mail: [email protected]
Stormweg 24               |listening to: Suicide Drive (The Deep Eynde)
24539 Neumuenster, Germany|Public Pervert (Interpol) Cauchemar (Opération S)
author
#2 lore raw
In reply to Heitzso

Then you're better off than me. Mine dies hard during init, 2.4.30

I don't know a lot about this. Guessing that the gentoo specific ross optimizations may be helping me. What setup or distro are you running. I threw out my email to 3 lists that cover the gamut. Are you running gentoo? If so, I can give you my USE and other flags from make.conf to see what the diff is. Any other of the sparc distros will have a slightly different setup for gcc, libraries, etc. I wanted gentoo to get a sun4m optimized ssl setup. Otherwise gentoo takes an incredibly long time to compile.

Related to that, I did a series of emerges (gentoo speak) to insure that gcc/libs/kernel were sort-of in sync as I settled in the environment. You may be fighting some variation of a kernel/lib problem.

I also have a keyboard attached and that may make a diff. Again, don't really know.

Quoted 5 lines

from kernel.org, SMP enabled. UP runs OK, though. But we seem to have similar hardware:

The only thing I've noticed is that my prom counts the CPUs as 0 and 2:

Quoted 9 lines
CPU_#0       HyperSPARC ROSS RT620/RT626         0x00080000 Bytes ECache 
CPU_#2       HyperSPARC ROSS RT620/RT626         0x00080000 Bytes ECache 

CPU_#1 ******* NOT installed *******
CPU_#3 ******* NOT installed *******

Does that hurt?

No. Usual way it numbers the cpus (believe, not expert).

Quoted 6 lines

I'd like to do some debugging, but I don't know where to start. I have no idea where my sparc dies. Cache flushing (these routines are totally different for UP and SMP on Hypersparc, as I found out)? Forking and context changes? Being a kernel newbie doesn't really help, but I am willing to learn,

The one kernel that is sort-of guaranteed sparc32 smp for ross is 2.2 series. May be possible for you to compile latest 2.2 kernel SMP and try that out. Though I believe interest is in getting SMP smoothed out and working 2.6.x

#4 lore raw
In reply to Heitzso

Hi,

Quoted 5 lines

Then you're better off than me. Mine dies hard during init, 2.4.30

I don't know a lot about this. Guessing that the gentoo specific ross optimizations may be helping me.

I thought you were running stock kernel.org?

Quoted 2 lines

What setup or distro are you running. I threw out my email to 3 lists that cover the gamut.

Debian woody, sorry, I should have mentioned this.

Quoted 6 lines

Are you running gentoo? If so, I
can give you my USE and other flags from make.conf to see what the diff is. Any other of the sparc distros will have a slightly different setup for gcc, libraries, etc. I wanted gentoo to get a sun4m optimized ssl setup. Otherwise gentoo takes an incredibly long time to compile.

Having only one ISDN line for internet access rules out gentoo or Debian testing/unstable or any other download intensive distro for now.

Quoted 4 lines

Related to that, I did a series of emerges (gentoo speak) to insure that gcc/libs/kernel were sort-of in sync as I settled in the environment. You may be fighting some variation of a kernel/lib problem.

I don't think so, else 2.4.30 would not run UP on my box:

maril:~# uname -a
Linux maril 2.4.30 #3 Sat Apr 30 20:00:51 CEST 2005 sparc unknown
maril:~# gcc -v
Reading specs from /usr/lib/gcc-lib/sparc-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)
Quoted 2 lines

I also have a keyboard attached and that may make a diff. Again, don't really know.

My other sparcs are all running headless without any problems (one of them 2.4.x 32bit SMP) - usually serial console is more stable anyway ;-)

[del]

Quoted 4 lines

The one kernel that is sort-of guaranteed sparc32 smp for ross is 2.2 series. May be possible for you to compile latest 2.2 kernel SMP and try that out. Though I believe interest is in getting SMP smoothed out and working 2.6.x

I will give 2.2 a spin to gather more info. I bought the system from ebay, so there may be a hardware glitch I don't know about, but when it's running 2.2.x SMP, I think we can rule that out.

Thanks,
Uli

Signature · 3 lines
Dipl. Inf. Ulrich Teichert|e-mail: [email protected]
Stormweg 24               |listening to: Suicide Drive (The Deep Eynde)
24539 Neumuenster, Germany|Public Pervert (Interpol) Cauchemar (Opération S)
author
#5 lore raw
In reply to Heitzso
Quoted 4 lines
Quoted 4 lines

Then you're better off than me. Mine dies hard during init, 2.4.30

Quoted 9 lines
Quoted 4 lines

I don't know a lot about this. Guessing that the gentoo specific ross optimizations may be helping me.

I thought you were running stock kernel.org?

I am running stock kernel. But the tool chain is gentoo sparc and the entire tool chain, libraries, etc. was compiled for my sparc/ross box. From another email response, guessing the gentoo optimizations for the libraries/compilers/et al are not the issue.

Quoted 9 lines
Quoted 4 lines

What setup or distro are you running. I threw out my email to 3 lists that cover the gamut.

Debian woody, sorry, I should have mentioned this.

Debian woody will use a very different (older) tool chain stack then gentoo. (gcc/libs). Guessing this is likely diff letting me run SMP on roughly equiv. box.

Quoted 21 lines
Quoted 8 lines

Are you running gentoo? If so, I
can give you my USE and other flags from make.conf to see what the diff is. Any other of the sparc distros will have a slightly different setup for gcc, libraries, etc. I wanted gentoo to get a sun4m optimized ssl setup. Otherwise gentoo takes an incredibly long time to compile.

Having only one ISDN line for internet access rules out gentoo or Debian testing/unstable or any other download intensive distro for now.

Quoted 6 lines

Related to that, I did a series of emerges (gentoo speak) to insure that gcc/libs/kernel were sort-of in sync as I settled in the environment. You may be fighting some variation of a kernel/lib problem.

Quoted 10 lines

I don't think so, else 2.4.30 would not run UP on my box:

maril:~# uname -a
Linux maril 2.4.30 #3 Sat Apr 30 20:00:51 CEST 2005 sparc unknown
maril:~# gcc -v
Reading specs from /usr/lib/gcc-lib/sparc-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)

I'm compiling with gcc 3.3.5 Yours is 2.95.4
My understanding is this is very important re kernel compiles. Somebody else may want to chime in and note why the gcc version is (or isn't) important re SMP versus UP.

Quoted 10 lines

[del]

Quoted 6 lines

The one kernel that is sort-of guaranteed sparc32 smp for ross is 2.2 series. May be possible for you to compile latest 2.2 kernel SMP and try that out. Though I believe interest is in getting SMP smoothed out and working 2.6.x

Quoted 5 lines

I will give 2.2 a spin to gather more info. I bought the system from ebay, so there may be a hardware glitch I don't know about, but when it's running 2.2.x SMP, I think we can rule that out.

You may want to swap out CPUs, i.e. run with just one, then just the other, and double check that they're both good. This is a possibility.

#6 lore raw
In reply to Heitzso

Hi,

[del]

Quoted 3 lines

Debian woody will use a very different (older) tool chain stack then gentoo. (gcc/libs). Guessing this is likely diff letting me run SMP on roughly equiv. box.

It should not, but it may be. The versions of the tool chain I'm using should be alright for any 2.4.x kernel, SMP or not. For 2.6.x, they would be too old.

[del]

Quoted 4 lines

I'm compiling with gcc 3.3.5 Yours is 2.95.4
My understanding is this is very important re kernel compiles. Somebody else may want to chime in and note why the gcc version is (or isn't) important re SMP versus UP.

Well, I would be surprised if you could compile any 2.2.x kernel with such bleeding edge gcc.

Quoted 8 lines
Quoted 5 lines

I will give 2.2 a spin to gather more info. I bought the system from ebay, so there may be a hardware glitch I don't know about, but when it's running 2.2.x SMP, I think we can rule that out.

You may want to swap out CPUs, i.e. run with just one, then just the other, and double check that they're both good. This is a possibility.

It runs well with 2.2.26, stock kernel.org:

maril:~> uname -a
Linux maril 2.2.26 #1 SMP Thu May 5 16:35:15 CEST 2005 sparc unknown maril:~> cat /proc/cpuinfo
cpu : ROSS HyperSparc RT625 or RT626
fpu : ROSS HyperSparc combined IU/FPU
promlib : Version 3 Revision 2
prom : 2.25
type : sun4m
ncpus probed : 2
ncpus active : 2
Cpu0Bogo : 150.32
Cpu1Bogo : 149.91
MMU type : ROSS HyperSparc
invall : 0
invmm : 0
invrnge : 0
invpg : 0
contexts : 4096
CPU0 : online
CPU1 : online
maril:~> uptime
20:01:33 up 1:16, 2 users, load average: 1.04, 1.71, 1.92

Currently doing the third kernel compile in a row to provide some load. The only thing which looks fishy are the different BogoMips values for my CPUs. Is this normal?

TIA,
Uli

Signature · 3 lines
Dipl. Inf. Ulrich Teichert|e-mail: [email protected]
Stormweg 24               |listening to: Suicide Drive (The Deep Eynde)
24539 Neumuenster, Germany|Public Pervert (Interpol) Cauchemar (Opération S)
#7 lore raw
In reply to Heitzso
Quoted 3 lines · Heitzso

I'm compiling current 2.6.x stable (again from kernel.org) now just to get a baseline. It seems to have SMP disabled in the config in a way that would have to be manually edited to enable.

Um, because it's completely busted?

Quoted 4 lines

I'm not in a position to do in-the-guts debugging by myself of SMP sparc32/ross issues. BUT, am quite willing to download kernels, patches, etc. and run tests, report on those tests, etc. Just let me know.

In the year-plus since you first posted this you could have read, at a leisurely pace, the entire sparcv8 manual five times and the Linux smp4m implementation twenty. And if you had, you would be able to fix the problem instead of testing someone else's nonexistent fixes. These machines cost, what, ten bucks now? I guarantee you the limiting factor isn't testing resources.

If you want this port to live, get hacking. If you get stuck, there are people here who can and often will answer your questions. Otherwise it's not much use posting periodically to remind people that you'd like it fixed but aren't willing to do any of the work needed to make that happen.

Signature · 3 lines
Keith M Wesolowski

If at first you don't succeed, destroy all evidence that you tried.
author
#8 lore raw
In reply to Heitzso
Quoted 7 lines · Keith M Wesolowski

In the year-plus since you first posted this you could have read, at a leisurely pace, the entire sparcv8 manual five times and the Linux smp4m implementation twenty. And if you had, you would be able to fix the problem instead of testing someone else's nonexistent fixes. These machines cost, what, ten bucks now? I guarantee you the limiting factor isn't testing resources.

Quoted 8 lines

If you want this port to live, get hacking. If you get stuck, there are people here who can and often will answer your questions. Otherwise it's not much use posting periodically to remind people that you'd like it fixed but aren't willing to do any of the work needed to make that happen.

If someone could point to a couple of the broken places that need work for sparc32 smp to function I'll look at them.

Does someone maintain a task list for sparc32 SMP? I.e. a list of code blocks that need to be cleaned up in order for sparc32 SMP to work?

Wouldn't this be good for the ultralinux site to manage? Is that possible?

Thanks

#9 lore raw
In reply to Heitzso
Quoted 7 lines · Heitzso

If someone could point to a couple of the broken places that need work for sparc32 smp to function I'll look at them.

Does someone maintain a task list for sparc32 SMP? I.e. a list of code blocks that need to be cleaned up in order for sparc32 SMP to work?

The closest thing to working smp on 2.6 that I've seen is what I sent to the sparclinux list back in February.

Bob