NetBSD Problem Report #44573

From campbell@mumble.net  Mon Feb 14 23:39:26 2011
Return-Path: <campbell@mumble.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 1E88763B100
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 14 Feb 2011 23:39:26 +0000 (UTC)
Message-Id: <20110214233923.AD12998298@pluto.mumble.net>
Date: Mon, 14 Feb 2011 23:39:23 +0000 (UTC)
From: Taylor R Campbell <campbell+netbsd@mumble.net>
Reply-To: Taylor R Campbell <campbell+netbsd@mumble.net>
To: gnats-bugs@gnats.NetBSD.org
Subject: rtk and iwi start failing during high traffic on rtk
X-Send-Pr-Version: 3.95

>Number:         44573
>Category:       kern
>Synopsis:       rtk0 and iwi0 start failing during high traffic on rtk0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 14 23:40:01 +0000 2011
>Closed-Date:    Sun Apr 18 20:02:55 +0000 2021
>Last-Modified:  Sun Apr 18 20:02:55 +0000 2021
>Originator:     Taylor R Campbell <campbell+netbsd@mumble.net>
>Release:        NetBSD 5.1_STABLE
>Organization:
>Environment:
System: NetBSD smalltalk.local 5.1_STABLE NetBSD 5.1_STABLE (RIADEBUG) #0: Tue Feb 1 20:28:45 UTC 2011 root@smalltalk.local:/home/riastradh/netbsd/5/obj/sys/arch/i386/compile/RIADEBUG i386
Architecture: i386
Machine: i386
>Description:

	On my Acer TravelMate 290 laptop, I have rtk0 and iwi0 both
	configured and associated with networks: that is, rtk0 has a
	carrier, iwi0 is associated with a WPA2 access point using
	wpa_supplicant, and both have IP addresses configured.

	Whenever there is a high volume of traffic on rtk0, incoming or
	outgoing, both interfaces start failing to transmit and timing
	out.  iwi0 loses its configuration -- the driver resets the
	device and reloads the firmware (which usually fails at first),
	and then wpa_supplicant reassociates with the network and
	dhcpcd reconfigures the interface.  rtk0's configuration is
	preserved.  The number of oerrs on each interface increases.

	This is on a netbsd-5 kernel as of a couple of weeks ago
	configured by adding options DIAGNOSTIC, DEBUG, LOCKDEBUG,
	APPLE_UFS, and FFS_EI, and makeoptions DEBUG="-g", to GENERIC.
	Here's the excerpt of dmesg output about iwi0 and rtk0; let me
	know if you'd like to see full dmesg output.

rtk0 at pci2 dev 1 function 0: Realtek 8139 10/100BaseTX (rev. 0x10)
rtk0: interrupting at irq 5
rtk0: Ethernet address ...
iwi0 at pci2 dev 2 function 0: vendor 0x8086 product 0x4220 (rev. 0x05)
iwi0: interrupting at irq 5
iwi0: 802.11 address ...
iwi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
iwi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps

>How-To-Repeat:

	Configure rtk0 and iwi0.  If HOST is some host on rtk0's LAN,
	run

		ssh HOST 'cat > /dev/null' < /dev/zero

	or

		ssh HOST 'cat < /dev/zero' > /dev/null

	and watch the kernel complain of `rtk0: watchdog timeout' and
	`iwi0: device timeout' as the number of oerrs increases on each
	interface.

>Fix:

	Yes, please!

>Release-Note:

>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/44573: rtk and iwi start failing during high traffic on rtk
Date: Tue, 15 Feb 2011 10:19:13 +0000

 On Mon, Feb 14, 2011 at 11:40:01PM +0000, Taylor R Campbell wrote:
  > 	Whenever there is a high volume of traffic on rtk0, incoming or
  > 	outgoing, both interfaces start failing to transmit and timing
  > 	out.  iwi0 loses its configuration -- the driver resets the
  > 	device and reloads the firmware (which usually fails at first),
  > 	and then wpa_supplicant reassociates with the network and
  > 	dhcpcd reconfigures the interface.  rtk0's configuration is
  > 	preserved.  The number of oerrs on each interface increases.

 Is that a multiprocessor/multicore machine? If so, does the problem go
 away if you disable all but one cpu?

 -- 
 David A. Holland
 dholland@netbsd.org

From: Taylor R Campbell <campbell+netbsd@mumble.net>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org, David Holland <dholland-bugs@netbsd.org>
Subject: Re: kern/44573: rtk and iwi start failing during high traffic on rtk
Date: Tue, 15 Feb 2011 18:25:15 +0000

    Date: Tue, 15 Feb 2011 10:19:13 +0000
    From: David Holland <dholland-bugs@netbsd.org>

    Is that a multiprocessor/multicore machine? If so, does the problem go
    away if you disable all but one cpu?

 No, it's a uniprocessor/unicore machine.

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/44573: rtk and iwi start failing during high traffic on rtk
Date: Sun, 20 Feb 2011 00:33:55 +0000

 On Tue, Feb 15, 2011 at 06:30:05PM +0000, Taylor R Campbell wrote:
  >     Is that a multiprocessor/multicore machine? If so, does the problem go
  >     away if you disable all but one cpu?
  >  
  >  No, it's a uniprocessor/unicore machine.

 oh well, so much for that conjecture...

 -- 
 David A. Holland
 dholland@netbsd.org

State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 18 Apr 2021 20:02:55 +0000
State-Changed-Why:
Author mentioned not having hardware to test this.



>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.