Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Nov 2008 00:52:26 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r185238 - in stable/7/sys: . amd64/conf boot/forth conf dev/ale i386/conf modules modules/ale modules/cxgb
Message-ID:  <200811240052.mAO0qQ3H069096@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Mon Nov 24 00:52:26 2008
New Revision: 185238
URL: http://svn.freebsd.org/changeset/base/185238

Log:
  MFC r184870:
    Add ale(4), a driver for Atheros AR8121/AR8113/AR8114 PCIe ethernet
    controller. The controller is also known as L1E(AR8121) and
    L2E(AR8113/AR8114). Unlike its predecessor Attansic L1,
    AR8121/AR8113/AR8114 uses completely different Rx logic such that
    it requires separate driver. Datasheet for AR81xx is not available
    to open source driver writers but it shares large part of Tx and
    PHY logic of L1. I still don't understand some part of register
    meaning and some MAC statistics counters but the driver seems to
    have no critical issues for performance and stability.
  
    The AR81xx requires copy operation to pass received frames to upper
    stack such that ale(4) consumes a lot of CPU cycles than that of
    other controller. A couple of silicon bugs also adds more CPU
    cycles to address the known hardware bug. However, if you have fast
    CPU you can still saturate the link.
    Currently ale(4) supports the following hardware features.
      - MSI.
      - TCP Segmentation offload.
      - Hardware VLAN tag insertion/stripping with checksum offload.
      - Tx TCP/UDP checksum offload and Rx IP/TCP/UDP checksum offload.
      - Tx/Rx interrupt moderation.
      - Hardware statistics counters.
      - Jumbo frame.
      - WOL.
  
    AR81xx PCIe ethernet controllers are mainly found on ASUS EeePC or
    P5Q series of ASUS motherboards. Special thanks to Jeremy Chadwick
    who sent the hardware to me. Without his donation writing a driver
    for AR81xx would never have been possible. Big thanks to all people
    who reported feedback or tested patches.
  
    HW donated by:	koitsu
    Tested by:	bsam, Joao Barros <joao.barros <> gmail DOT com >
  		Jan Henrik Sylvester <me <> janh DOT de >
  		Ivan Brawley < ivan <> brawley DOT id DOT au >,
  		CURRENT ML
    Approved by:	re (kib)
  
    Note, GENERIC kernel does NOT include ale(4) but users can still
    kldload it. It was requested by re.

Added:
  stable/7/sys/dev/ale/
     - copied from r184870, head/sys/dev/ale/
  stable/7/sys/modules/ale/
     - copied from r184870, head/sys/modules/ale/
Modified:
  stable/7/sys/   (props changed)
  stable/7/sys/amd64/conf/GENERIC
  stable/7/sys/boot/forth/loader.conf
  stable/7/sys/conf/NOTES
  stable/7/sys/conf/files
  stable/7/sys/i386/conf/GENERIC
  stable/7/sys/modules/Makefile
  stable/7/sys/modules/cxgb/   (props changed)

Modified: stable/7/sys/amd64/conf/GENERIC
==============================================================================
--- stable/7/sys/amd64/conf/GENERIC	Sun Nov 23 23:26:12 2008	(r185237)
+++ stable/7/sys/amd64/conf/GENERIC	Mon Nov 24 00:52:26 2008	(r185238)
@@ -194,6 +194,7 @@ device		vx		# 3Com 3c590, 3c595 (``Vorte
 # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
 device		miibus		# MII bus support
 device		age		# Attansic/Atheros L1 Gigabit Ethernet
+#device		ale		# Atheros AR8121/AR8113/AR8114 Ethernet
 device		bce		# Broadcom BCM5706/BCM5708 Gigabit Ethernet
 device		bfe		# Broadcom BCM440x 10/100 Ethernet
 device		bge		# Broadcom BCM570xx Gigabit Ethernet

Modified: stable/7/sys/boot/forth/loader.conf
==============================================================================
--- stable/7/sys/boot/forth/loader.conf	Sun Nov 23 23:26:12 2008	(r185237)
+++ stable/7/sys/boot/forth/loader.conf	Mon Nov 24 00:52:26 2008	(r185238)
@@ -208,6 +208,7 @@ pf_load="NO"			# packet filter
 
 miibus_load="NO"		# miibus support, needed for some drivers
 if_age_load="NO"		# Attansic/Atheros L1 Gigabit Ethernet
+if_ale_load="NO"		# Atheros AR8121/AR8113/AR8114 Ethernet
 if_an_load="NO"			# Aironet 4500/4800 802.11 wireless NICs
 if_ar_load="NO"			# Digi SYNC/570i
 if_arl_load="NO"		# Aironet Arlan 655 wireless network adapter

Modified: stable/7/sys/conf/NOTES
==============================================================================
--- stable/7/sys/conf/NOTES	Sun Nov 23 23:26:12 2008	(r185237)
+++ stable/7/sys/conf/NOTES	Mon Nov 24 00:52:26 2008	(r185238)
@@ -1724,6 +1724,7 @@ device		miibus
 #       Harris (Intersil) Chipset with PCnetMobile firmware by AMD.
 # age:  Support for gigabit ethernet adapters based on the Attansic/Atheros
 #       L1 PCI express gigabit ethernet controllers.
+# ale:  Support for Atheros AR8121/AR8113/AR8114 PCIe ethernet controllers.
 # bce:	Broadcom NetXtreme II (BCM5706/BCM5708) PCI/PCIe Gigabit Ethernet
 #       adapters.
 # bfe:	Broadcom BCM4401 Ethernet adapter.
@@ -1868,6 +1869,7 @@ device		xe
 # PCI Ethernet NICs that use the common MII bus controller code.
 device		ae		# Attansic/Atheros L2 FastEthernet
 device		age		# Attansic/Atheros L1 Gigabit Ethernet
+device		ale		# Atheros AR8121/AR8113/AR8114 Ethernet
 device		bce		# Broadcom BCM5706/BCM5708 Gigabit Ethernet
 device		bfe		# Broadcom BCM440x 10/100 Ethernet
 device		bge		# Broadcom BCM570xx Gigabit Ethernet

Modified: stable/7/sys/conf/files
==============================================================================
--- stable/7/sys/conf/files	Sun Nov 23 23:26:12 2008	(r185237)
+++ stable/7/sys/conf/files	Mon Nov 24 00:52:26 2008	(r185238)
@@ -446,6 +446,7 @@ dev/aic7xxx/aic7xxx.c		optional ahc
 dev/aic7xxx/aic7xxx_93cx6.c	optional ahc
 dev/aic7xxx/aic7xxx_osm.c	optional ahc
 dev/aic7xxx/aic7xxx_pci.c	optional ahc pci
+dev/ale/if_ale.c		optional ale pci
 dev/amd/amd.c			optional amd
 dev/amr/amr.c			optional amr
 dev/amr/amr_cam.c		optional amr

Modified: stable/7/sys/i386/conf/GENERIC
==============================================================================
--- stable/7/sys/i386/conf/GENERIC	Sun Nov 23 23:26:12 2008	(r185237)
+++ stable/7/sys/i386/conf/GENERIC	Mon Nov 24 00:52:26 2008	(r185238)
@@ -204,6 +204,7 @@ device		vx		# 3Com 3c590, 3c595 (``Vorte
 # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
 device		miibus		# MII bus support
 device		age		# Attansic/Atheros L1 Gigabit Ethernet
+#device		ale		# Atheros AR8121/AR8113/AR8114 Ethernet
 device		bce		# Broadcom BCM5706/BCM5708 Gigabit Ethernet
 device		bfe		# Broadcom BCM440x 10/100 Ethernet
 device		bge		# Broadcom BCM570xx Gigabit Ethernet

Modified: stable/7/sys/modules/Makefile
==============================================================================
--- stable/7/sys/modules/Makefile	Sun Nov 23 23:26:12 2008	(r185237)
+++ stable/7/sys/modules/Makefile	Mon Nov 24 00:52:26 2008	(r185238)
@@ -17,6 +17,7 @@ SUBDIR=	${_3dfx} \
 	aic7xxx \
 	aio \
 	${_amd} \
+	ale \
 	amr \
 	${_an} \
 	${_aout} \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811240052.mAO0qQ3H069096>