From nobody@FreeBSD.org  Sun Mar 14 00:42:57 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 866311065670
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 14 Mar 2010 00:42:57 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 761488FC18
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 14 Mar 2010 00:42:57 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o2E0gvRC018696
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 14 Mar 2010 00:42:57 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o2E0gv9C018695;
	Sun, 14 Mar 2010 00:42:57 GMT
	(envelope-from nobody)
Message-Id: <201003140042.o2E0gv9C018695@www.freebsd.org>
Date: Sun, 14 Mar 2010 00:42:57 GMT
From: Joe Marcus Clarke <marcus@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: if_bwn does not pass traffic when in PIO mode
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         144724
>Category:       kern
>Synopsis:       [bwn] if_bwn does not pass traffic when in PIO mode
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    weongyo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 14 00:50:01 UTC 2010
>Closed-Date:    Fri Jan 21 22:23:27 UTC 2011
>Last-Modified:  Fri Jan 21 22:23:27 UTC 2011
>Originator:     Joe Marcus Clarke
>Release:        9-CURRENT
>Organization:
>Environment:
FreeBSD 9.0-CURRENT #105: Wed Mar  3 23:37:36 EST 2010
    marcus@salami.marcuscom.com:/usr/obj/usr/src/sys/SALAMI i386
>Description:
When putting the bwn driver into PIO mode in my Dell Vostro 2510, the card associates, but does not pass traffic.

Weongyo Jeong has been looking into this, and asked me to file a PR.  Here is the link to the dmesg output when running with a debug patch.  This output is when the driver is in (working) DMA mode:

http://www.marcuscom.com/downloads/salami_dma.dmesg

This is when the driver is put into PIO mode:

http://www.marcuscom.com/downloads/salami_pio.dmesg

Note: running in DMA mode is spotty for me.  Sometimes it works, but other times, the driver enters a fatal DMA error loop, and the laptop must be rebooted (power cycled) to recover.

My card is an LP PHY card:

siba_bwn0@pci0:6:0:0:   class=0x028000 card=0x000b1028 chip=0x431514e4 rev=0x01 hdr=0x00
    vendor     = 'Broadcom Corporation'
    device     = 'Broadcom Wireless b/g (BCM4315/BCM22062000)'
    class      = network
>How-To-Repeat:
Set hw.bwn.usedma="0" in loader.conf, then reboot.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Mar 14 06:43:35 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144724 
State-Changed-From-To: open->feedback 
State-Changed-By: weongyo 
State-Changed-When: Sat Jul 10 21:59:44 UTC 2010 
State-Changed-Why:  
Today a patch for LP PHY is committed into the tree.  I think the 
issue was same with your device.  Could you please test with r209888 
again? 


Responsible-Changed-From-To: freebsd-net->weongyo 
Responsible-Changed-By: weongyo 
Responsible-Changed-When: Sat Jul 10 21:59:44 UTC 2010 
Responsible-Changed-Why:  
Today a patch for LP PHY is committed into the tree.  I think the 
issue was same with your device.  Could you please test with r209888 
again? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144724 
State-Changed-From-To: feedback->patched 
State-Changed-By: weongyo 
State-Changed-When: Thu Jul 22 19:14:22 UTC 2010 
State-Changed-Why:  
Set it patched. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144724 
State-Changed-From-To: patched->closed 
State-Changed-By: weongyo 
State-Changed-When: Fri Jan 21 22:23:14 UTC 2011 
State-Changed-Why:  
Closes this ticket. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144724 
>Unformatted:
