Date: Thu, 25 May 2017 22:13:59 +0200 From: "Tom Huerlimann" <office@thuinformatik.ch> To: "'Hans Petter Selasky'" <hps@selasky.org>, <freebsd-net@freebsd.org> Subject: AW: AW: axge0 and AX88179 Message-ID: <00f201d2d593$734c6160$59e52420$@thuinformatik.ch> In-Reply-To: <2248eb55-c402-cdb9-2648-986a0ed9663a@selasky.org> References: <008701d2d585$f1977f90$d4c67eb0$@thuinformatik.ch> <2248eb55-c402-cdb9-2648-986a0ed9663a@selasky.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
From: Hans Petter Selasky [mailto:hps@selasky.org]
On 05/25/17 20:37, Tom Huerlimann wrote:
>> Hi all,
>>
>> I have the problem, that I cannot reach more than 20-40Mbit/s when
>> using the
>> AX88179 chip (1Gbit/s NIC) on a USB 3.0 SuperSpeed Port (same on a
>> 480Mbps High Speed USB v2.0-Port).
>>
>> # usbconfig dump_device_desc
>> (...)
>> ugen0.7: <AX88179 ASIX Elec. Corp.>> at usbus0, cfg=0 md=HOST spd=SUPER
>> (5.0Gbps) pwr=ON (124mA)
>>
>> bLength = 0x0012
>> bDescriptorType = 0x0001
>> bcdUSB = 0x0300
>> bDeviceClass = 0x00ff <Vendor specific>>
>> bDeviceSubClass = 0x00ff
>> bDeviceProtocol = 0x0000
>> bMaxPacketSize0 = 0x0009
>> idVendor = 0x0b95
>> idProduct = 0x1790
>> bcdDevice = 0x0100
>> iManufacturer = 0x0001 <ASIX Elec. Corp.>>
>> iProduct = 0x0002 <AX88179>>
>> iSerialNumber = 0x0003 <00000000000001>>
>> bNumConfigurations = 0x0001
>>
>> plugged into this USB controller:
>>
>> # dmesg | grep -i usb
>> xhci0: <Intel BayTrail USB 3.0 controller>> mem 0xd0800000-0xd080ffff
>> irq 20 at device 20.0 on pci0 usbus0 on xhci0
>> ehci0: <Intel BayTrail USB 2.0 controller>> mem 0xd0815000-0xd08153ff
>> irq 23 at device 29.0 on pci0
>> usbus1: waiting for BIOS to give up control
>> usbus1: timed out waiting for BIOS
>> usbus1: EHCI version 1.0
>> usbus1 on ehci0
>> usbus0: 5.0Gbps Super Speed USB v3.0
>> usbus1: 480Mbps High Speed USB v2.0
>> ugen1.1: <Intel>> at usbus1
>> uhub0: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1>> on
>> usbus1
>> ugen0.1: <0x8086>> at usbus0
>> uhub1: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1>> on
>> usbus0
>> ugen0.2: <Generic>> at usbus0
>> umass0: <Generic USB Storage, class 0/0, rev 2.00/94.51, addr 1>> on
>> usbus0
>> ugen0.3: <vendor 0x05e3>> at usbus0
>> uhub2: <vendor 0x05e3 USB2.0 Hub, class 9/0, rev 2.00/85.36, addr 2>>
>> on
>> usbus0
>> ugen1.2: <vendor 0x8087>> at usbus1
>> uhub3: <vendor 0x8087 product 0x07e6, class 9/0, rev 2.00/0.14, addr
>> 2>> on
>> usbus1
>> ugen0.4: <pcasl>> at usbus0
>> ukbd0: <PCASL Remot Control>> on usbus0
>> uhid0: <PCASL Remot Control>> on usbus0
>> ugen0.5: <vendor 0x05e3>> at usbus0
>> uhub4: <vendor 0x05e3 USB2.0 Hub, class 9/0, rev 2.00/85.36, addr 4>>
>> on
>> usbus0
>> ugen0.6: <vendor 0x0461>> at usbus0
>> ukbd1: <vendor 0x0461 USB Wired Keyboard, class 0/0, rev 2.00/1.50,
>> addr 5>> on usbus0
>> uhid1: <vendor 0x0461 USB Wired Keyboard, class 0/0, rev 2.00/1.50,
>> addr 5>> on usbus0
>> ugen0.7: <ASIX Elec. Corp.>> at usbus0
>> axge0: <NetworkInterface>> on usbus0
>> ue0: <USB Ethernet>> on axge0
>>
>> # dmesg | grep -i axge
>> axge0: <NetworkInterface>> on usbus0
>> miibus2: <MII bus>> on axge0
>> ue0: <USB Ethernet>> on axge0
>> axge0: at uhub1, port 7, addr 6 (disconnected)
>> axge0: <NetworkInterface>> on usbus0
>> miibus2: <MII bus>> on axge0
>> ue0: <USB Ethernet>> on axge0
>> axge0: <NetworkInterface>> on usbus0
>> miibus2: <MII bus>> on axge0
>> ue0: <USB Ethernet>> on axge0
>>
>> I'm using FreeBSD 10.3-RELEASE-p19.
>>
>> Did someone of you ever managed to reach a higher bandwidth with axge
>> driver and AX88179 chipset?
>Yes, you can reach more than 100Mbit/s with USB 3.0.
>What does ifconfig say about this device?
# ifconfig
(...)
ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8000b<RXCSUM,TXCSUM,VLAN_MTU,LINKSTATE>
ether a4:f7:d0:00:19:a0
inet6 fe80::a6f7:d0ff:fe00:19a0%ue0 prefixlen 64 scopeid 0x7
inet 1.2.3.4 netmask 0xfffffff8 broadcast 1.2.3.9
inet 1.2.3.5 netmask 0xfffffff8 broadcast 1.2.3.9
inet 1.2.3.6 netmask 0xfffffff8 broadcast 1.2.3.9
inet 1.2.3.7 netmask 0xfffffff8 broadcast 1.2.3.9
inet 1.2.3.8 netmask 0xfffffff8 broadcast 1.2.3.9
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex,master>)
status: active
The host uses the device to be able to act as www-gateway. As soon the WAN
link
is connected to this AX88179 device the speed drops to 20-40Mbit/s.
If WAN link is connected to internal <RealTek 8168/8111 B/C/CP/D/DP/E/F/G
PCIe Gigabit Ethernet>
then the host/device is reaching the speed limit of 400Mbit/s.
The device uses a direct connection to the WAL link, RJ-45 Kat6 cable.
I observe the same behaviour on FreeBSD 10.1-RELEASE-p25.
The only thing I can find on the web is
https://forum.pfsense.org/index.php?topic=72019.0
I don't have the problem described in the headline: "randomly loses
connection, and reboot is only solution."
My experience is: (Somethimes!) If link is lost, then a reboot of the OS is
required to bring back the functionality of the NIC.
Editing /boot/loader.conf.local and changeing kern.ipc.nmbclusters="0" to
kern.ipc.nmbclusters="32768" does not solve the performance issue.
Does someone have an idea what I did forget to check/verify?
-Tom
[-- Attachment #2 --]
0 *H
010 + 0 *H
00ʠ6yRTU0&+.K0
*H
0}10 UIL10U
StartCom Ltd.1+0)U"Secure Digital Certificate Signing1)0'U StartCom Certification Authority0
151216010005Z
301216010005Z0u10 UIL10U
StartCom Ltd.1)0'U StartCom Certification Authority1#0!UStartCom Class 3 Client CA0"0
*H
0
#psV3zha1lP_if)61uZ$A~m!#5dQTՍ1R3VƨNs:a1EΨ\1:(_lIM_.e> Hpd`Yzt#:O-ޚPƈ;e~L'/C;җ:VE
iN:VtC-.h%Eq<S٬υ!'sZ8c d0`0U0U%0++0U0 02U+0)0'%#!http://crl.startssl.com/sfsca.crl0f+Z0X0$+0http://ocsp.startssl.com00+0$http://aia.startssl.com/certs/ca.crt0U4ZsqcgO- 0U#0N@[i04hCA0?U 80604U 0,0*+http://www.startssl.com/policy0
*H
k{|xD,i} W߳lV ՁBJ\$%1
[=s݉8#9?le ݫBM nCZ '/YB"P&J%B{F$זkfRET{)zM4jٰ7䖷wg-VP×45Ӳ;{18l̅))Fħ )iWmNS`=VLWN0C鉾(Ro9J,SmvKuOSlv[:A{ÔAP
44SnTOfܩӶoiOJ7K eij?*fUS"kTq@U;9O}^D-W#`f+U9
JTbZEkyI$8[`;F{@\?,H>" Se۫Fy{=l=*&^| !-Ok[ƛxy;ϵc4 y>RSޭ:ubIa00`(UVFK*0
*H
0u10 UIL10U
StartCom Ltd.1)0'U StartCom Certification Authority1#0!UStartCom Class 3 Client CA0
160729120650Z
190729120650Z010 UCH10
UZurich10UBülach10U
thuinformatik GmbH10Uthuinformatik GmbH1&0$ *H
thomas@thuinformatik.ch0"0
*H
0
Lhr["g4j0>}gMo=4^4p!p.'HU^4;DU"1N<tK<tS? hBn=n"YB=ƕ #̱3g"b- 9V3_lC4S~|gzTRcFߒ%nLE^%jF!qI1t5JFvجĴPM]xwwq'AQ9{pE,ׄxZ?1{V6pп{A$t|13\V6yEҚ3[}í7΅Fw%Q ɠou2^p1 dRw*fGAuKxGv3p8~!>+9
몝oClz":wVX_n#
nt`cx_cWwuEy`[3aax ٣ 2E >C?>_,+kC)d#jra to5y @0<0U0U%0++0 U0 0UMCQR> ⯑E G30U#04ZsqcgO- 0o+c0a0$+0http://ocsp.startssl.com09+0-http://aia.startssl.com/certs/sca.client3.crt08U10/0-+)'http://crl.startssl.com/sca-client3.crl0U0thomas@thuinformatik.choffice@thuinformatik.chpostmaster@thuinformatik.chsupport@netcult.chthomas@netcult.chpostmaster@netcult.ch0#U0http://www.startssl.com/0UU N0L0
+70<+70-0++https://www.startssl.com/policy0
*H
jqU˱AwtDC4TXӒh2OCdρ%"ZJMR6̓,mnF ڣOA6&"p%'-뗬P1eQ'5IY^eP\X(vٹi{&pPVHJ >BCRYQ>z({İD1x}xuCmNlߏ-
{"7Dw]Ig)k㽇HXi000
*H
0}10 UIL10U
StartCom Ltd.1+0)U"Secure Digital Certificate Signing1)0'U StartCom Certification Authority0
060917194636Z
360917194636Z0}10 UIL10U
StartCom Ltd.1+0)U"Secure Digital Certificate Signing1)0'U StartCom Certification Authority0"0
*H
0
lF|x{3rb6 "$^wC
d̎68#nm<r=3+/AYg}
tyL7z9RYFC҅qub4,4ǖR=3M;JK&/r5w<]&6v\t%x-0-ryF*I
cSb:̵fkt+v>mDsb;ľSV%lQ ʿvmۿ=fVH:KߧXP8u[ClMp[)eݪ]̯1ҍ{n'fHnB?!>{
pclT\%zɢɋ,~^MXn
2n6IHiMi
y"H{ipz7
vOW`g:ԋr"Ɵƶ\R<*s
`z/ۣn&0݉W=+ŷv+*r3] KtRK R0N0U00U0UN@[i04hCA0dU]0[0,*(&http://cert.startcom.org/sfsca-crl.crl0+)'%http://crl.startcom.org/sfsca-crl.crl0]U T0P0L+70;0/+#http://cert.startcom.org/policy.pdf05+)http://cert.startcom.org/intermediate.pdf0+00' Start Commercial (StartCom) Ltd.0Limited Liability, read the section *Legal Limitations* of the StartCom Certification Authority Policy available at http://cert.startcom.org/policy.pdf0 `HB 08 `HB
+)StartCom Free SSL Certification Authority0
*H
lf4Ѕ^}
N8^ߦ%K2;=D [I)f% <6+Kh9f=&9Q{~ZWpi^X
ߌE8
^Wbz)n(DÐ8<CMdE(\s{諱.\dns1:}Q;Mf{<ӚePu/CiyCFrd6%8w~kjDKx,KD4R'
]xS2݀fuٵh(a.8gd./pǖ|eCTݥ9`4ɖp,H{~k";*RKU"4N&",uJ}d6/# ;sIjWxřCcMw-eriG V$yX. ~m >J9+u U77Cb VKel$$4"}?eQ
0j
r^1000u10 UIL10U
StartCom Ltd.1)0'U StartCom Certification Authority1#0!UStartCom Class 3 Client CA`(UVFK*0 + /0 *H
1 *H
0 *H
1
170525201359Z0# *H
1v2:<