* kernel 2.2.x and eth cards (Sun hme and Sun quad)
@ 1999-09-11 20:56 Tomasz Kłoczko
1999-09-11 23:41 ` David S. Miller
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: Tomasz Kłoczko @ 1999-09-11 20:56 UTC (permalink / raw)
To: ultralinux
Fiew days ago I'm try to start upgrade my Ultra 1 from UP 1.1.9 to RH 6.0.
Afert finishing this operation and reboting system dyring initialize ethe
ports something was goin wrong and I log on to system .. without eth
ports. After short investigation I'm insert into __initfunc() (after
comment "QEC can be parent of ..."):
printk("sdev->prom_name: %s (qec)\n", sdev->prom_name);
printk("sdev->child: %p\n", sdev->child);
if (sdev->child){
printk("sdev->child->prom_name: %s (qe)\n", sdev->child->prom_name);
printk("sdev->child->next: %p\n", sdev->child->next);
if (sdev->child->next){
printk("sdev->child->next->prom_name: %s (qe)\n",sdev->child->next->prom_name);
printk("sdev->child->next->next: %p", sdev->child->next->next);
if (sdev->child->next->next){
printk("sdev->child->next->next->prom_name: %s (qe)", sdev->child->next->next->prom_name);
printk("sdev->child->next->next->next, %p\n", sdev->child->next->next->next);
if (sdev->child->next->next->next){
printk("sdev->child->next->next->next->prom_name: %s (qe)\n", sdev->child->next->next->next->prom_name);
}}}}
for checking SBus structures tree in my system readaed by
for_each_sbusdev(). And after booting 2.1.126 (last kernel version which
works for me with hme) and inserting sunqe module I receive:
[root@mer net]# insmod sunqe.o
sdev->prom_name: SUNW,CS4231 (qec)
sdev->child: 0000000000000000
sdev->prom_name: auxio (qec)
sdev->child: 0000000000000000
sdev->prom_name: flashprom (qec)
sdev->child: 0000000000000000
sdev->prom_name: SUNW,fdtwo (qec)
sdev->child: 0000000000000000
sdev->prom_name: eeprom (qec)
sdev->child: 0000000000000000
sdev->prom_name: zs (qec)
sdev->child: 0000000000000000
sdev->prom_name: zs (qec)
sdev->child: 0000000000000000
sdev->prom_name: sc (qec)
sdev->child: 0000000000000000
sdev->prom_name: SUNW,pll (qec)
sdev->child: 0000000000000000
sdev->prom_name: SUNW,fas (qec)
sdev->child: fffff80007ef3960
sdev->child->prom_name: sd (qe)
sdev->child->next: fffff80007ef3b80
sdev->child->next->prom_name: st (qe)
sdev->child->next->next: 0000000000000000sdev->prom_name: SUNW,hme (qec)
sdev->child: 0000000000000000
sdev->prom_name: SUNW,bpp (qec)
sdev->child: 0000000000000000
sdev->prom_name: SUNW,qfe (qec)
sdev->child: 0000000000000000
sdev->prom_name: SUNW,qfe (qec)
sdev->child: 0000000000000000
sdev->prom_name: SUNW,qfe (qec)
sdev->child: 0000000000000000
sdev->prom_name: SUNW,qfe (qec)
sdev->child: 0000000000000000
sunqe.o: init_module: Device or resource busy
Now I'm start analize __initfunc() in 2.2.10.
I see in this function fragment:
for_each_sbus(bus) {
for_each_sbusdev(sdev, bus) {
if(cards) dev = NULL;
/* QEC can be parent of either QuadEthernet or BigMAC
* children.
*/
if(!strcmp(sdev->prom_name, "qec") && sdev->child &&
!strcmp(sdev->child->prom_name, "qe") &&
sdev->child->next &&
!strcmp(sdev->child->next->prom_name, "qe") &&
sdev->child->next->next &&
!strcmp(sdev->child->next->next->prom_name, "qe") &&
sdev->child->next->next->next && !strcmp(sdev->child->next->next->next->prom_name, "qe")) {
cards++;
if((v = qec_ether_init(dev, sdev)))
return v;
}
}
}
Hmm .. seems that Sun Quad has name "qfe" .. not "qe" and second .. this
not one device "qec" and four chann "qe" devices but only four "qfe" on
the same level.
Seems that this is completly broken for my hardware. Question (1) is .. is
anyone have working sun quad under 2.2.x ?
And next Q(2): If I only rewrite __initfunc() for proper detection Quad
devices can current code corectly initialize them and drive ?
OK this is about Quad. As I say not only Quad not working under 2.2 for
me. Also Sun hepay meal. One eye shot into happy_meal_probe() in sunhme.c:
for_each_sbus(bus) {
for_each_sbusdev(sdev, bus) {
if(cards)
dev = NULL;
if(!strcmp(sdev->prom_name, "SUNW,hme")) {
cards++;
if((v = happy_meal_ether_init(dev, sdev, 0)))
return v;
} else if(!strcmp(sdev->prom_name, "qfe") ||
!strcmp(sdev->prom_name, "SUNW,qfe")) {
cards++;
if((v = happy_meal_ether_init(dev, sdev, 1)))
return v;
}
}
}
Looking on above prink outptu I see that my hme have "SUNW,hme" name and
seems that (partialy) above loop is correctly .. but why (the hell) on
initializing hme is probed qfe/SUNW,qfe (?) which is name for Quad
interfaces ? This second (meybe) broken point (this is like "if can not
initialize soud card .. initialize TV card" ;-)
And last question is .. in which way I can try to fix this ? :-)
I'm not finish investigation why hme card under 2.2 (2.2.10) not working
but seems that maybe something is broken in happy_meal_ether_init() .. I'l
try finish this and report.
Regards
kloczek
--
-----------------------------------------------------------
*Ludzie nie maj± problemów, tylko sobie sami je stwarzaj±*
-----------------------------------------------------------
Tomasz K³oczko, sys adm @zie.pg.gda.pl|*e-mail: kloczek@rudy.mif.pg.gda.pl*
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kernel 2.2.x and eth cards (Sun hme and Sun quad)
1999-09-11 20:56 kernel 2.2.x and eth cards (Sun hme and Sun quad) Tomasz Kłoczko
@ 1999-09-11 23:41 ` David S. Miller
1999-09-12 2:07 ` Tomasz Kłoczko
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: David S. Miller @ 1999-09-11 23:41 UTC (permalink / raw)
To: ultralinux
Date: Sat, 11 Sep 1999 22:56:21 +0200 (CEST)
From: =?ISO-8859-2?Q?Tomasz_K³oczko?= <kloczek@rudy.mif.pg.gda.pl>
Hmm .. seems that Sun Quad has name "qfe" .. not "qe" and second .. this
not one device "qec" and four chann "qe" devices but only four "qfe" on
the same level.
That's right, you don't have a card driven by the sunqe.c driver.
You have a quad-fast-ethernet, which is composed of 4 happy meal fast
ethernet interfaces. Thus the sunhme.o driver is what would drive
them.
There were a few bugs in the sunhme driver for SBUS qfe cards, like
yours, they are now fixed as of 2.2.13pre6
Looking on above prink outptu I see that my hme have "SUNW,hme" name and
seems that (partialy) above loop is correctly .. but why (the hell) on
initializing hme is probed qfe/SUNW,qfe (?) which is name for Quad
interfaces ?
Becuase SUNW,qfe is "quad happy meal", whereas SUNW,qec is "quad
10baseT ethernet" and a totally different card/chipset.
Later,
David S. Miller
davem@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kernel 2.2.x and eth cards (Sun hme and Sun quad)
1999-09-11 20:56 kernel 2.2.x and eth cards (Sun hme and Sun quad) Tomasz Kłoczko
1999-09-11 23:41 ` David S. Miller
@ 1999-09-12 2:07 ` Tomasz Kłoczko
1999-09-12 2:13 ` Tomasz Kłoczko
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Tomasz Kłoczko @ 1999-09-12 2:07 UTC (permalink / raw)
To: ultralinux
On Sat, 11 Sep 1999, David S. Miller wrote:
> Date: Sat, 11 Sep 1999 22:56:21 +0200 (CEST)
> From: =?ISO-8859-2?Q?Tomasz_K³oczko?= <kloczek@rudy.mif.pg.gda.pl>
>
> Hmm .. seems that Sun Quad has name "qfe" .. not "qe" and second .. this
> not one device "qec" and four chann "qe" devices but only four "qfe" on
> the same level.
>
> That's right, you don't have a card driven by the sunqe.c driver.
> You have a quad-fast-ethernet, which is composed of 4 happy meal fast
> ethernet interfaces. Thus the sunhme.o driver is what would drive
> them.
>
> There were a few bugs in the sunhme driver for SBUS qfe cards, like
> yours, they are now fixed as of 2.2.13pre6
Hmm .. but need rather 2.2.x. Is it possible to backport this ?
Quad can wait but hme is neccessary for me ..
> Looking on above prink outptu I see that my hme have "SUNW,hme" name and
> seems that (partialy) above loop is correctly .. but why (the hell) on
> initializing hme is probed qfe/SUNW,qfe (?) which is name for Quad
> interfaces ?
>
> Becuase SUNW,qfe is "quad happy meal", whereas SUNW,qec is "quad
> 10baseT ethernet" and a totally different card/chipset.
(sht* &#@!) I'm determined to try write this .. I need this card under
Linux (now .. max in month) in other way I must back to Sol (sht*^2) :->
I understand that basing on handling happy meal fast ethernet is possible
to write driver for fast quad ? and/or this modyfications can be
integrated into sunhme.c ? Is avalaible any other doc for this card which
can help write this and/or what I must know additionaly before starting
this job ?
(thanks)
kloczek
--
-----------------------------------------------------------
*Ludzie nie maj± problemów, tylko sobie sami je stwarzaj±*
-----------------------------------------------------------
Tomasz K³oczko, sys adm @zie.pg.gda.pl|*e-mail: kloczek@rudy.mif.pg.gda.pl*
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kernel 2.2.x and eth cards (Sun hme and Sun quad)
1999-09-11 20:56 kernel 2.2.x and eth cards (Sun hme and Sun quad) Tomasz Kłoczko
1999-09-11 23:41 ` David S. Miller
1999-09-12 2:07 ` Tomasz Kłoczko
@ 1999-09-12 2:13 ` Tomasz Kłoczko
1999-09-12 2:18 ` David S. Miller
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Tomasz Kłoczko @ 1999-09-12 2:13 UTC (permalink / raw)
To: ultralinux
On Sun, 12 Sep 1999, Tomasz K³oczko wrote:
[..]
> > There were a few bugs in the sunhme driver for SBUS qfe cards, like
> > yours, they are now fixed as of 2.2.13pre6
> ^^^^^^^^^^
> Hmm .. but need rather 2.2.x. Is it possible to backport this ?
^^^^^
> Quad can wait but hme is neccessary for me ..
Sorry mistake.
kloczek
--
-----------------------------------------------------------
*Ludzie nie maj± problemów, tylko sobie sami je stwarzaj±*
-----------------------------------------------------------
Tomasz K³oczko, sys adm @zie.pg.gda.pl|*e-mail: kloczek@rudy.mif.pg.gda.pl*
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kernel 2.2.x and eth cards (Sun hme and Sun quad)
1999-09-11 20:56 kernel 2.2.x and eth cards (Sun hme and Sun quad) Tomasz Kłoczko
` (2 preceding siblings ...)
1999-09-12 2:13 ` Tomasz Kłoczko
@ 1999-09-12 2:18 ` David S. Miller
1999-09-12 2:26 ` Tomasz Kłoczko
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: David S. Miller @ 1999-09-12 2:18 UTC (permalink / raw)
To: ultralinux
Date: Sun, 12 Sep 1999 04:07:20 +0200 (CEST)
From: =?ISO-8859-2?Q?Tomasz_K³oczko?= <kloczek@rudy.mif.pg.gda.pl>
On Sat, 11 Sep 1999, David S. Miller wrote:
> There were a few bugs in the sunhme driver for SBUS qfe cards, like
> yours, they are now fixed as of 2.2.13pre6
Hmm .. but need rather 2.2.x. Is it possible to backport this ?
Quad can wait but hme is neccessary for me ..
Skleroza, it _is_ 2.2.x, 2.2.13pre6 = 2.2.x latest version.
Later,
David S. Miller
davem@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kernel 2.2.x and eth cards (Sun hme and Sun quad)
1999-09-11 20:56 kernel 2.2.x and eth cards (Sun hme and Sun quad) Tomasz Kłoczko
` (3 preceding siblings ...)
1999-09-12 2:18 ` David S. Miller
@ 1999-09-12 2:26 ` Tomasz Kłoczko
1999-09-12 5:52 ` sleep
1999-09-12 10:05 ` David S. Miller
6 siblings, 0 replies; 8+ messages in thread
From: Tomasz Kłoczko @ 1999-09-12 2:26 UTC (permalink / raw)
To: ultralinux
On Sat, 11 Sep 1999, David S. Miller wrote:
[..]
> Skleroza, it _is_ 2.2.x, 2.2.13pre6 = 2.2.x latest version.
Not skleroza .. this is "¶lepota" 8-)
kloczek
--
-----------------------------------------------------------
*Ludzie nie maj± problemów, tylko sobie sami je stwarzaj±*
-----------------------------------------------------------
Tomasz K³oczko, sys adm @zie.pg.gda.pl|*e-mail: kloczek@rudy.mif.pg.gda.pl*
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kernel 2.2.x and eth cards (Sun hme and Sun quad)
1999-09-11 20:56 kernel 2.2.x and eth cards (Sun hme and Sun quad) Tomasz Kłoczko
` (4 preceding siblings ...)
1999-09-12 2:26 ` Tomasz Kłoczko
@ 1999-09-12 5:52 ` sleep
1999-09-12 10:05 ` David S. Miller
6 siblings, 0 replies; 8+ messages in thread
From: sleep @ 1999-09-12 5:52 UTC (permalink / raw)
To: ultralinux
CAN YOU PLEASE GET ME OFF THIS FUCKN LIST, IVE SENT MANY EMAILS OF
CANCELATION TO THIS LIST AND HAVENT GOTTEN ANYWHERE, I HATE THE
UNSTABILITY OF SPARC LINUX AND LINUX AS A WHOLE IS A FUCKN JOKE, NO
THANKS TO REDHAT.
GET ME THE FUCK OFF THIS LIST DAMNIT
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kernel 2.2.x and eth cards (Sun hme and Sun quad)
1999-09-11 20:56 kernel 2.2.x and eth cards (Sun hme and Sun quad) Tomasz Kłoczko
` (5 preceding siblings ...)
1999-09-12 5:52 ` sleep
@ 1999-09-12 10:05 ` David S. Miller
6 siblings, 0 replies; 8+ messages in thread
From: David S. Miller @ 1999-09-12 10:05 UTC (permalink / raw)
To: ultralinux
I HAVE UNSUBCRIBED YOU DAMNIT.
Later,
David S. Miller
davem@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~1999-09-12 10:05 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-11 20:56 kernel 2.2.x and eth cards (Sun hme and Sun quad) Tomasz Kłoczko
1999-09-11 23:41 ` David S. Miller
1999-09-12 2:07 ` Tomasz Kłoczko
1999-09-12 2:13 ` Tomasz Kłoczko
1999-09-12 2:18 ` David S. Miller
1999-09-12 2:26 ` Tomasz Kłoczko
1999-09-12 5:52 ` sleep
1999-09-12 10:05 ` David S. Miller
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.