From owner-freebsd-current@FreeBSD.ORG Sun Jun 1 22:18:52 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DEA21065688 for ; Sun, 1 Jun 2008 22:18:52 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id C72D18FC12 for ; Sun, 1 Jun 2008 22:18:51 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id m51MIp7E017085 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 1 Jun 2008 15:18:51 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <4843204A.4030501@freebsd.org> Date: Sun, 01 Jun 2008 15:18:50 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20071125) MIME-Version: 1.0 To: Norikatsu Shigemura References: <20080602034630.eb07fe5c.nork@FreeBSD.org> In-Reply-To: <20080602034630.eb07fe5c.nork@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC--Metrics: ebb.errno.com; whitelist Cc: freebsd-current@freebsd.org Subject: Re: axe(4) doesn't work (patch to replace obsolete if_watchdog interface) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jun 2008 22:18:52 -0000 Norikatsu Shigemura wrote: > Hi, wpaul. > > I got USB2.0 GbE Ether Adaptor a.k.a. PLANEX GU-1000T, but I > can't use it by axe(4). So I tried to improve axe(4) driver, > but I couldn't improve it:-(. Would you please fix this driver? > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > ehci0: mem 0xb0040000-0xb00403ff irq 23 at device 29.7 on pci0 > ehci0: [GIANT-LOCKED] > ehci0: [ITHREAD] > usb1: EHCI version 1.0 > usb1: companion controller, 2 ports each: usb0 > usb1: on ehci0 > usb1: USB revision 2.0 > uhub1: on usb1 > uhub1: 2 ports with 2 removable, self powered > axe0: on uhub1 > axe0: AX88178, bufsz 4096, boundary 512 > miibus0: on axe0 > ukphy0: PHY 0 on miibus0 > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseSX, 1000baseT, 1000baseT-FDX, auto > axe0: WARNING: using obsoleted if_watchdog interface > axe0: WARNING: using obsoleted IFF_NEEDSGIANT flag > axe0: Ethernet address: 00:90:cc:ef:b9:f6 > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > ISSUE: > 1. after ether cable connected, axe(4) doesn't link up. > 2. axe0 doesn't link up by 'ifconfig axe0 up', too. > 3. so I couldn't communicate other machines. > 4. I didn't know that axe(4) requires GIANT lock:-(. > > HAPPY: > 1. MAC Address is correct. > 2. I could replace obsolete if_watchdog interface. > SEE ALSO: attached patches > > ------------------------------------------------------------------------ [bill doesn't deal with stuff any more so no point involving him] I just tried my Linksys USB1000 (AX88178) on HEAD and it worked as expected. There are a slew of LOR's related to the ifnet multicast code holding a mtx over driver work but other than that I got link after marking the interface up, was able to get a dhcp lease, and upstream tcp netperf was about what I'd expect. Not sure there's any point chasing usb issues right now; alfred is going to bring in new usb code and at that point he'll be dealing with regressions. Sam