From owner-freebsd-wireless@FreeBSD.ORG Mon Oct 3 04:54:31 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 A9F7E106566C; Mon, 3 Oct 2011 04:54:31 +0000 (UTC) (envelope-from adrian.chadd@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 552948FC08; Mon, 3 Oct 2011 04:54:31 +0000 (UTC) Received: by gyf2 with SMTP id 2so3888992gyf.13 for ; Sun, 02 Oct 2011 21:54:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=nUGy8v0KmUfS1s06kOLV8Y1J5fUpHjIvmKJAwTyMKos=; b=XznRBY7+QZhGTKJ3i0PdJxxLNL173Q8/6PVGKzMTfpc38cLMSikGaShNfqdhg//5pg cgf6zITpqtsS4GqiPFXttcpSJPTyJ4Cs+BiLzhPgZeBwFGw2XCJMTnHnIO4R3vVNqPFO G0JbG81jr/83/+Ek1IM9cpAh66VXU+nJohPyk= MIME-Version: 1.0 Received: by 10.236.124.97 with SMTP id w61mr83654377yhh.106.1317617670592; Sun, 02 Oct 2011 21:54:30 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.111.42 with HTTP; Sun, 2 Oct 2011 21:54:30 -0700 (PDT) In-Reply-To: <20111003044350.GD1943@reemsky> References: <20111002232848.GA1943@reemsky> <20111003024406.GC1943@reemsky> <20111003044350.GD1943@reemsky> Date: Mon, 3 Oct 2011 12:54:30 +0800 X-Google-Sender-Auth: XCF4gUzJtO68osl42UjOkgbZCcE Message-ID: From: Adrian Chadd To: Roman Bogorodskiy Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 04:54:31 -0000 On 3 October 2011 12:43, Roman Bogorodskiy wrote: > =A0Roman Bogorodskiy wrote: > 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. It sounds like a calibration issue. > Now uptime is 1 hour and loss rate is about 80-85%. > > Any directions how can I debug this? 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. Debugging this - I'd first isolate it to whether it is: * TX issues; * RX issues; * or both TX and RX issues. 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. 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. The BWI_DBG bits are defined in if_bwivar.h. Adrian