From owner-freebsd-wireless@FreeBSD.ORG Mon Oct 3 16:02:03 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F8BA106564A; Mon, 3 Oct 2011 16:02:03 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id EA6048FC0C; Mon, 3 Oct 2011 16:02:02 +0000 (UTC) Received: by yxk36 with SMTP id 36so4612420yxk.13 for ; Mon, 03 Oct 2011 09:02:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=DtMY9K4Y1gFd4YR5oSvzs0RqMlrTnUVT2tDuTI0cmjI=; b=Xr2Mn3+ti93qt9GzhYk6M4ayeuuquwa9YpELmkNQY3HZhjkYKl5NEG4fKkDn8KfkDI LeXVfGxoia7SVRL+BKi0yBo0YAo5AEzu99yp/D+arGZOyk4ZFTlyhAT9ZbtlL16p/X+g 9uFovysTDGXuu4AOGIWsQxq1UC1/9M9tDmf6I= Received: by 10.236.173.231 with SMTP id v67mr657427yhl.48.1317657722230; Mon, 03 Oct 2011 09:02:02 -0700 (PDT) Received: from reemsky ([12.204.99.164]) by mx.google.com with ESMTPS id o61sm16051600yhi.26.2011.10.03.09.02.00 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 03 Oct 2011 09:02:01 -0700 (PDT) Sender: Roman Bogorodskiy Date: Mon, 3 Oct 2011 09:01:35 -0700 From: Roman Bogorodskiy To: Adrian Chadd Message-ID: <20111003160133.GE1943@reemsky> References: <20111002232848.GA1943@reemsky> <20111003024406.GC1943@reemsky> <20111003044350.GD1943@reemsky> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NQTVMVnDVuULnIzU" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-wireless@freebsd.org Subject: Re: bwn + BETA3/ppc = very unstable X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2011 16:02:03 -0000 --NQTVMVnDVuULnIzU Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Adrian Chadd wrote: > On 3 October 2011 12:43, Roman Bogorodskiy wrote: > > =A0Roman Bogorodskiy wrote: >=20 > > Hm, I have applied a fix similar to this one: > > > > http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/ic/bwi.c.diff?r1=3D1.= 88;r2=3D1.89 > > > > I'm not sure if it's a coincidence or not, but I had no panics since > > then. Packet loss rate are still very high - first packets go through > > without losses, but eventually loss rate goes up. >=20 > It sounds like a calibration issue. >=20 > > Now uptime is 1 hour and loss rate is about 80-85%. > > > > Any directions how can I debug this? >=20 > Well, firstly, can you please do up a patch against -HEAD? I'll commit > it to FreeBSD-HEAD ASAP and then include it in the list of things I > want to backmerge into -9. Here's the diff: http://people.freebsd.org/~novel/misc/bwi.diff Uptime is 12 hours now and no panics so far with it. > Debugging this - I'd first isolate it to whether it is: >=20 > * TX issues; > * RX issues; > * or both TX and RX issues. >=20 > I suggest liberal use of iperf in UDP mode to TX things. It's a bit > difficult as TX'ing a one way UDP stream also involves RX'ing an ACK > from the remote end, so it isn't a 100% guaranteed way of debugging > it. But it hopefully will show it's either TX or RX related. >=20 > I'd also enable BWI_DEBUG and then flip on the relevant bits that let > you debug the attach and configuration bits (BWI_DBG_RF, > BWI_DBG_TXPOWER, BWI_DBG_ATTACH). > In fact, enable both BWI_DEBUG and BWI_DEBUG_VERBOSE in your kernel > config and rebuild. >=20 > The BWI_DBG bits are defined in if_bwivar.h. Thanks for the info, will trying doing that! Roman Bogorodskiy --NQTVMVnDVuULnIzU Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQEcBAEBAgAGBQJOidxdAAoJEMltX/4IwiJqseYH/3AfSO69C2gkZW0VjA5MvjI2 V1pNSGrGUi+QmGLAUNCT2ITJuRl2doRi2pqdhdZ9+1585yUm/zY55qKwje3+BrhS OgKJWiJxlS1lx0ble3kKhWe082uZLObMx8tjPL7bJ1+dP4QdMVuJliikTUgXkM3k 2WeA/HmL9x+9qmdCWSG5JIDsAJpbqoaeYXhyKP7PKWUUMeACynezVbyRoeGga/MH ldcrOXs85BQX3oj5OWtxVCTTcU+OCq5UP1J/jD4Qrp+Xt/QNd53kdOqmRe4vur1f BNs5OcOyB0neQduhRsxSA9tkxKNsUhOl2K3HH3dU1CX+bi2+dqNIFQS2wxAW+yg= =v/Yt -----END PGP SIGNATURE----- --NQTVMVnDVuULnIzU--