From owner-freebsd-current@FreeBSD.ORG Tue Mar 9 01:32:57 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4060B106566C for ; Tue, 9 Mar 2010 01:32:57 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id DFC6E8FC08 for ; Tue, 9 Mar 2010 01:32:56 +0000 (UTC) Received: by gyg8 with SMTP id 8so1763655gyg.13 for ; Mon, 08 Mar 2010 17:32:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent:organization:x-operation-sytem; bh=7lgcl93L5rFGRFLsAbMMIbKt70DwUa4aWem77iUc1FU=; b=wYPx/sc9IidHKtbIvUTYOkElgO+EAxK/Ceb+Geqzcm7QBeN9CAYajsckQ2uLNBQlqj ty8vrc8cbLe/9xmLnuWRg/K6pRpy+vhf1rE+OT56obabou427YgC583Jn6dFWyTP4r84 EG/2L3FoHEnpoqUDnVz5x8zvDPDZCILHDm2pw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent:organization:x-operation-sytem; b=RU9B/bxjL+/jndpsDZ0aWPtHt886wGCfj39lBJtcEvF1yjoO9MT4d3tkTpfejW53iL AlpK1ccZgkZgymtGcL3wj/dDT8eoxCuSljWHEl8IjQQAPbHob8LppYVcSrGcFu98eVe2 bAZP5A76bQ+D/ZCV0xObwh2J4MLb4mkN9O7Bg= Received: by 10.150.117.19 with SMTP id p19mr2349903ybc.275.1268098376224; Mon, 08 Mar 2010 17:32:56 -0800 (PST) Received: from weongyo ([174.35.1.224]) by mx.google.com with ESMTPS id 9sm2001015ywf.8.2010.03.08.17.32.53 (version=SSLv3 cipher=RC4-MD5); Mon, 08 Mar 2010 17:32:55 -0800 (PST) Received: by weongyo (sSMTP sendmail emulation); Mon, 8 Mar 2010 17:33:01 -0800 From: Weongyo Jeong Date: Mon, 8 Mar 2010 17:33:01 -0800 To: Joe Marcus Clarke Message-ID: <20100309013301.GU1295@weongyo> Mail-Followup-To: Joe Marcus Clarke , current References: <20100301233706.GH1295@weongyo> <1267505443.35639.9.camel@shumai.marcuscom.com> <20100303220452.GL1295@weongyo> <4B8EE6B1.6030605@freebsd.org> <20100303231416.GN1295@weongyo> <1267679522.5324.20.camel@shumai.marcuscom.com> <20100305205349.GR1295@weongyo> <4B917B42.1060900@freebsd.org> <20100306001656.GS1295@weongyo> <1267938343.96436.9.camel@shumai.marcuscom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1267938343.96436.9.camel@shumai.marcuscom.com> User-Agent: Mutt/1.4.2.3i Organization: CDNetworks. X-Operation-Sytem: FreeBSD Cc: current Subject: Re: Problem with new bwn driver on -CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Weongyo Jeong List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2010 01:32:57 -0000 On Sun, Mar 07, 2010 at 12:05:43AM -0500, Joe Marcus Clarke wrote: > On Fri, 2010-03-05 at 16:16 -0800, Weongyo Jeong wrote: > > On Fri, Mar 05, 2010 at 04:44:34PM -0500, Joe Marcus Clarke wrote: > > > On 3/5/10 3:53 PM, Weongyo Jeong wrote: > > > > On Thu, Mar 04, 2010 at 12:12:02AM -0500, Joe Marcus Clarke wrote: > > > >> On Wed, 2010-03-03 at 15:14 -0800, Weongyo Jeong wrote: > > > >>>> When it occurs again, I will get you the details and the full dmesg. Do > > > >>>> you want a verbose dmesg, or a standard one? > > > >>> > > > >>> I think a standard one is enough. Thank you. > > > >> > > > >> Here you go. This is on -CURRENT from about 30 minutes ago. Thanks for > > > >> looking into this. > > > >> > > > >> http://www.marcuscom.com/downloads/salami.dmesg > > > > > > > > Thank you for dmesg. It looks using PIO mode is only a way to avoid > > > > this problem. > > > > > > > > I looked sources and problems of other Broadcom wireless driver for LP > > > > PHY users. They also encounters this issue and are trying to solve > > > > this but no luck and no perfect patch until now. > > > > > > > > Recently AFAIK wireless-test git of linux adopted a patch `gracefully > > > > convert DMA to PIO mode' to solve it. > > > > > > > > Additionally some guys tolds some success story when they disabled ACPI > > > > but it looks it's not a perfect solution. > > > > > > > > IIRC you said PIO worked for association with your AP but no further > > > > traffic. However I wonder that this is weird for me because paths of > > > > sending management frames and sending data frames are same. Could you > > > > please recheck whether PIO mode worked? I'll try to test PIO mode on my > > > > environment again. > > > > > > I can absolutely confirm PIO mode does NOT work with my card. I tested > > > on a clean power-up. The card associates, but does not pass any > > > traffic. I do not see the same decryption messages that I do with DMA mode. > > > > OK. I'd like to see some verbose message from bwn(4) after applying > > attached patch with email. Could you please test with it and show me > > dmesg? > > > > I tested 3 broadcom card whose revisions are 5 and 9 and it looks it's > > working. > > > > I have one LP PHY device, half MiniPCI-E for laptop, but could not test > > with this patch because I could not turn on RF; it's connected with > > desktop using converter MiniPCI-E to PCI-E though normally it looks > > MiniPCI-E devices are turned on using H/W RF switch. > > Here are two dmesg outputs. Both were taken with this patch. One is > with PIO mode, and the other is with (working) DMA mode. The names > indicate which is which. > > http://www.marcuscom.com/downloads/salami_pio.dmesg > http://www.marcuscom.com/downloads/salami_dma.dmesg Thank you for dmesg. It looks you are right that your device in PIO mode doesn't work. Specially RX path is weird that it was good until the status is changed to RUN but after querying DHCP requests (or another) there were no more RX events (seems no more frames ready). I think it'd be better to file a PR because I could not test LP PHY easily and it looks that it takes time to solve this problem. Could you please do that? regards, Weongyo Jeong