Skip to contentSkip to conversation

kernel 2.2.x and eth cards (Sun hme and Sun quad)

DISCUSSION Tomasz Kłoczko 3 participants 8 messages Sep 11, 1999 – Sep 12, 1999

lore
Share & tools
lore
#0 lore raw

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

Signature · 4 lines
-----------------------------------------------------------
*Ludzie nie maj± problemów, tylko sobie sami je stwarzaj±*
-----------------------------------------------------------
Tomasz K³oczko, sys adm @zie.pg.gda.pl|*e-mail: [email protected]*
#1 lore raw

Date: Sat, 11 Sep 1999 22:56:21 +0200 (CEST)
From: =?ISO-8859-2?Q?Tomasz_K³oczko?= <[email protected]>

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
[email protected]

#2 lore raw
In reply to Tomasz Kłoczko
Quoted 7 lines · David S. Miller

Date: Sat, 11 Sep 1999 22:56:21 +0200 (CEST)
From: =?ISO-8859-2?Q?Tomasz_K³oczko?= <[email protected]>

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.

Quoted 7 lines

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 ..

Quoted 7 lines

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

Signature · 4 lines
-----------------------------------------------------------
*Ludzie nie maj± problemów, tylko sobie sami je stwarzaj±*
-----------------------------------------------------------
Tomasz K³oczko, sys adm @zie.pg.gda.pl|*e-mail: [email protected]*
#3 lore raw
In reply to Tomasz Kłoczko

On Sun, 12 Sep 1999, Tomasz K³oczko wrote:
[..]

Quoted 4 lines
Quoted 2 lines

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 ?

                         ^^^^^
Quoted 1 line

Quad can wait but hme is neccessary for me ..

Sorry mistake.

kloczek

Signature · 4 lines
-----------------------------------------------------------
*Ludzie nie maj± problemów, tylko sobie sami je stwarzaj±*
-----------------------------------------------------------
Tomasz K³oczko, sys adm @zie.pg.gda.pl|*e-mail: [email protected]*
#4 lore raw
In reply to Tomasz Kłoczko

Date: Sun, 12 Sep 1999 04:07:20 +0200 (CEST)
From: =?ISO-8859-2?Q?Tomasz_K³oczko?= <[email protected]>

Quoted 2 lines · David S. Miller

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
[email protected]

#5 lore raw
In reply to Tomasz Kłoczko

On Sat, 11 Sep 1999, David S. Miller wrote:
[..]

Quoted 1 line

Skleroza, it _is_ 2.2.x, 2.2.13pre6 = 2.2.x latest version.

Not skleroza .. this is "¶lepota" 8-)

kloczek

Signature · 4 lines
-----------------------------------------------------------
*Ludzie nie maj± problemów, tylko sobie sami je stwarzaj±*
-----------------------------------------------------------
Tomasz K³oczko, sys adm @zie.pg.gda.pl|*e-mail: [email protected]*
#6 lore raw
In reply to Tomasz Kłoczko

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