NetBSD Problem Report #10155
Received: (qmail 2628 invoked from network); 19 May 2000 00:32:06 -0000
Message-Id: <200005190032.RAA25947@nbwww.isc.org>
Date: Thu, 18 May 2000 17:32:03 -0700 (PDT)
From: waddell@caravan.com
Reply-To: waddell@caravan.com
To: gnats-bugs@gnats.netbsd.org
Subject: aue device hangs machine on ifconfig under NetBSD-current/i386
X-Send-Pr-Version: www-1.0
>Number: 10155
>Category: kern
>Synopsis: aue device hangs machine on ifconfig under NetBSD-current/i386
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri May 19 00:33:00 +0000 2000
>Closed-Date: Fri Dec 14 23:57:35 +0000 2001
>Last-Modified: Fri Dec 14 23:57:35 +0000 2001
>Originator: Harry Waddell
>Release: 1.4Y
>Organization:
Caravan Publishing
>Environment:
NetBSD scimitar 1.4Y NetBSD 1.4Y (LAPTOP) #0: Thu May 18 14:51:17 PDT 2000 waddell@scimitar:/amd/ns2/scratch/netbsd-cvs/src-current/sys/arch/i386/compile/LAPTOP i386
>Description:
The aue usb ethernet autodetects correctly, but when I attempt to ifconfig the
device, the machine hangs. I've tested it on two i386 boxes, both
with uhci controllers. I also saw the problem under some later versions
of 1.4X. Early versions of 1.4X worked just fine.
>How-To-Repeat:
see above. ifconfig aue0 inet a.b.c.d netmask 0xffffff00
>Fix:
>Release-Note:
>Audit-Trail:
From: Michael Lyle <mlyle@recourse.net>
To: gnats-bugs@netbsd.org
Cc: waddell@caravan.com, scotte@warped.com
Subject: Re: kern/10155
Date: Sat, 7 Apr 2001 01:49:06 -0700
I experienced this problem myself while adding support to the aue driver
for the "Micro Connectors USB To Ethernet Adapter", which appears to
actually be made by Abocom. The GPIO bits on the Abocom board are
Linksys-style... I found the spurious write to the GPIO register
before the linksys test was causing the card to become upset and hang.
Following is a patch which adds support for the Abocom hardware and
avoids the hanging bug. It may work for you as well.
(Note: this was aggravated by the fact that tsleep is disabled in the
driver.. is it safe to re-enable?)
Index: if_aue.c
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/usb/if_aue.c,v
retrieving revision 1.55
diff -r1.55 if_aue.c
179a180
> { USB_VENDOR_ABOCOM, USB_PRODUCT_ABOCOM_UFE1K, 1 },
593,599c594,602
< aue_csr_write_1(sc, AUE_GPIO0,
< AUE_GPIO_OUT0 | AUE_GPIO_SEL0);
< aue_csr_write_1(sc, AUE_GPIO0,
< AUE_GPIO_OUT0 | AUE_GPIO_SEL0 | AUE_GPIO_SEL1);
<
< /* Grrr. LinkSys has to be different from everyone else. */
< if (sc->aue_linksys) {
---
>
> /* restructured to avoid upsetting the Broadcom PHY --mlyle */
>
> if (!sc->aue_linksys) {
> aue_csr_write_1(sc, AUE_GPIO0,
> AUE_GPIO_OUT0 | AUE_GPIO_SEL0);
> aue_csr_write_1(sc, AUE_GPIO0,
> AUE_GPIO_OUT0 | AUE_GPIO_SEL0 | AUE_GPIO_SEL1);
> } else {
Index: usbdevs
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/usb/usbdevs,v
retrieving revision 1.159
diff -r1.159 usbdevs
321a322
> product ABOCOM UFE1K 0x4002 UFE1000 Fast Ethernet Adapter
Index: usbdevs.h
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/usb/usbdevs.h,v
retrieving revision 1.161
diff -r1.161 usbdevs.h
1c1
< /* $NetBSD: usbdevs.h,v 1.161 2001/04/06 22:53:16 augustss Exp $ */
---
> /* $NetBSD$ */
328a329
> #define USB_PRODUCT_ABOCOM_UFE1K 0x4002 /* UFE1000 Fast Ethernet Adapter */
Index: usbdevs_data.h
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/usb/usbdevs_data.h,v
retrieving revision 1.162
diff -r1.162 usbdevs_data.h
1c1
< /* $NetBSD: usbdevs_data.h,v 1.162 2001/04/06 22:53:16 augustss Exp $ */
---
> /* $NetBSD$ */
100a101,106
> },
> {
> USB_VENDOR_ABOCOM, USB_PRODUCT_ABOCOM_UFE1K,
> 0,
> "AboCom Systems, Inc.",
> "UFE1000 Fast Ethernet Adapter",
--
Michael P. Lyle
Chief Technical Officer
Recourse Technologies, Inc.
From: "Scott Ellis" <scotte@warped.com>
To: <gnats-bugs@netbsd.org>
Cc: <waddell@caravan.com>,
"Michael Lyle" <mlyle@recourse.net>
Subject: Re: kern/10155
Date: Sun, 8 Apr 2001 12:24:26 -0700
Thanks Michael. That patch seems to allow my AUE LinkSys to work
in -current. (There's still NFS issues, but it's the same on aue as on kue
now, so I'm pretty sure it's not a kue-specific problem!).
State-Changed-From-To: open->closed
State-Changed-By: augustss
State-Changed-When: Fri Dec 14 15:55:27 PST 2001
State-Changed-Why:
Patch applied.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.