* Re: ss20/ross/smp
2005-05-05 10:05 ss20/ross/smp Heitzso
@ 2005-05-05 12:15 ` Ulrich Teichert
2005-05-05 12:53 ` ss20/ross/smp Heitzso
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Ulrich Teichert @ 2005-05-05 12:15 UTC (permalink / raw)
To: sparclinux
Hi,
>Some data points in case they are useful.
They are, at least for me ;-)
>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?
>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.
--
Dipl. Inf. Ulrich Teichert|e-mail: Ulrich.Teichert@gmx.de
Stormweg 24 |listening to: Suicide Drive (The Deep Eynde)
24539 Neumuenster, Germany|Public Pervert (Interpol) Cauchemar (Opération S)
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: ss20/ross/smp
2005-05-05 10:05 ss20/ross/smp Heitzso
2005-05-05 12:15 ` ss20/ross/smp Ulrich Teichert
@ 2005-05-05 12:53 ` Heitzso
2005-05-05 13:08 ` ss20/ross/smp Stephen P. Becker
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Heitzso @ 2005-05-05 12:53 UTC (permalink / raw)
To: sparclinux
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.
>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:
>
>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).
>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
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: ss20/ross/smp
2005-05-05 10:05 ss20/ross/smp Heitzso
2005-05-05 12:15 ` ss20/ross/smp Ulrich Teichert
2005-05-05 12:53 ` ss20/ross/smp Heitzso
@ 2005-05-05 13:08 ` Stephen P. Becker
2005-05-05 13:22 ` ss20/ross/smp Ulrich Teichert
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Stephen P. Becker @ 2005-05-05 13:08 UTC (permalink / raw)
To: sparclinux
Heitzso wrote:
> I don't know a lot about this. Guessing that the gentoo
> specific ross optimizations may be helping me.
Umm, no.
-Steve
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: ss20/ross/smp
2005-05-05 10:05 ss20/ross/smp Heitzso
` (2 preceding siblings ...)
2005-05-05 13:08 ` ss20/ross/smp Stephen P. Becker
@ 2005-05-05 13:22 ` Ulrich Teichert
2005-05-05 14:50 ` ss20/ross/smp Heitzso
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Ulrich Teichert @ 2005-05-05 13:22 UTC (permalink / raw)
To: sparclinux
Hi,
>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?
>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.
>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.
>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)
>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]
>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
--
Dipl. Inf. Ulrich Teichert|e-mail: Ulrich.Teichert@gmx.de
Stormweg 24 |listening to: Suicide Drive (The Deep Eynde)
24539 Neumuenster, Germany|Public Pervert (Interpol) Cauchemar (Opération S)
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: ss20/ross/smp
2005-05-05 10:05 ss20/ross/smp Heitzso
` (3 preceding siblings ...)
2005-05-05 13:22 ` ss20/ross/smp Ulrich Teichert
@ 2005-05-05 14:50 ` Heitzso
2005-05-05 18:04 ` ss20/ross/smp Ulrich Teichert
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Heitzso @ 2005-05-05 14:50 UTC (permalink / raw)
To: sparclinux
>>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?
>
>
>
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.
>>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.
>>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.
>
>
>
>>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)
>
>
>
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.
>[del]
>
>
>>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.
>
>
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.
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: ss20/ross/smp
2005-05-05 10:05 ss20/ross/smp Heitzso
` (4 preceding siblings ...)
2005-05-05 14:50 ` ss20/ross/smp Heitzso
@ 2005-05-05 18:04 ` Ulrich Teichert
2005-05-06 0:42 ` [gentoo-sparc] ss20/ross/smp Keith M Wesolowski
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Ulrich Teichert @ 2005-05-05 18:04 UTC (permalink / raw)
To: sparclinux
Hi,
[del]
>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]
>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.
>>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
--
Dipl. Inf. Ulrich Teichert|e-mail: Ulrich.Teichert@gmx.de
Stormweg 24 |listening to: Suicide Drive (The Deep Eynde)
24539 Neumuenster, Germany|Public Pervert (Interpol) Cauchemar (Opération S)
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [gentoo-sparc] ss20/ross/smp
2005-05-05 10:05 ss20/ross/smp Heitzso
` (5 preceding siblings ...)
2005-05-05 18:04 ` ss20/ross/smp Ulrich Teichert
@ 2005-05-06 0:42 ` Keith M Wesolowski
2005-05-06 12:14 ` Heitzso
2005-05-06 14:50 ` Bob Breuer
8 siblings, 0 replies; 10+ messages in thread
From: Keith M Wesolowski @ 2005-05-06 0:42 UTC (permalink / raw)
To: sparclinux
On Thu, May 05, 2005 at 06:05:31AM -0400, Heitzso wrote:
> 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?
> 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.
--
Keith M Wesolowski
If at first you don't succeed, destroy all evidence that you tried.
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [gentoo-sparc] ss20/ross/smp
2005-05-05 10:05 ss20/ross/smp Heitzso
` (6 preceding siblings ...)
2005-05-06 0:42 ` [gentoo-sparc] ss20/ross/smp Keith M Wesolowski
@ 2005-05-06 12:14 ` Heitzso
2005-05-06 14:50 ` Bob Breuer
8 siblings, 0 replies; 10+ messages in thread
From: Heitzso @ 2005-05-06 12:14 UTC (permalink / raw)
To: sparclinux
Keith M Wesolowski wrote:
>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.
>
>
>
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
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [gentoo-sparc] ss20/ross/smp
2005-05-05 10:05 ss20/ross/smp Heitzso
` (7 preceding siblings ...)
2005-05-06 12:14 ` Heitzso
@ 2005-05-06 14:50 ` Bob Breuer
8 siblings, 0 replies; 10+ messages in thread
From: Bob Breuer @ 2005-05-06 14:50 UTC (permalink / raw)
To: sparclinux
Heitzso wrote:
> 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
^ permalink raw reply [flat|nested] 10+ messages in thread