Re: Netgear FA311

2000-12-25 Thread Alex Buell

On Mon, 25 Dec 2000, Manfred wrote:

> Could you try this setup?
> 
>  /* Configure the PCI bus bursts and FIFO thresholds. */
>  /* Configure for standard, in-spec Ethernet. */
>  np->tx_config = (1<<28) +   /* Automatic transmit padding */
>  (1<<23) +   /* Excessive collision retry */
>  (6<<20) + /* Max DMA burst = 128 byte */
>  (8<<8) +/* fill threshold = 256 byte */
>  8;  /* drain threshold = 256 byte */
>  writel(np->tx_config, ioaddr + TxConfig);
> 

Hmm, that little change worked a lot better. However thoughput is down to
700kb/s! Transferring files from the other machine to this machine is much
faster - 868kb/s.

In the logs, I only got *one* message from the natsemi driver (and this
happened when sending files from this machine to the other machine. No
problems receiving from the other machine.

Dec 25 17:28:12 tahallah kernel: eth0: Something Wicked happened! 0583.

But I just realised that the other machine I'm using has an 10 megabit
ethernet card (on the hub that one is shown on 10, my machine is shown as
100). I think this explains the throughput problem. When I get another 4
way power socket, I'll put my other machine (which has a 100 megabit card
in it) on the network and see if that makes a difference.

Cheers,
Alex
-- 
Huffapuff!

http://www.tahallah.clara.co.uk

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Netgear FA311

2000-12-25 Thread Manfred

Alex wrote:
> In the logs I'm seeing this: 
> 
> Dec 25 15:25:18 tahallah last message repeated 2 times 
> Dec 25 15:25:19 tahallah kernel: eth0: Something Wicked happened! 0783. 
> Dec 25 15:25:19 tahallah kernel: eth0: Something Wicked happened! 0780. 

783 means:
Tx Underrun
Tx Idle
Tx Packet Error
Tx Descriptor
Rx Packet Error
Rx Descriptor
Rx OK.

Hmm. I download the Documentation from National
(http://www.national.com/pf/DP/DP83815.html),
and the the tx burst size/fill threshold/drain threshold combination is
invalid:

 from natsemi.c:
 /* Configure the PCI bus bursts and FIFO thresholds. */
 /* Configure for standard, in-spec Ethernet. */
 np->tx_config = (1<<28) +   /* Automatic transmit padding */
 (1<<23) +   /* Excessive collision retry */
 (0x0<<20) + /* Max DMA burst = 512 byte */
 (8<<8) +/* fill threshold = 256 byte */
 2;  /* drain threshold = 64 byte */
 writel(np->tx_config, ioaddr + TxConfig);


But:
 page 51
The MXDMA MUST NOT be greater than the Tx Fill Threshold 
>>

Could you try this setup?

 /* Configure the PCI bus bursts and FIFO thresholds. */
 /* Configure for standard, in-spec Ethernet. */
 np->tx_config = (1<<28) +   /* Automatic transmit padding */
 (1<<23) +   /* Excessive collision retry */
 (6<<20) + /* Max DMA burst = 128 byte */
 (8<<8) +/* fill threshold = 256 byte */
 8;  /* drain threshold = 256 byte */
 writel(np->tx_config, ioaddr + TxConfig);


--
  Manfred
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Netgear FA311

2000-12-25 Thread Manfred

Alex wrote:
 In the logs I'm seeing this: 
 
 Dec 25 15:25:18 tahallah last message repeated 2 times 
 Dec 25 15:25:19 tahallah kernel: eth0: Something Wicked happened! 0783. 
 Dec 25 15:25:19 tahallah kernel: eth0: Something Wicked happened! 0780. 

783 means:
Tx Underrun
Tx Idle
Tx Packet Error
Tx Descriptor
Rx Packet Error
Rx Descriptor
Rx OK.

Hmm. I download the Documentation from National
(http://www.national.com/pf/DP/DP83815.html),
and the the tx burst size/fill threshold/drain threshold combination is
invalid:

 from natsemi.c:
 /* Configure the PCI bus bursts and FIFO thresholds. */
 /* Configure for standard, in-spec Ethernet. */
 np-tx_config = (128) +   /* Automatic transmit padding */
 (123) +   /* Excessive collision retry */
 (0x020) + /* Max DMA burst = 512 byte */
 (88) +/* fill threshold = 256 byte */
 2;  /* drain threshold = 64 byte */
 writel(np-tx_config, ioaddr + TxConfig);


But:
 page 51
The MXDMA MUST NOT be greater than the Tx Fill Threshold 


Could you try this setup?

 /* Configure the PCI bus bursts and FIFO thresholds. */
 /* Configure for standard, in-spec Ethernet. */
 np-tx_config = (128) +   /* Automatic transmit padding */
 (123) +   /* Excessive collision retry */
 (620) + /* Max DMA burst = 128 byte */
 (88) +/* fill threshold = 256 byte */
 8;  /* drain threshold = 256 byte */
 writel(np-tx_config, ioaddr + TxConfig);


--
  Manfred
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Netgear FA311

2000-12-25 Thread Alex Buell

On Mon, 25 Dec 2000, Manfred wrote:

 Could you try this setup?
 
  /* Configure the PCI bus bursts and FIFO thresholds. */
  /* Configure for standard, in-spec Ethernet. */
  np-tx_config = (128) +   /* Automatic transmit padding */
  (123) +   /* Excessive collision retry */
  (620) + /* Max DMA burst = 128 byte */
  (88) +/* fill threshold = 256 byte */
  8;  /* drain threshold = 256 byte */
  writel(np-tx_config, ioaddr + TxConfig);
 

Hmm, that little change worked a lot better. However thoughput is down to
700kb/s! Transferring files from the other machine to this machine is much
faster - 868kb/s.

In the logs, I only got *one* message from the natsemi driver (and this
happened when sending files from this machine to the other machine. No
problems receiving from the other machine.

Dec 25 17:28:12 tahallah kernel: eth0: Something Wicked happened! 0583.

But I just realised that the other machine I'm using has an 10 megabit
ethernet card (on the hub that one is shown on 10, my machine is shown as
100). I think this explains the throughput problem. When I get another 4
way power socket, I'll put my other machine (which has a 100 megabit card
in it) on the network and see if that makes a difference.

Cheers,
Alex
-- 
Huffapuff!

http://www.tahallah.clara.co.uk

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Netgear FA311 (follow-up)

2000-12-23 Thread Alex Buell

On Sat, 23 Dec 2000, Alex Buell wrote:

> I recently bought a Netgear FA311 which does 10/100Mb/ethernet for my
> first home network. I've looked and found driver sources which
> apparently works only for 2.0.36. Ulp! Before I start cracking my
> knuckles and working my deep magic to get it to work on 2.2.x, is
> there any drivers already sorted for this card on the 2.2.x series?

Thanks to everyone who replied. I've now got Donald Becker's natsemi
drivers from his site and have successfully compiled it. Whether it'll
work is another story as I've got to crack this box and put in the card..

Won't be long before I'll have my 100 megabits home network up and
running, I hope.  Not long before I'll frag my kid brother
in Quake too!

Cheers,
Alex
-- 
I stand in my undergarments and hurl inventive in your general direction.

http://www.tahallah.clara.co.uk

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Netgear FA311

2000-12-23 Thread tc lewis



On Sat, 23 Dec 2000, Alex Buell wrote:

> On Sat, 23 Dec 2000, Marcus Meissner wrote:
> 
> > > Is this where you got the sources?
> > > http://www.scyld.com/network/natsemi.html (Thanks Steve)
> >
> > The linux driver is actually on the accompanying floppy disk. Without license
> > statement unfortunately.
> 
> I got a floppy disk with the netgear fa311, but the only linux sources on
> it was for 2.0.36!

yeah i believe that natsemi driver is supposed to work with that 311 card,
although i have heard of issues with that now and then.  to be honest i
haven't followed very closely, as i don't use those cards/chips.  that
scyld.com page should have all the info you need, as well as info on an
accompianing mailing list for further help.

if whatever distro/kernel you're using already has a compiled natsemi
driver you can just try it out by messing with /etc/conf.modules or
/etc/modules.conf or whatever proper files your distribution uses.

-tcl.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Netgear FA311

2000-12-23 Thread Alex Buell

On Sat, 23 Dec 2000, Marcus Meissner wrote:

> > Is this where you got the sources?
> > http://www.scyld.com/network/natsemi.html (Thanks Steve)
>
> The linux driver is actually on the accompanying floppy disk. Without license
> statement unfortunately.

I got a floppy disk with the netgear fa311, but the only linux sources on
it was for 2.0.36!

Cheers,
Alex
-- 
I stand in my undergarments and hurl inventive in your general direction.

http://www.tahallah.clara.co.uk

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Netgear FA311

2000-12-23 Thread Marcus Meissner

In article <[EMAIL PROTECTED]> you wrote:
> Is this where you got the sources?  
> http://www.scyld.com/network/natsemi.html (Thanks Steve)

The linux driver is actually on the accompanying floppy disk. Without license
statement unfortunately.

Ciao, Marcus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Netgear FA311

2000-12-23 Thread Mohammad A. Haque

Is this where you got the sources?  
http://www.scyld.com/network/natsemi.html (Thanks Steve)

Alex Buell wrote:
> 
> I recently bought a Netgear FA311 which does 10/100Mb/ethernet for my
> first home network. I've looked and found driver sources which apparently

-- 

=
Mohammad A. Haque  http://www.haque.net/ 
   [EMAIL PROTECTED]

  "Alcohol and calculus don't mix. Project Lead
   Don't drink and derive." --Unknown  http://wm.themes.org/
   [EMAIL PROTECTED]
=
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Netgear FA311

2000-12-23 Thread Mohammad A. Haque

I don't know how its different from the FA310TX that I have. The 310TX
uses the tulip drivers so you may want to give that a shot.

Maybe you can get us a name/number off the IC on the card?

Alex Buell wrote:
> 
> I recently bought a Netgear FA311 which does 10/100Mb/ethernet for my
> first home network. I've looked and found driver sources which apparently
> works only for 2.0.36. Ulp! Before I start cracking my knuckles and
> working my deep magic to get it to work on 2.2.x, is there any drivers
> already sorted for this card on the 2.2.x series?
> 
> If not, where can I find documentation on converting 2.0.x drivers to
> 2.2.x?

-- 

=
Mohammad A. Haque  http://www.haque.net/ 
   [EMAIL PROTECTED]

  "Alcohol and calculus don't mix. Project Lead
   Don't drink and derive." --Unknown  http://wm.themes.org/
   [EMAIL PROTECTED]
=
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Netgear FA311

2000-12-23 Thread Mohammad A. Haque

I don't know how its different from the FA310TX that I have. The 310TX
uses the tulip drivers so you may want to give that a shot.

Maybe you can get us a name/number off the IC on the card?

Alex Buell wrote:
 
 I recently bought a Netgear FA311 which does 10/100Mb/ethernet for my
 first home network. I've looked and found driver sources which apparently
 works only for 2.0.36. Ulp! Before I start cracking my knuckles and
 working my deep magic to get it to work on 2.2.x, is there any drivers
 already sorted for this card on the 2.2.x series?
 
 If not, where can I find documentation on converting 2.0.x drivers to
 2.2.x?

-- 

=
Mohammad A. Haque  http://www.haque.net/ 
   [EMAIL PROTECTED]

  "Alcohol and calculus don't mix. Project Lead
   Don't drink and derive." --Unknown  http://wm.themes.org/
   [EMAIL PROTECTED]
=
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Netgear FA311

2000-12-23 Thread Mohammad A. Haque

Is this where you got the sources?  
http://www.scyld.com/network/natsemi.html (Thanks Steve)

Alex Buell wrote:
 
 I recently bought a Netgear FA311 which does 10/100Mb/ethernet for my
 first home network. I've looked and found driver sources which apparently

-- 

=
Mohammad A. Haque  http://www.haque.net/ 
   [EMAIL PROTECTED]

  "Alcohol and calculus don't mix. Project Lead
   Don't drink and derive." --Unknown  http://wm.themes.org/
   [EMAIL PROTECTED]
=
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Netgear FA311

2000-12-23 Thread Marcus Meissner

In article [EMAIL PROTECTED] you wrote:
 Is this where you got the sources?  
 http://www.scyld.com/network/natsemi.html (Thanks Steve)

The linux driver is actually on the accompanying floppy disk. Without license
statement unfortunately.

Ciao, Marcus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Netgear FA311

2000-12-23 Thread tc lewis



On Sat, 23 Dec 2000, Alex Buell wrote:

 On Sat, 23 Dec 2000, Marcus Meissner wrote:
 
   Is this where you got the sources?
   http://www.scyld.com/network/natsemi.html (Thanks Steve)
 
  The linux driver is actually on the accompanying floppy disk. Without license
  statement unfortunately.
 
 I got a floppy disk with the netgear fa311, but the only linux sources on
 it was for 2.0.36!

yeah i believe that natsemi driver is supposed to work with that 311 card,
although i have heard of issues with that now and then.  to be honest i
haven't followed very closely, as i don't use those cards/chips.  that
scyld.com page should have all the info you need, as well as info on an
accompianing mailing list for further help.

if whatever distro/kernel you're using already has a compiled natsemi
driver you can just try it out by messing with /etc/conf.modules or
/etc/modules.conf or whatever proper files your distribution uses.

-tcl.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Netgear FA311 (follow-up)

2000-12-23 Thread Alex Buell

On Sat, 23 Dec 2000, Alex Buell wrote:

 I recently bought a Netgear FA311 which does 10/100Mb/ethernet for my
 first home network. I've looked and found driver sources which
 apparently works only for 2.0.36. Ulp! Before I start cracking my
 knuckles and working my deep magic to get it to work on 2.2.x, is
 there any drivers already sorted for this card on the 2.2.x series?

Thanks to everyone who replied. I've now got Donald Becker's natsemi
drivers from his site and have successfully compiled it. Whether it'll
work is another story as I've got to crack this box and put in the card..

Won't be long before I'll have my 100 megabits home network up and
running, I hope. big evil grin Not long before I'll frag my kid brother
in Quake too!

Cheers,
Alex
-- 
I stand in my undergarments and hurl inventive in your general direction.

http://www.tahallah.clara.co.uk

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/