Skip to contentSkip to conversation

NatSemi DP83820 driver problem

DISCUSSION Craig Spurgeon 2 participants 2 messages Jul 24, 2001 – Aug 5, 2001 Network drivers

lore
Share & tools
lore
#0 lore raw

We have an Asante GigaNIX 1000T Gigabit Ethernet adapter that we are trying to get to work under kernel 2.4.6ac5.

National supplied their driver for the chip to Asante, and Asante sent it to us. It would not compile as shipped, due to a reference to skb->dataref.

I contacted Asante tech support and National tech support, no response from either.

So I changed the skb->dataref to the counter field at the end of skb_shared_info and it compiled.

I installed it and the adapter worked, but it came up at 100Mbit and half-duplex. The default according to the source code is 1000Mbit full-duplex.

No parameters were supplied on the module load line.

Does anyone have any experience getting this driver to come up successfully under 2.4.x?

Also, I emailed Donald Becker at Scyld, he told me to use the ns820.c file in the scyld.com ftp site which was in the test directory.

He said that version should work under 2.4, and he was working on transceiver issues still.

That driver was missing the new task code used for notifying higher- level layers of the ability of the card to send data, so it won't work.

I have emailed him asking for that change, however, we are leaning in the direction of wanting to use the driver from National.

If anyone has gotten the Scyld driver to work under 2.4.x, we'd really appreciate the info.

TIA

-Craig Spurgeon

Signature · 5 lines
-----------------------------------------------------------------------------
Craig Spurgeon, Linux Architect        |  Microsoft Innovations List
ApplianceWare, Inc.                    |           (empty)
510-580-5148                           |
-----------------------------------------------------------------------------
#1 lore raw
Quoted 5 lines · Craig Spurgeon

We have an Asante GigaNIX 1000T Gigabit Ethernet adapter that we are trying to get to work under kernel 2.4.6ac5.

If anyone has gotten the Scyld driver to work under 2.4.x, we'd really appreciate the info.

Well, I ended up writing a driver for another card based on the DP83820. Here's my driver -- it has a few known problems in that it isn't completely up to snuff wrt the pci dma api, but it works well under x86, including surviving stress testing with rx and tx buffer under/overruns. If you could give it a whirl and report any problems to me, I'd appreciate it.

-ben

drivers/net/Config.in +1 -0
diff -x .* -urN v2.4.6-pre8/drivers/net/Config.in pgc-2.4.6-pre8/drivers/net/Config.in
@@ -212,6 +212,7 @@
    bool '  Omit support for old Tigon I based AceNICs' CONFIG_ACENIC_OMIT_TIGON_I
 fi
 dep_tristate 'MyriCOM Gigabit Ethernet support' CONFIG_MYRI_SBUS $CONFIG_SBUS
+dep_tristate 'National Semiconductor DP83820 support' CONFIG_NS83820 $CONFIG_PCI
 dep_tristate 'Broadcom BCM570 support ' CONFIG_NET_BROADCOM $CONFIG_PCI m
 dep_tristate 'Packet Engines Hamachi GNIC-II support' CONFIG_HAMACHI $CONFIG_PCI
 dep_tristate 'Packet Engines Yellowfin Gigabit-NIC support (EXPERIMENTAL)' CONFIG_YELLOWFIN $CONFIG_PCI $CONFIG_EXPERIMENTAL
drivers/net/Makefile +1 -0
diff -x .* -urN v2.4.6-pre8/drivers/net/Makefile pgc-2.4.6-pre8/drivers/net/Makefile
@@ -74,6 +74,7 @@
 obj-$(CONFIG_DM9102) += dmfe.o
 obj-$(CONFIG_YELLOWFIN) += yellowfin.o
 obj-$(CONFIG_ACENIC) += acenic.o
 obj-$(CONFIG_VETH) += veth.o
+obj-$(CONFIG_NS83820) += ns83820.o
 obj-$(CONFIG_NATSEMI) += natsemi.o
 obj-$(CONFIG_STNIC) += stnic.o 8390.o
drivers/net/ns83820.c +1409 -0

1,409 lines not on this page · raw message

include/linux/eeprom.h +135 -0

135 lines not on this page · raw message