NetBSD Problem Report #36148

From gson@gson.org  Sun Apr 15 19:29:31 2007
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 009BC63B960
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 15 Apr 2007 19:29:31 +0000 (UTC)
Message-Id: <20070415192751.C17EABA32F@guam.gson.org>
Date: Sun, 15 Apr 2007 22:27:51 +0300 (EEST)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: USB ral(4) locks up randomly
X-Send-Pr-Version: 3.95

>Number:         36148
>Category:       kern
>Synopsis:       USB ral(4) locks up once every few days
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 15 19:30:00 +0000 2007
>Last-Modified:  Mon Jun 02 12:20:01 +0000 2008
>Originator:     Andreas Gustafsson
>Release:        NetBSD 4.99.16
>Organization:
>Environment:
System: NetBSD guam.gson.org 4.99.16 NetBSD 4.99.16 (GUAM) #0: Fri Mar 30 17:25:17 EEST 2007 gson@guru.araneus.fi:/usr/src/sys/arch/i386/compile/GUAM i386
Architecture: i386
Machine: i386
>Description:

I have been using a Buffalo AirStation Wireless-G USB WLAN adapter as
the network connection for a Toshiba Libretto L2 laptop that is never
turned off.  A couple of times a week, the laptop loses its network
connection, as evidenced by getting no response when attempting to
ping the local gateway.  Other aspects of the OS still work normally.

If I force an access point scan using "wiconfig -i ral0 -D" while
the interface is in this locked-up state, it starts working again.

Here is the relevant part of the dmesg output:

  ral0 at uhub0 port 2
  ral0: Buffalo WLI-U2-KG54, rev 2.00/0.01, addr 2
  ral0: MAC/BBP RT2570 (rev 0x05), RF RT2526
  ral0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
  ral0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps

>How-To-Repeat:

Try using an USB ral(4) device for a week and see if it locks up.

>Fix:

Please.

>Audit-Trail:
From: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/36148: USB ral(4) locks up randomly
Date: Sun, 15 Apr 2007 23:18:11 +0300

 Here are some additional details requested by Tobias Nygren:

 > 1) "ifconfig ral0" output when the interface is locked up.

 I'm afraid I don't have that saved.  I will get it the next time the
 lockup occurs.  When the interface is operating normally, the output
 is as follows:

   ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
 	  ssid gson nwkey *****
 	  powersave off
 	  bssid 00:0d:88:eb:ba:ca chan 1
 	  address: 00:16:01:80:1e:96
 	  media: IEEE802.11 autoselect (OFDM48 mode 11g)
 	  status: active
 	  inet 10.0.1.247 netmask 0xffffff00 broadcast 10.0.1.255
 	  inet6 fe80::216:1ff:fe80:1e96%ral0 prefixlen 64 scopeid 0x3

 > 2) are you using wpa_supplicant, wep or no encryption at all?

 I am using WEP.
 -- 
 Andreas Gustafsson, gson@gson.org

From: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/36148: USB ral(4) locks up randomly
Date: Wed, 6 Jun 2007 17:38:53 +0300

 The lockup happened again.  I now have the output from "ifconfig ral0"
 while in the locked-up state:

   ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
 	  ssid gson nwkey *****
 	  powersave off
 	  bssid 00:0d:88:eb:ba:ca chan 1
 	  address: 00:16:01:80:1e:96
 	  media: IEEE802.11 autoselect (OFDM36 mode 11g)
 	  status: no network
 	  inet 10.0.1.247 netmask 0xffffff00 broadcast 10.0.1.255
 	  inet6 fe80::216:1ff:fe80:1e96%ral0 prefixlen 64 scopeid 0x3

 Doing "ifconfig ral0 down" followed by "ifconfig ral0 up" made it
 work again.  At that point, the output of "ifconfig ral0" was:

   ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
 	  ssid gson nwkey *****
 	  powersave off
 	  bssid 00:0d:88:eb:ba:ca chan 1
 	  address: 00:16:01:80:1e:96
 	  media: IEEE802.11 autoselect (OFDM36 mode 11g)
 	  status: active
 	  inet 10.0.1.247 netmask 0xffffff00 broadcast 10.0.1.255
 	  inet6 fe80::216:1ff:fe80:1e96%ral0 prefixlen 64 scopeid 0x3

 The only difference between the two is the line "status: no network"
 vs. "status: active".
 -- 
 Andreas Gustafsson, gson@gson.org

From: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/36148: USB ral(4) locks up randomly
Date: Mon, 2 Jun 2008 15:16:56 +0300

 I have noticed that the frequency of the ral(4) lock-ups reported in
 kern/36148 varies a great deal depending on where I'm using the laptop
 with the ral wireless adapter.  When I'm at home, they happen only 1-2
 times a week as originally reported, but at my office or a customer
 site, they happen several times a day.  I'm not sure if the difference
 is caused by differences in the type of access point, the amount of
 traffic on the network, the number of other networks sharing the
 airwaves at the site, or some other environmental factor, but the
 difference is significant.

 This also means the problem is easier for me to reproduce than I
 previously thought, in case someone has any ideas how to debug it.
 -- 
 Andreas Gustafsson, gson@gson.org

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.