NetBSD Problem Report #14385

Received: (qmail 8079 invoked from network); 28 Oct 2001 18:56:29 -0000
Message-Id: <20011028185612.8E39C11112@www.netbsd.org>
Date: Sun, 28 Oct 2001 10:56:12 -0800 (PST)
From: cagney@mac.com
Sender: nobody@netbsd.org
Reply-To: cagney@mac.com
To: gnats-bugs@gnats.netbsd.org
Subject: wi0: xmit failed; from recent changes
X-Send-Pr-Version: www-1.0

>Number:         14385
>Category:       kern
>Synopsis:       wi0: xmit failed; from recent changes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 28 18:57:00 +0000 2001
>Closed-Date:    Thu May 29 05:06:58 +0000 2003
>Last-Modified:  Thu May 29 05:06:58 +0000 2003
>Originator:     Andrew Cagney
>Release:        1.5.2 userland
>Organization:
>Environment:
NetBSD localhost 1.5Y NetBSD 1.5Y (NETLUX) #0: Sat Oct 27 21:19:01 EDT 2001     boor@localhost:/usr/src/sys/arch/macppc/compile/NETLUX macppc

The kernel is from the previous day.
>Description:
The changes:

> cvs rdiff -r1.24 -r1.25 syssrc/sys/dev/ic/wi.c
> cvs rdiff -r1.3 -r1.4 syssrc/sys/dev/ic/wi_ieee.h
> cvs rdiff -r1.9 -r1.10 syssrc/sys/dev/ic/wireg.h
> cvs rdiff -r1.4 -r1.5 syssrc/sys/dev/ic/wivar.h

(pointed out to me by Nathan J. Williams) don't work very well with Apple's wi card on a Ti G4.  The logs show:

wi0: xmit failed
wi0: device timeout
wi0: init failed
wi0: failed to allocate 1594 bytes on NIC
wi0: tx buffer allocation failed
wi0: interface not running
wi0: device timeout
wi0: xmit failed
wi0: device timeout
wi0: init failed

check current-users for more info.

>How-To-Repeat:
Put some sort of network load on a wi0 device with a current kernel.



>Fix:
correctly byteswap type & length of statistics gathering request
also unswap pairs of 8 bit fields incorrectly read as 16 bit fields
see revision 1.48 of wi.c

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: netbsd-admin->kern-bug-people 
Responsible-Changed-By: wiz 
Responsible-Changed-When: Sun Oct 28 11:00:24 PST 2001 
Responsible-Changed-Why:  
Misfiled. 

From: "Darrin B. Jewell" <dbj@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc: "Darrin B. Jewell" <dbj@netbsd.org>
Subject: Re: kern/14385
Date: Tue, 26 Feb 2002 04:22:49 -0500 (EST)

 I committed a partial fix for this bug
 see revision 1.43 of wi.c.

 It appears to be a byte swapping problem retrieving
 stats from the card.  Since the length was incorrectly
 swapped, we would timeout while reading too much data.

 My commit just turns off walking the record when the
 type is not recognized.  Turning on WI_DEBUG now prints
 out the unknown type and record length, which can be
 seen on macppc to be obviously incorrectly swapped.

 I will look at fixing the swapping problem sometime
 in the next couple of days, unless someone else gets to
 it first.  In the meantime, wi0 should be
 usable again.
State-Changed-From-To: open->analyzed 
State-Changed-By: dbj 
State-Changed-When: Tue Feb 26 01:26:20 PST 2002 
State-Changed-Why:  
this is a byte swapping problem on macppc 
. 
1,$n 
State-Changed-From-To: analyzed->feedback 
State-Changed-By: dbj 
State-Changed-When: Sun Mar 3 18:06:41 PST 2002 
State-Changed-Why:  
I think I've fixed this with revision 1.48 of wi.c 

From: Andrew Cagney <cagney@mac.com>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: Re: kern/14385
Date: Fri, 05 Apr 2002 19:51:43 -0500

 FYI,

 Yes, using:
 ac131313@nettle$ uname -a
 NetBSD localhost 1.5ZC NetBSD 1.5ZC (NETLUX) #0: Mon Mar 25 19:02:33 EST 
 2002     boor@localhost:/usr/src/new/sys/arch/macppc/compile/NETLUX macppc

 wi0 appears to be working again and without patches!

 ya!
 Andrew

State-Changed-From-To: feedback->closed 
State-Changed-By: fair 
State-Changed-When: Thu May 29 05:06:35 UTC 2003 
State-Changed-Why:  
this problem report was resolved over a year ago. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.