From owner-freebsd-wireless@FreeBSD.ORG Sun May 8 09:02:23 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 E4BF5106568D for ; Sun, 8 May 2011 09:02:23 +0000 (UTC) (envelope-from richo@psych0tik.net) Received: from bedford.accountservergroup.com (50.22.11.19-static.reverse.softlayer.com [50.22.11.19]) by mx1.freebsd.org (Postfix) with ESMTP id C0CD98FC1C for ; Sun, 8 May 2011 09:02:23 +0000 (UTC) Received: from [202.172.106.138] (helo=solitaire.psych0tik.net) by bedford.accountservergroup.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1QIzFw-0007Y1-CD for freebsd-wireless@freebsd.org; Sun, 08 May 2011 03:22:25 -0500 Date: Sun, 8 May 2011 18:22:12 +1000 From: richo To: freebsd-wireless@freebsd.org Message-ID: <20110508082212.GA72727@solitaire.psych0tik.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OgqxwSJOaUobr8KG" Content-Disposition: inline X-PGP-Key: http://natalya.psych0tik.net/~richo/pubkey.asc User-Agent: Mutt/1.5.21 (2010-09-15) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bedford.accountservergroup.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - psych0tik.net X-Source: X-Source-Args: X-Source-Dir: Subject: Ath issues on -CURRENT > Mar 31 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: Sun, 08 May 2011 09:02:24 -0000 --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I use an atheros based pccard nic on my laptop with 9-CURRENT. The last time I was able to build a working kernel was 20 march (the current kernel I'm using is=3D20 FreeBSD solitaire.psych0tik.net 9.0-CURRENT FreeBSD 9.0-CURRENT #1 r219786:= =3D Sun Mar 20 15:26:26 EST 2011 richo@solitaire.psych0tik.net:/usr/obj/u= s=3D r/src/sys/GENERIC i386 a few weeks later UPDATING included this message: 20110331: ath(4) has been split into bus- and device- modules. if_ath contains = =20 the HAL, the TX rate control and the network device code. if_ath_pci = =20 contains the PCI bus glue. For Atheros MIPS embedded systems, if_ath_a contains the AHB glue. Users need to load both if_ath_pci and if_ath = =20 in order to use ath on everything else. = =20 = =20 TO REPEAT: if_ath_ahb is not needed for normal users. Normal users onl need to load if_ath and if_ath_pci for ath(4) operation. I'm still using default config, but any kernels I build panic if I boot with the NIC plugged in. They boot fine with it unplugged, but if I plug in the= =20 card it immediately panics. Booting with verbose logging on, I see this (I typed this out by hand after writing it down, so it's possible that it's slightly incorrect. I did double check it, though): pcib2: allocated memory range (0xf6010000-0xf601ffff) for rid 10 of pci0:3:= 0:0 unkown: Lazy allovation of 0x10000 bytes rid 0x10 type 3 at 0xf6010000 cbb0 Opening memory: cbb0 Normal: (0xg6010000-0xf601ffff) cbb0: Opening memory: panic: duplcate map 10 I have confirmed with pciconf -l that pci0:3:0:0 is my ath nic. I have the backtrace, but I only wrote down the function names. I can write down the whole lot if it will help though. --=20 richo || Today's excuse:=20 Increased sunspot activity. --OgqxwSJOaUobr8KG Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQEcBAEBAgAGBQJNxlKqAAoJEIKiWz6J5yQV5VAH/1mdlIjw6t8Uronb39tLOgNK Q5YqrgQ+97hZcS3OUFhRETLxUtUNXWBdOPJYm+WwncZDWfLNcrJHbUAMR0ETeRsb OznbgWvYeeXajG1yqa3HduDMzzTKrNXblcy+kBnMTaNyKrFZxjhvCZrsdUi5p0sS reqndqJ3rkpixCSl1u1eVVRu4ldtykurjJldS+9nEH8uIrMND9+o8/oF3EK6wbSw 0WGc6rlieem7DAEGaa7CBwrDzSdDQPWUruXbZkLQJM9nRaA/BaB0/G+ns4L5Eri/ onxVzBeD5R2/1knGzS/ZH3N6vIunS2I/qI76BFio1iC/Vyc+U0ZHIbjWm5ccLqc= =NGkC -----END PGP SIGNATURE----- --OgqxwSJOaUobr8KG-- From owner-freebsd-wireless@FreeBSD.ORG Sun May 8 09:04:13 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 EFF35106564A for ; Sun, 8 May 2011 09:04:12 +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 AD7F88FC13 for ; Sun, 8 May 2011 09:04:12 +0000 (UTC) Received: by gyg13 with SMTP id 13so1951032gyg.13 for ; Sun, 08 May 2011 02:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=X3OzXbE5ba/DrSfvzOlbcf0EM2jO/26XraGXJKbcT/M=; b=IWkVpfveayb5B1Sy7p8PGuf5VBxHZnTf4H8oIKAw7yilFZfNsBCRO8jwLTL5/WgLmw NFli3nFB25yv4rs95Gy2TfABEusddtRWFwZq1dP/byBiv3f0S6hV/xsHww9A/rgLLY9E /+P1jfwcXO7+o1iL0ucBvnSqLLsuPl3yjXDrY= DomainKey-Signature: a=rsa-sha1; c=nofws; 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; b=Otut+qWQGypJ3dBD82O1UhgM/KkmqXPkWkXkBjy1yBavt9xiY06zS2vdr8j75plG4w R4+2Z9qcldKGmuboNOBoyJolWVRBngQlIV5m0plZH+TQqdqHoj0j4Zdi1o8s3r/nC0YR L2RxsHvfZ89YgHeOo0ncXKxmbM9mq/xjl+G9A= MIME-Version: 1.0 Received: by 10.150.53.3 with SMTP id b3mr4865329yba.11.1304845451686; Sun, 08 May 2011 02:04:11 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.150.136.8 with HTTP; Sun, 8 May 2011 02:04:11 -0700 (PDT) In-Reply-To: <20110508082212.GA72727@solitaire.psych0tik.net> References: <20110508082212.GA72727@solitaire.psych0tik.net> Date: Sun, 8 May 2011 17:04:11 +0800 X-Google-Sender-Auth: mRyVDKRdtqMhQM1grEdv4yEiUYQ Message-ID: From: Adrian Chadd To: richo Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Ath issues on -CURRENT > Mar 31 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: Sun, 08 May 2011 09:04:13 -0000 Is it somehow loading in two copies of the driver? Can you please build a kernel without if_ath and if_ath_pci, then load those as modules? Adrian On 8 May 2011 16:22, richo wrote: > Hi, > > I use an atheros based pccard nic on my laptop with 9-CURRENT. > > The last time I was able to build a working kernel was 20 march (the curr= ent > kernel I'm using is=3D20 > FreeBSD solitaire.psych0tik.net 9.0-CURRENT FreeBSD 9.0-CURRENT #1 r21978= 6:=3D > =A0Sun Mar 20 15:26:26 EST 2011 =A0 =A0 richo@solitaire.psych0tik.net:/us= r/obj/us=3D > r/src/sys/GENERIC =A0i386 > > a few weeks later UPDATING included this message: > 20110331: > =A0 =A0 ath(4) has been split into bus- and device- modules. if_ath conta= ins > =A0 the HAL, the TX rate control and the network device code. if_ath_pci > contains the PCI bus glue. For Atheros MIPS embedded systems, if_ath_a > =A0 =A0 contains the AHB glue. Users need to load both if_ath_pci and if_= ath > =A0 in order to use ath on everything else. > > TO REPEAT: if_ath_ahb is not needed for normal users. Normal users onl > =A0 =A0 need to load if_ath and if_ath_pci for ath(4) operation. > > I'm still using default config, but any kernels I build panic if I boot w= ith > the NIC plugged in. They boot fine with it unplugged, but if I plug in th= e > card > it immediately panics. > > Booting with verbose logging on, I see this (I typed this out by hand aft= er > writing it down, so it's possible that it's slightly incorrect. I did dou= ble > check it, though): > > pcib2: allocated memory range (0xf6010000-0xf601ffff) for rid 10 of > pci0:3:0:0 > unkown: Lazy allovation of 0x10000 bytes rid 0x10 type 3 at 0xf6010000 > cbb0 Opening memory: > cbb0 Normal: (0xg6010000-0xf601ffff) > cbb0: Opening memory: > panic: duplcate map 10 > > I have confirmed with pciconf -l that pci0:3:0:0 is my ath nic. > > I have the backtrace, but I only wrote down the function names. I can wri= te > down the whole lot if it will help though. > > > -- > richo || Today's excuse: > Increased sunspot activity. > From owner-freebsd-wireless@FreeBSD.ORG Sun May 8 09:33:58 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 34E62106564A for ; Sun, 8 May 2011 09:33:58 +0000 (UTC) (envelope-from richo@psych0tik.net) Received: from bedford.accountservergroup.com (50.22.11.19-static.reverse.softlayer.com [50.22.11.19]) by mx1.freebsd.org (Postfix) with ESMTP id 014618FC13 for ; Sun, 8 May 2011 09:33:57 +0000 (UTC) Received: from [202.172.106.138] (helo=solitaire.psych0tik.net) by bedford.accountservergroup.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1QJ0NA-0005T7-Cu; Sun, 08 May 2011 04:33:57 -0500 Date: Sun, 8 May 2011 19:33:45 +1000 From: richo To: Adrian Chadd Message-ID: <20110508093344.GA46619@solitaire.psych0tik.net> References: <20110508082212.GA72727@solitaire.psych0tik.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://natalya.psych0tik.net/~richo/pubkey.asc User-Agent: Mutt/1.5.21 (2010-09-15) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bedford.accountservergroup.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - psych0tik.net X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-wireless@freebsd.org Subject: Re: Ath issues on -CURRENT > Mar 31 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: Sun, 08 May 2011 09:33:58 -0000 --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable >On 8 May 2011 16:22, richo wrote: >> Hi, >> >> I use an atheros based pccard nic on my laptop with 9-CURRENT. >> >> The last time I was able to build a working kernel was 20 march (the cur= rent >> kernel I'm using is=3D20 >> FreeBSD solitaire.psych0tik.net 9.0-CURRENT FreeBSD 9.0-CURRENT #1 r2197= 86:=3D >> ?Sun Mar 20 15:26:26 EST 2011 ? ? richo@solitaire.psych0tik.net:/usr/obj= /us=3D >> r/src/sys/GENERIC ?i386 >> >> a few weeks later UPDATING included this message: >> 20110331: >> ? ? ath(4) has been split into bus- and device- modules. if_ath contains >> ? the HAL, the TX rate control and the network device code. if_ath_pci >> contains the PCI bus glue. For Atheros MIPS embedded systems, if_ath_a >> ? ? contains the AHB glue. Users need to load both if_ath_pci and if_ath >> ? in order to use ath on everything else. >> >> TO REPEAT: if_ath_ahb is not needed for normal users. Normal users onl >> ? ? need to load if_ath and if_ath_pci for ath(4) operation. >> >> I'm still using default config, but any kernels I build panic if I boot = with >> the NIC plugged in. They boot fine with it unplugged, but if I plug in t= he >> card >> it immediately panics. >> >> Booting with verbose logging on, I see this (I typed this out by hand af= ter >> writing it down, so it's possible that it's slightly incorrect. I did do= uble >> check it, though): >> >> pcib2: allocated memory range (0xf6010000-0xf601ffff) for rid 10 of >> pci0:3:0:0 >> unkown: Lazy allovation of 0x10000 bytes rid 0x10 type 3 at 0xf6010000 >> cbb0 Opening memory: >> cbb0 Normal: (0xg6010000-0xf601ffff) >> cbb0: Opening memory: >> panic: duplcate map 10 >> >> I have confirmed with pciconf -l that pci0:3:0:0 is my ath nic. >> >> I have the backtrace, but I only wrote down the function names. I can wr= ite >> down the whole lot if it will help though. >> On 08/05/11 17:04 +0800, Adrian Chadd wrote: >Is it somehow loading in two copies of the driver? > >Can you please build a kernel without if_ath and if_ath_pci, then load >those as modules? > > >Adrian > Certainly That's a really good idea, I'm wishing I'd thought of it. I will try now. Should I be building ath_hal as a module as well? richo --=20 richo || Today's excuse:=20 Feature not yet implemented --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQEcBAEBAgAGBQJNxmN3AAoJEIKiWz6J5yQV1yQH/jVTyy6LKoKe2asS8AUtC3jD xpO9TIt1EpmzIzZ11hW3ddvjZ6mj+qWXnDc5p+5l/Dhm4v2fFevXpfgwaDbdFd4+ OO8NSI7LcHdJm2Bs/rK51h9b9dlzcrtjMi5oVt2EZmOWQLo5uJ+GORIGOt+mfXUn zAmjnvVLNcGHqooGGgTwjYZmIbflEHb6mEGJnEaERyyIMt/X1vgWgO53PATNd2C3 M+PACYUA+hyYkDOwqeYnS4B/LcFrfnsnAIj+mIzP3OkT+FrV+s5z31p/E35GsDu0 I6peUYOJgaVhtj7ZL6d7zXSqr0X9nUn1+IiJGI4feYRr7esy+JhW0ol3GX6jvno= =IzSG -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1-- From owner-freebsd-wireless@FreeBSD.ORG Sun May 8 09:43:15 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 95351106566B for ; Sun, 8 May 2011 09:43:15 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 27C118FC14 for ; Sun, 8 May 2011 09:43:14 +0000 (UTC) Received: by bwz12 with SMTP id 12so4999880bwz.13 for ; Sun, 08 May 2011 02:43:13 -0700 (PDT) Received: by 10.204.84.142 with SMTP id j14mr3218599bkl.20.1304847792911; Sun, 08 May 2011 02:43:12 -0700 (PDT) Received: from amy.lab.techwires.net (dslb-088-067-200-201.pools.arcor-ip.net [88.67.200.201]) by mx.google.com with ESMTPS id f21sm2998245bkd.23.2011.05.08.02.43.10 (version=SSLv3 cipher=OTHER); Sun, 08 May 2011 02:43:11 -0700 (PDT) Sender: Bernhard Schmidt From: Bernhard Schmidt To: freebsd-wireless@freebsd.org Date: Sun, 8 May 2011 11:43:24 +0200 User-Agent: KMail/1.13.7 (FreeBSD/8.2-STABLE; KDE/4.6.2; amd64; ; ) References: <20110508082212.GA72727@solitaire.psych0tik.net> In-Reply-To: <20110508082212.GA72727@solitaire.psych0tik.net> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_8WmxN9fgqRawn8x" Message-Id: <201105081143.24478.bschmidt@freebsd.org> Cc: Subject: Re: Ath issues on -CURRENT > Mar 31 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: Sun, 08 May 2011 09:43:15 -0000 --Boundary-00=_8WmxN9fgqRawn8x Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit On Sunday 08 May 2011 10:22:12 richo wrote: > Hi, > > I use an atheros based pccard nic on my laptop with 9-CURRENT. > > The last time I was able to build a working kernel was 20 march (the current > kernel I'm using is=20 > FreeBSD solitaire.psych0tik.net 9.0-CURRENT FreeBSD 9.0-CURRENT #1 r219786:= > Sun Mar 20 15:26:26 EST 2011 richo@solitaire.psych0tik.net:/usr/obj/us= > r/src/sys/GENERIC i386 > > a few weeks later UPDATING included this message: > 20110331: > ath(4) has been split into bus- and device- modules. if_ath contains > the HAL, the TX rate control and the network device code. if_ath_pci > contains the PCI bus glue. For Atheros MIPS embedded systems, if_ath_a > contains the AHB glue. Users need to load both if_ath_pci and if_ath > in order to use ath on everything else. > > TO REPEAT: if_ath_ahb is not needed for normal users. Normal users onl > need to load if_ath and if_ath_pci for ath(4) operation. > > I'm still using default config, but any kernels I build panic if I boot with > the NIC plugged in. They boot fine with it unplugged, but if I plug in the > card > it immediately panics. > > Booting with verbose logging on, I see this (I typed this out by hand after > writing it down, so it's possible that it's slightly incorrect. I did double > check it, though): > > pcib2: allocated memory range (0xf6010000-0xf601ffff) for rid 10 of pci0:3:0:0 > unkown: Lazy allovation of 0x10000 bytes rid 0x10 type 3 at 0xf6010000 > cbb0 Opening memory: > cbb0 Normal: (0xg6010000-0xf601ffff) > cbb0: Opening memory: > panic: duplcate map 10 > > I have confirmed with pciconf -l that pci0:3:0:0 is my ath nic. > > I have the backtrace, but I only wrote down the function names. I can write > down the whole lot if it will help though. I was running into the same issue with a ral(4) cardbus adapter. John Baldwin provided the attached patch which fixed the issue for me. -- Bernhard --Boundary-00=_8WmxN9fgqRawn8x Content-Type: text/x-patch; charset="ISO-8859-1"; name="cardbus_cis.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="cardbus_cis.diff" Index: sys/dev/cardbus/cardbus_cis.c =================================================================== --- sys/dev/cardbus/cardbus_cis.c (revision 221619) +++ sys/dev/cardbus/cardbus_cis.c (working copy) @@ -430,7 +430,10 @@ cardbus_read_tuple_finish(device_t cbdev, device_t { if (res != CIS_CONFIG_SPACE) { bus_release_resource(child, SYS_RES_MEMORY, rid, res); +#if 0 + /* XXX: Not anymore. */ bus_delete_resource(child, SYS_RES_MEMORY, rid); +#endif } } Index: sys/dev/pci/pci.c =================================================================== --- sys/dev/pci/pci.c (revision 221619) +++ sys/dev/pci/pci.c (working copy) @@ -2576,6 +2576,17 @@ pci_add_map(device_t bus, device_t dev, int reg, s uint16_t cmd; struct resource *res; + /* + * The BAR may already exist if the device is a CardBus card + * whose CIS is stored in this BAR. + */ + pm = pci_find_bar(dev, reg); + if (pm != NULL) { + maprange = pci_maprange(pm->pm_value); + barlen = maprange == 64 ? 2 : 1; + return (barlen); + } + pci_read_bar(dev, reg, &map, &testval); if (PCI_BAR_MEM(map)) { type = SYS_RES_MEMORY; --Boundary-00=_8WmxN9fgqRawn8x-- From owner-freebsd-wireless@FreeBSD.ORG Sun May 8 15:42:48 2011 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 114E6106566B; Sun, 8 May 2011 15:42:48 +0000 (UTC) (envelope-from fluffy@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E00888FC13; Sun, 8 May 2011 15:42:47 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p48FglCs088376; Sun, 8 May 2011 15:42:47 GMT (envelope-from fluffy@freefall.freebsd.org) Received: (from fluffy@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p48FgluU088372; Sun, 8 May 2011 15:42:47 GMT (envelope-from fluffy) Date: Sun, 8 May 2011 15:42:47 GMT Message-Id: <201105081542.p48FgluU088372@freefall.freebsd.org> To: fluffy@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-wireless@FreeBSD.org From: fluffy@FreeBSD.org Cc: Subject: Re: kern/156884: dev/ath instablity 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: Sun, 08 May 2011 15:42:48 -0000 Synopsis: dev/ath instablity Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless Responsible-Changed-By: fluffy Responsible-Changed-When: Sun May 8 15:41:32 UTC 2011 Responsible-Changed-Why: freebsd-wireless territory http://www.freebsd.org/cgi/query-pr.cgi?pr=156884 From owner-freebsd-wireless@FreeBSD.ORG Sun May 8 16:09:39 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 8CCB6106566C for ; Sun, 8 May 2011 16:09:39 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 37A4D8FC12 for ; Sun, 8 May 2011 16:09:38 +0000 (UTC) Received: by ywf7 with SMTP id 7so2010035ywf.13 for ; Sun, 08 May 2011 09:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=1a90cLctVubjhFwUKMGSCryXtb1dK9lcPd6qmBc3P4E=; b=EdtX5eTVSHq1HFedXZdA3Kln9h+erDMXpYx/araPrA7gj6HsGxRTWeA5H9TFRFwlxd qzsWrT8ZGLvmnYT927MdtdU8OlDYBMNfS3HIpW26uwbea4QWXr93UXTG3vtmBkZzCTby /sdfG+8m46IJsZ1vpw7tL3WK1Ff61CZ20r4xU= DomainKey-Signature: a=rsa-sha1; c=nofws; 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; b=JNs6JQfyHCsk63nhDMNBx9ceLM2c/QEIxSzu6zMeJ+a03dQjSFvcRWfkN0NRXOgCdT c+mgTtvEgYMRziHERq+5lqbU+161ttIs5ZD1EqycRnatCe1pXTplTMG5lEE16vmstyxp eKksv6IM7maqS3d4uDGEAwCAT9zEVNnlBi62U= MIME-Version: 1.0 Received: by 10.150.53.3 with SMTP id b3mr5054874yba.11.1304870978399; Sun, 08 May 2011 09:09:38 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.150.136.8 with HTTP; Sun, 8 May 2011 09:09:38 -0700 (PDT) In-Reply-To: <201105081542.p48FgluU088372@freefall.freebsd.org> References: <201105081542.p48FgluU088372@freefall.freebsd.org> Date: Mon, 9 May 2011 00:09:38 +0800 X-Google-Sender-Auth: 6cIDLlHbdwBnvA5C729Kk3HUlp0 Message-ID: From: Adrian Chadd To: fluffy@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: kern/156884: dev/ath instablity 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: Sun, 08 May 2011 16:09:39 -0000 This is an annoying bug; I'm trying to reproduce it locally. I can certainly trigger situations in -HEAD where the AR9285 I have here drops in TX performance down to sub-10mbit. I've tried a few if_ath/HAL versions over the last few months and there has been a change in behaviour, but I can't specifically pinpoint what it's due to and what's "better". Only that it's "different". Between Dima, Martin and I, I think we have enough of a sample of differently-functioning AR9285's to figure out this mess. Please speak up if you're using an AR9285 with -HEAD. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Mon May 9 09:40:09 2011 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7574C106564A for ; Mon, 9 May 2011 09:40:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4D3FD8FC08 for ; Mon, 9 May 2011 09:40:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p499e9Jb084997 for ; Mon, 9 May 2011 09:40:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p499e9Ic084996; Mon, 9 May 2011 09:40:09 GMT (envelope-from gnats) Date: Mon, 9 May 2011 09:40:09 GMT Message-Id: <201105090940.p499e9Ic084996@freefall.freebsd.org> To: freebsd-wireless@FreeBSD.org From: Adrian Chadd Cc: Subject: Re: kern/156884: dev/ath instablity X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Adrian Chadd 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, 09 May 2011 09:40:09 -0000 The following reply was made to PR kern/156884; it has been noted by GNATS. From: Adrian Chadd To: bug-followup@FreeBSD.org, fluffy@FreeBSD.org Cc: Subject: Re: kern/156884: dev/ath instablity Date: Mon, 9 May 2011 17:33:34 +0800 Hi Dima, Would you please provide the dmesg for your ath device? dmesg | grep ath This'll include information such as whether antenna diversity is enabled or not. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Mon May 9 10:00:21 2011 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C09D106566B for ; Mon, 9 May 2011 10:00:21 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6323A8FC12 for ; Mon, 9 May 2011 10:00:21 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p49A0L8C002134 for ; Mon, 9 May 2011 10:00:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p49A0LUG002133; Mon, 9 May 2011 10:00:21 GMT (envelope-from gnats) Date: Mon, 9 May 2011 10:00:21 GMT Message-Id: <201105091000.p49A0LUG002133@freefall.freebsd.org> To: freebsd-wireless@FreeBSD.org From: Adrian Chadd Cc: Subject: Re: kern/156884: dev/ath instablity X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Adrian Chadd 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, 09 May 2011 10:00:21 -0000 The following reply was made to PR kern/156884; it has been noted by GNATS. From: Adrian Chadd To: bug-followup@FreeBSD.org, fluffy@FreeBSD.org Cc: Subject: Re: kern/156884: dev/ath instablity Date: Mon, 9 May 2011 17:53:33 +0800 Hm, on my AR9285, the stability is fine right up until the antenna diversity code kicks in and chooses a new diversity setting. The chosen setting is very, very suboptimal. I'll open a separate PR for that. Thanks, adrian From owner-freebsd-wireless@FreeBSD.ORG Mon May 9 11:07:18 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 B54851065700 for ; Mon, 9 May 2011 11:07:18 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9B7458FC1F for ; Mon, 9 May 2011 11:07:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p49B7Imd070802 for ; Mon, 9 May 2011 11:07:18 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p49B7I67070800 for freebsd-wireless@FreeBSD.org; Mon, 9 May 2011 11:07:18 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 9 May 2011 11:07:18 GMT Message-Id: <201105091107.p49B7I67070800@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-wireless@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-wireless@FreeBSD.org 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, 09 May 2011 11:07:18 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/156884 wireless dev/ath instablity o kern/156765 wireless [ath] Merlin fast-clock check isn't correct o kern/156327 wireless [bwn] bwn driver causes 20%-50% packet loss o kern/156322 wireless [wpi] no ahdemo support for if_wpi o kern/156321 wireless [ath] ahdemo doesn't work with if_ath o kern/155100 wireless [ath] ath driver on busy channel: "stuck beacon" p kern/154598 wireless [ath] Atheros 5424/2424 can't connect to WPA network o kern/154567 wireless [ath] ath(4) lot of bad series(0) o kern/154327 wireless [ath] AR5416 in station mode hangs when transmitting f o kern/154284 wireless [ath] Modern ath wifi cards (such as AR9285) have miss o kern/154153 wireless [ath] AR5213 + MIPS + WPA group key packet corruption o kern/154007 wireless [ath] Atheros ar9287 card does not get recognized. o kern/153448 wireless [ath] ath networking device loses association after a o kern/152750 wireless [ath] ath0 lot of bad series hwrate o kern/151198 wireless [ath] ath/5416 fails bgscan with "ath0: ath_chan_set: o kern/149786 wireless [bwn] bwn on Dell Inspiron 1150: connections stall o kern/149539 wireless [ath] atheros ar9287 is not supported by ath_hal o kern/149516 wireless [ath] ath(4) hostap with fake MAC/BSSID results in sta o kern/149373 wireless [realtek/atheros]: None of my network card working o kern/149307 wireless [ath] Doesn't work Atheros 9285 o kern/148322 wireless [ath] Triggering atheros wifi beacon misses in hostap o kern/148317 wireless [ath] FreeBSD 7.x hostap memory leak in net80211 or At o kern/148112 wireless [ath] Atheros 9285 cannot register with wifi AP (timeo o kern/148078 wireless [ath] wireless networking stops functioning o kern/145826 wireless [panic] [ath] Unable to configure adhoc mode on ath0/w o kern/144987 wireless [wpi] [panic] injecting packets with wlaninject using o bin/144109 wireless hostapd(8) uses the MAC of the wireless interface, but o kern/143868 wireless [ath] [patch] [request] allow Atheros watchdog timeout o conf/143079 wireless hostapd(8) startup missing multi wlan functionality p kern/140567 wireless [ath] [patch] ath is not worked on my notebook PC o kern/140245 wireless [ath] [panic] Kernel panic during network activity on o kern/137592 wireless [ath] panic - 7-STABLE (Aug 7, 2009 UTC) crashes on ne p bin/137484 wireless [patch] Integer overflow in wpa_supplicant(8) base64 e o kern/136943 wireless [wpi] [lor] wpi0_com_lock / wpi0 o kern/136836 wireless [ath] atheros card stops functioning after about 12 ho o kern/132722 wireless [ath] Wifi ath0 associates fine with AP, but DHCP or I o bin/131549 wireless ifconfig(8) can't clear 'monitor' mode on the wireless o kern/126475 wireless [ath] [panic] ath pcmcia card inevitably panics under o kern/125721 wireless [ath] Terrible throughput/high ping latency with Ubiqu o kern/125332 wireless [ath] [panic] crash under any non-tiny networking unde o kern/124767 wireless [iwi] Wireless connection using iwi0 driver (Intel 220 o kern/124753 wireless [ieee80211] net80211 discards power-save queue packets o docs/120456 wireless ath(4) needs to specify requirement on wlan_scan_sta o kern/119513 wireless [ath] [irq] inserting dlink dwl-g630 wireless card res o kern/116747 wireless [ndis] FreeBSD 7.0-CURRENT crash with Dell TrueMobile f kern/105348 wireless [ath] ath device stopps TX 46 problems total. From owner-freebsd-wireless@FreeBSD.ORG Mon May 9 11:10:12 2011 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28E3A1065678 for ; Mon, 9 May 2011 11:10:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 197C68FC22 for ; Mon, 9 May 2011 11:10:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p49BABjc072716 for ; Mon, 9 May 2011 11:10:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p49BABrm072715; Mon, 9 May 2011 11:10:11 GMT (envelope-from gnats) Date: Mon, 9 May 2011 11:10:11 GMT Message-Id: <201105091110.p49BABrm072715@freefall.freebsd.org> To: freebsd-wireless@FreeBSD.org From: Dima Panov Cc: Subject: Re: kern/156884: dev/ath instablity X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dima Panov 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, 09 May 2011 11:10:12 -0000 The following reply was made to PR kern/156884; it has been noted by GNATS. From: Dima Panov To: Adrian Chadd Cc: bug-followup@freebsd.org,fluffy@freebsd.org Subject: Re: kern/156884: dev/ath instablity Date: Mon, 09 May 2011 21:49:13 +1100 ath0: mem 0xf0000000-0xf000ffff irq 19 at device 0.0 on pci9 [ath] Enabling diversity for Kite ath0: AR9285 mac 192.2 RF5133 phy 14.0 09.05.2011, 20:33, "Adrian Chadd" : > Hi Dima, > > Would you please provide the dmesg for your ath device? > > dmesg | grep ath > > This'll include information such as whether antenna diversity is enabled or not. > > Thanks, > > Adrian -- Dima Panov (fluffy@FreeBSD.org) KDE@FreeBSD team Facebook: http://www.facebook.com/fluffy.khv From owner-freebsd-wireless@FreeBSD.ORG Mon May 9 12:57:33 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 D7F6B1065670; Mon, 9 May 2011 12:57:33 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from tower.berklix.org (tower.berklix.org [83.236.223.114]) by mx1.freebsd.org (Postfix) with ESMTP id 5E8508FC1B; Mon, 9 May 2011 12:57:32 +0000 (UTC) Received: from park.js.berklix.net (pD9FBE081.dip.t-dialin.net [217.251.224.129]) (authenticated bits=0) by tower.berklix.org (8.14.2/8.14.2) with ESMTP id p49CYqrD005818; Mon, 9 May 2011 12:34:53 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by park.js.berklix.net (8.13.8/8.13.8) with ESMTP id p49CZOE9017591; Mon, 9 May 2011 14:35:24 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.3/8.14.3) with ESMTP id p49CZJTC076217; Mon, 9 May 2011 14:35:24 +0200 (CEST) (envelope-from jhs@fire.js.berklix.net) Message-Id: <201105091235.p49CZJTC076217@fire.js.berklix.net> To: Adrian Chadd From: "Julian H. Stacey" Organization: http://www.berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://www.berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Sat, 07 May 2011 18:52:09 +0800." Date: Mon, 09 May 2011 14:35:19 +0200 Sender: jhs@berklix.com Cc: freebsd-wireless@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: Does anyone have a laptop with an AR9280/AR9285 and Bluetooth in it? 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, 09 May 2011 12:57:33 -0000 Hi, Reference: > From: Adrian Chadd > Date: Sat, 7 May 2011 18:52:09 +0800 > Message-id: Adrian Chadd wrote: > Hi all, > > Does anyone have a laptop with an AR9280/AR9285 in it, along with Bluetooth? > > I'm looking for someone who's interested in getting bluetooth > coexistence support working in the atheros driver and has the > hardware. I'd like to stay focused on 11n and general radio/chipset > support. > > Please let me know if you've got something with this and know a little > bit about C. It's likely a good project to get down and dirty with the > atheros wireless codebase. > > Thanks! I have no idea whats in - my 2 cardbus wireless cards on my 8.2-Rel, - or direct in my new laptop ive acquired (with MS-Win only so far, not shrunk to install FreeBSD just yet) However if you had a code snippet you could publish to list, we could compile that to sniff what hardware, then I guess some with detected hardware would want to report back :-) Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Mail plain text; Not quoted-printable, Not HTML, Not base 64. Reply below text sections not at top, to avoid breaking cumulative context. From owner-freebsd-wireless@FreeBSD.ORG Mon May 9 13:00:22 2011 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6AD081065679 for ; Mon, 9 May 2011 13:00:22 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8BE538FC1A for ; Mon, 9 May 2011 13:00:21 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p49D0L5O077573 for ; Mon, 9 May 2011 13:00:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p49D0LLS077571; Mon, 9 May 2011 13:00:21 GMT (envelope-from gnats) Date: Mon, 9 May 2011 13:00:21 GMT Message-Id: <201105091300.p49D0LLS077571@freefall.freebsd.org> To: freebsd-wireless@FreeBSD.org From: Dima Panov Cc: Subject: Re: kern/156884: dev/ath instablity X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dima Panov 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, 09 May 2011 13:00:22 -0000 The following reply was made to PR kern/156884; it has been noted by GNATS. From: Dima Panov To: Adrian Chadd Cc: bug-followup@freebsd.org,fluffy@freebsd.org Subject: Re: kern/156884: dev/ath instablity Date: Mon, 09 May 2011 23:54:32 +1100 By Adrian's request, I provide chatlog for PR history: 21:45:08šDima Panovš 19 hours uptime, about 20 log lines with "ath0: bb hang detected (0x80), resetting", but it still works. and another: my link aggregation (wire + wifi) shown next lines: wlan0: link state changed to DOWN lagg0: link state changed to DOWN wlan0: link state changed to UP lagg0: link state changed to UP 21:51:01šAdrian Chaddš hm, ok 21:51:06šAdrian Chaddš And with that -HEAD you tested with 21:51:07šAdrian Chaddš that you said worked 21:51:11šAdrian Chaddš you didn't get any BB hangs, right? 21:53:10šDima Panovš i've got BB hangs already for last 4-5 months... but it not leads to unusable interface until reported version/ 21:53:18šDima Panovš now it works with r221480:221612M: 21:53:18šAdrian Chaddš I have to head off, please attach this and dmesg | grep ath from your boot 21:53:22šAdrian Chaddš Ok 21:53:30šAdrian Chaddš was there a point in time when you didn't have BB hangs and things worked? 21:53:55šDima Panovš ath0: mem 0xf0000000-0xf000ffff irq 19 at device 0.0 on pci9 [ath] Enabling diversity for Kite ath0: AR9285 mac 192.2 RF5133 phy 14.0 21:54:06šAdrian Chaddš ah yes, antenna diversity for Kite 21:54:09šAdrian Chaddš blah I'm debugging that too at the moment 21:54:36šAdrian Chaddš So you've always had bb hangs, or has there been a point in the past where it worked fine with no BB hangs? 21:54:39šAdrian Chaddš that's what's important 21:54:57šAdrian Chaddš I have to rush off 21:54:59šAdrian Chaddš Just let me know this 21:55:05šAdrian Chaddš (and then put all of this info in the PR 21:55:06šAdrian Chaddš ) 21:55:15šAdrian Chaddš Was there ever a point where the AR9285 was working for you with no BB hangs? 21:55:30šDima Panovš i didn't remember exactly, but before november bb hangs was rare 21:55:47šAdrian Chaddš ok 21:55:50šAdrian Chaddš rarer than now? 21:55:57šDima Panovš yep 21:55:59šAdrian Chaddš ok 21:56:12šAdrian Chaddš would you mind testing a late september sys/dev/ath/ directory? 21:56:19šAdrian Chaddš (you'll have to patch the sys/conf/files list to be able to build it though) 21:56:30šAdrian Chaddš in fact, no 21:56:31šAdrian Chaddš let's do that after 21:56:37šAdrian Chaddš Let's test a more recent version 21:56:41šAdrian Chaddš We'll go hunting for that later, ok? 21:56:59šDima Panovš 2-3 message for 2-day uptime was normal in november 21:57:31šDima Panovš yep. so which revision i need to update now? 21:57:34šAdrian Chaddš Well, your environment may have changed 21:57:38šAdrian Chaddš we can test that later 21:58:18šDima Panovš nope, same AP, same 2 laptops, same 3 another APs available at building 21:58:27šAdrian Chaddš Yeah 21:58:32šAdrian Chaddš As I said, it's a later problem. :) 21:58:32šAdrian Chaddš ok? 21:58:39šAdrian Chaddš We'll test a september/october kernel 21:58:41šAdrian Chaddš Sorry, ath 21:58:44šAdrian Chaddš Now that we know 21:58:55šDima Panovš ok, i'm ready 21:59:36šAdrian Chaddš Try r221596 22:00:01šAdrian Chaddš Please remember to add the above to the PR 22:00:04šAdrian Chaddš both the version that worked 22:00:07šAdrian Chaddš What we're next trying 22:00:16šAdrian Chaddš and the fact that you remember there being less BB hangs in November 22:00:20šAdrian Chaddš Just so we don't lose track, ok? 22:00:36šAdrian Chaddš I gotta run out, sorry :) 22:00:43šDima Panovš good, will attach chatlog to PR 22:00:49šAdrian Chaddš cool-o 22:00:56šAdrian Chaddš and I'm going to add some more diversity related hackery to freebsd 22:00:56šAdrian Chaddš bbl 22:01:13šDima Panovš good luck! 09.05.2011, 21:49, "Dima Panov" : > ath0: mem 0xf0000000-0xf000ffff irq 19 at device 0.0 on pci9 > [ath] Enabling diversity for Kite > ath0: AR9285 mac 192.2 RF5133 phy 14.0 > > 09.05.2011, 20:33, "Adrian Chadd" ;: > >> šHi Dima, >> >> šWould you please provide the dmesg for your ath device? >> >> šdmesg | grep ath >> >> šThis'll include information such as whether antenna diversity is enabled or not. >> -- Dima Panov (fluffy@FreeBSD.org) KDE@FreeBSD team Facebook: http://www.facebook.com/fluffy.khv From owner-freebsd-wireless@FreeBSD.ORG Mon May 9 23:52:41 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 33F9B106564A for ; Mon, 9 May 2011 23:52:41 +0000 (UTC) (envelope-from richo@psych0tik.net) Received: from bedford.accountservergroup.com (50.22.11.19-static.reverse.softlayer.com [50.22.11.19]) by mx1.freebsd.org (Postfix) with ESMTP id F09BA8FC08 for ; Mon, 9 May 2011 23:52:40 +0000 (UTC) Received: from boxand.lnk.telstra.net ([203.45.130.125] helo=richh-desktop.boxdice.com.au) by bedford.accountservergroup.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1QJaFj-0000dh-4u; Mon, 09 May 2011 18:52:40 -0500 Date: Tue, 10 May 2011 09:52:25 +1000 From: richo To: freebsd-wireless@freebsd.org Message-ID: <20110509235225.GA19432@richh-desktop.boxdice.com.au> References: <20110508082212.GA72727@solitaire.psych0tik.net> <201105081143.24478.bschmidt@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <201105081143.24478.bschmidt@freebsd.org> X-PGP-Key: http://natalya.psych0tik.net/~richo/pubkey.asc User-Agent: Mutt/1.5.21 (2010-09-15) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bedford.accountservergroup.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - psych0tik.net X-Source: X-Source-Args: X-Source-Dir: Cc: Bernhard Schmidt Subject: Re: Ath issues on -CURRENT > Mar 31 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, 09 May 2011 23:52:41 -0000 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 08/05/11 11:43 +0200, Bernhard Schmidt wrote: >On Sunday 08 May 2011 10:22:12 richo wrote: >> Hi, >> >> I use an atheros based pccard nic on my laptop with 9-CURRENT. >> >> The last time I was able to build a working kernel was 20 march (the cur= rent >> kernel I'm using is=3D20 >> FreeBSD solitaire.psych0tik.net 9.0-CURRENT FreeBSD 9.0-CURRENT #1 r2197= 86:=3D >> Sun Mar 20 15:26:26 EST 2011 richo@solitaire.psych0tik.net:/usr/ob= j/us=3D >> r/src/sys/GENERIC i386 >> >> a few weeks later UPDATING included this message: >> 20110331: >> ath(4) has been split into bus- and device- modules. if_ath contai= ns >> the HAL, the TX rate control and the network device code. if_ath_p= ci >> contains the PCI bus glue. For Atheros MIPS embedded systems, if_a= th_a >> contains the AHB glue. Users need to load both if_ath_pci and if_a= th >> in order to use ath on everything else. >> >> TO REPEAT: if_ath_ahb is not needed for normal users. Normal users= onl >> need to load if_ath and if_ath_pci for ath(4) operation. >> >> I'm still using default config, but any kernels I build panic if I boot = with >> the NIC plugged in. They boot fine with it unplugged, but if I plug in t= he >> card >> it immediately panics. >> >> Booting with verbose logging on, I see this (I typed this out by hand af= ter >> writing it down, so it's possible that it's slightly incorrect. I did do= uble >> check it, though): >> >> pcib2: allocated memory range (0xf6010000-0xf601ffff) for rid 10 of pci0= :3:0:0 >> unkown: Lazy allovation of 0x10000 bytes rid 0x10 type 3 at 0xf6010000 >> cbb0 Opening memory: >> cbb0 Normal: (0xg6010000-0xf601ffff) >> cbb0: Opening memory: >> panic: duplcate map 10 >> >> I have confirmed with pciconf -l that pci0:3:0:0 is my ath nic. >> >> I have the backtrace, but I only wrote down the function names. I can wr= ite >> down the whole lot if it will help though. > >I was running into the same issue with a ral(4) cardbus adapter. >John Baldwin provided the attached patch which fixed the issue >for me. > >--=20 >Bernhard >Index: sys/dev/cardbus/cardbus_cis.c >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >--- sys/dev/cardbus/cardbus_cis.c (revision 221619) >+++ sys/dev/cardbus/cardbus_cis.c (working copy) >@@ -430,7 +430,10 @@ cardbus_read_tuple_finish(device_t cbdev, device_t > { > if (res !=3D CIS_CONFIG_SPACE) { > bus_release_resource(child, SYS_RES_MEMORY, rid, res); >+#if 0 >+ /* XXX: Not anymore. */ > bus_delete_resource(child, SYS_RES_MEMORY, rid); >+#endif > } > } >=20 >Index: sys/dev/pci/pci.c >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >--- sys/dev/pci/pci.c (revision 221619) >+++ sys/dev/pci/pci.c (working copy) >@@ -2576,6 +2576,17 @@ pci_add_map(device_t bus, device_t dev, int reg, s > uint16_t cmd; > struct resource *res; >=20 >+ /* >+ * The BAR may already exist if the device is a CardBus card >+ * whose CIS is stored in this BAR. >+ */ >+ pm =3D pci_find_bar(dev, reg); >+ if (pm !=3D NULL) { >+ maprange =3D pci_maprange(pm->pm_value); >+ barlen =3D maprange =3D=3D 64 ? 2 : 1; >+ return (barlen); >+ } >+ > pci_read_bar(dev, reg, &map, &testval); > if (PCI_BAR_MEM(map)) { > type =3D SYS_RES_MEMORY; Hi Bernhard, Your patch worked a charm (I only had to patch pci.c though, the cardbus modifications looked unncessary.) Thanks! richo --=20 richo || Today's excuse:=20 somebody was calculating pi on the server --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJNyH45AAoJEIKiWz6J5yQVLzgH/RQ09jlLxcYH8tx1rYveLn4f +GLnTXrZ/h8ZEBz/QNPgvQebraPc0Rh+7dP3foPJvIbc+N7gZMg17efMl7/V54pe gg5c9Fn7/xbCug7Ou+EtkAuX+T4ReHnoqtNqxe2pVGJWQ7v8pIWxCTlHBDMvCQmf dy1q0g/5GJe4MQQzXfEDkXtF0aPW7WW5HNXGWKiftOca06uPEJb+4PJp1J62EdDV qyxh6djruWMgCzlftYPudEDNFGIt2ah209Xu2quCW8qcFeZZAjYsAyN1tsmgJzw6 Tn5GWzpkeS0Q6pFCFl1RPcCL+S0gIhSAaTvpQSRoe7noj3tkmj2yAKLlmA8hUb0= =5DGL -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf-- From owner-freebsd-wireless@FreeBSD.ORG Tue May 10 10:07:45 2011 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3DB9F1065670; Tue, 10 May 2011 10:07:45 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 160618FC08; Tue, 10 May 2011 10:07:45 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4AA7ite063604; Tue, 10 May 2011 10:07:44 GMT (envelope-from adrian@freefall.freebsd.org) Received: (from adrian@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4AA7iNQ063600; Tue, 10 May 2011 10:07:44 GMT (envelope-from adrian) Date: Tue, 10 May 2011 10:07:44 GMT Message-Id: <201105101007.p4AA7iNQ063600@freefall.freebsd.org> To: adrian@FreeBSD.org, adrian@FreeBSD.org, freebsd-wireless@FreeBSD.org From: adrian@FreeBSD.org Cc: Subject: Re: kern/156765: [ath] Merlin fast-clock check isn't correct 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: Tue, 10 May 2011 10:07:45 -0000 Synopsis: [ath] Merlin fast-clock check isn't correct State-Changed-From-To: open->closed State-Changed-By: adrian State-Changed-When: Tue May 10 10:06:57 UTC 2011 State-Changed-Why: Fixed in r221667. This now only applies to chips which have set the relevant capability and are in 5ghz mode. http://www.freebsd.org/cgi/query-pr.cgi?pr=156765 From owner-freebsd-wireless@FreeBSD.ORG Tue May 10 10:13:46 2011 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BC9E106564A; Tue, 10 May 2011 10:13:46 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 635048FC18; Tue, 10 May 2011 10:13:46 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4AADkS6072581; Tue, 10 May 2011 10:13:46 GMT (envelope-from adrian@freefall.freebsd.org) Received: (from adrian@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4AADkgu072577; Tue, 10 May 2011 10:13:46 GMT (envelope-from adrian) Date: Tue, 10 May 2011 10:13:46 GMT Message-Id: <201105101013.p4AADkgu072577@freefall.freebsd.org> To: adrian@FreeBSD.org, freebsd-net@FreeBSD.org, freebsd-wireless@FreeBSD.org From: adrian@FreeBSD.org Cc: Subject: Re: kern/140796: [ath] [panic] Cannot attach (unable to attach hardware; HAL status 3) under 8, panic in 7.x 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: Tue, 10 May 2011 10:13:46 -0000 Synopsis: [ath] [panic] Cannot attach (unable to attach hardware; HAL status 3) under 8, panic in 7.x Responsible-Changed-From-To: freebsd-net->freebsd-wireless Responsible-Changed-By: adrian Responsible-Changed-When: Tue May 10 10:13:04 UTC 2011 Responsible-Changed-Why: Reassigning to freebsd-wireless Submitter: is this still a problem for you? http://www.freebsd.org/cgi/query-pr.cgi?pr=140796 From owner-freebsd-wireless@FreeBSD.ORG Tue May 10 10:14:24 2011 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F82E1065678; Tue, 10 May 2011 10:14:24 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 182258FC0C; Tue, 10 May 2011 10:14:24 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4AAENMi072970; Tue, 10 May 2011 10:14:23 GMT (envelope-from adrian@freefall.freebsd.org) Received: (from adrian@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4AAEN2l072966; Tue, 10 May 2011 10:14:23 GMT (envelope-from adrian) Date: Tue, 10 May 2011 10:14:23 GMT Message-Id: <201105101014.p4AAEN2l072966@freefall.freebsd.org> To: adrian@FreeBSD.org, freebsd-net@FreeBSD.org, freebsd-wireless@FreeBSD.org From: adrian@FreeBSD.org Cc: Subject: Re: kern/125617: [ath] [panic] ath(4) related panic 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: Tue, 10 May 2011 10:14:24 -0000 Synopsis: [ath] [panic] ath(4) related panic Responsible-Changed-From-To: freebsd-net->freebsd-wireless Responsible-Changed-By: adrian Responsible-Changed-When: Tue May 10 10:13:54 UTC 2011 Responsible-Changed-Why: Reassigning to freebsd-wireless Submitter: is this still a problem for you? http://www.freebsd.org/cgi/query-pr.cgi?pr=125617 From owner-freebsd-wireless@FreeBSD.ORG Tue May 10 10:14:57 2011 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E2981065677; Tue, 10 May 2011 10:14:57 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EAC5B8FC22; Tue, 10 May 2011 10:14:56 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4AAEuaU073019; Tue, 10 May 2011 10:14:56 GMT (envelope-from adrian@freefall.freebsd.org) Received: (from adrian@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4AAEups073015; Tue, 10 May 2011 10:14:56 GMT (envelope-from adrian) Date: Tue, 10 May 2011 10:14:56 GMT Message-Id: <201105101014.p4AAEups073015@freefall.freebsd.org> To: adrian@FreeBSD.org, freebsd-net@FreeBSD.org, freebsd-wireless@FreeBSD.org From: adrian@FreeBSD.org Cc: Subject: Re: kern/125501: [ath] atheros cardbus driver hangs 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: Tue, 10 May 2011 10:14:57 -0000 Synopsis: [ath] atheros cardbus driver hangs Responsible-Changed-From-To: freebsd-net->freebsd-wireless Responsible-Changed-By: adrian Responsible-Changed-When: Tue May 10 10:14:30 UTC 2011 Responsible-Changed-Why: Reassign to freebsd-wireless Submitter: is this still a problem for you w/ freebsd-8 or freebsd-head? http://www.freebsd.org/cgi/query-pr.cgi?pr=125501 From owner-freebsd-wireless@FreeBSD.ORG Tue May 10 14:33:47 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 8E6CE106566C; Tue, 10 May 2011 14:33:47 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id 398DD8FC14; Tue, 10 May 2011 14:33:47 +0000 (UTC) Received: by yie12 with SMTP id 12so2697628yie.13 for ; Tue, 10 May 2011 07:33:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:date:x-google-sender-auth :message-id:subject:from:to:cc:content-type; bh=frEAyeKIX2oq0A7J8wo169Z+5l+PAos3TtaqbX+597U=; b=QrA/f02cQbHYwDRpH4itHhi7N3GykPplYEeiyMPs9HCSMtoc/daFT2i/QqabI9APAb FFl37DJv+GAIXDa1rYgdlZMPS03h3GjznBt5+EeEuXQqJLIhdzo1q9iGAsNj2QgbNCJy HehrwTcOXvci+4NwxeSZMI0Z1ZO0HSh9n9ezM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; b=rZb86qS/nzMWBxKtRo22Pm8fgbO6+yey+dH4fY6iyv6CwD6GfC7g/vICtDJKX2V8D+ idy+zeg/B5+QuWC35T/KVINlyr0oj7am7YOnKFwIbobOP2o5Af9HtPyNKvDGJ+H8vt99 4ekg61cKsWsgwQ3brs/6xGdsyneID2T9lnu4Q= MIME-Version: 1.0 Received: by 10.150.150.28 with SMTP id x28mr6655405ybd.239.1305038026521; Tue, 10 May 2011 07:33:46 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.150.136.8 with HTTP; Tue, 10 May 2011 07:33:46 -0700 (PDT) Date: Tue, 10 May 2011 22:33:46 +0800 X-Google-Sender-Auth: 7dnUA_6mXyCRQ5C2fFZXAt-YIYA Message-ID: From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-mobile@freebsd.org Subject: AR9285/AR2427 users - please test -HEAD 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: Tue, 10 May 2011 14:33:47 -0000 Hi all, If you're an AR9285 or AR2427 user, please try the very latest -HEAD ath driver. I've added controllable software RX diversity (which seems to be the last bit of the "weird throughput" problems) - you can select it by the very badly named txantenna sysctl. Sysctl dev.ath.0.txantenna = 0 means "enable both and do fast diversity on RX", = 1 means "favour antenna A", = 2 means "favour antenna 2." I'll figure out a better way of controlling this (likely by just overriding the RX antenna control method) in the future. This seems to have resolved all the issues I've had with the AR9285 and AR2427. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue May 10 19:31:03 2011 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B8F71065675; Tue, 10 May 2011 19:31:03 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D8DB78FC19; Tue, 10 May 2011 19:31:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4AJV25a083539; Tue, 10 May 2011 19:31:02 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4AJV2VA083530; Tue, 10 May 2011 19:31:02 GMT (envelope-from linimon) Date: Tue, 10 May 2011 19:31:02 GMT Message-Id: <201105101931.p4AJV2VA083530@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-wireless@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/156935: [ath] Atheros AR8132 connectivity problem to Gigabit switch 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: Tue, 10 May 2011 19:31:03 -0000 Old Synopsis: Atheros AR8132 connectivity problem to Gigabit switch New Synopsis: [ath] Atheros AR8132 connectivity problem to Gigabit switch Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless Responsible-Changed-By: linimon Responsible-Changed-When: Tue May 10 19:30:45 UTC 2011 Responsible-Changed-Why: reclassify. http://www.freebsd.org/cgi/query-pr.cgi?pr=156935 From owner-freebsd-wireless@FreeBSD.ORG Tue May 10 22:17:31 2011 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ABA96106564A; Tue, 10 May 2011 22:17:31 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8346F8FC0C; Tue, 10 May 2011 22:17:31 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4AMHVi7037348; Tue, 10 May 2011 22:17:31 GMT (envelope-from yongari@freefall.freebsd.org) Received: (from yongari@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4AMHVSe037344; Tue, 10 May 2011 22:17:31 GMT (envelope-from yongari) Date: Tue, 10 May 2011 22:17:31 GMT Message-Id: <201105102217.p4AMHVSe037344@freefall.freebsd.org> To: yongari@FreeBSD.org, freebsd-wireless@FreeBSD.org, yongari@FreeBSD.org From: yongari@FreeBSD.org Cc: Subject: Re: kern/156935: [alc] Atheros AR8132 connectivity problem to Gigabit switch 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: Tue, 10 May 2011 22:17:31 -0000 Old Synopsis: [ath] Atheros AR8132 connectivity problem to Gigabit switch New Synopsis: [alc] Atheros AR8132 connectivity problem to Gigabit switch Responsible-Changed-From-To: freebsd-wireless->yongari Responsible-Changed-By: yongari Responsible-Changed-When: Tue May 10 22:16:56 UTC 2011 Responsible-Changed-Why: Grab. http://www.freebsd.org/cgi/query-pr.cgi?pr=156935 From owner-freebsd-wireless@FreeBSD.ORG Wed May 11 03:40:17 2011 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD6521065672; Wed, 11 May 2011 03:40:17 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A3DFF8FC39; Wed, 11 May 2011 03:40:17 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4B3eH8Q038751; Wed, 11 May 2011 03:40:17 GMT (envelope-from adrian@freefall.freebsd.org) Received: (from adrian@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4B3eHG5038741; Wed, 11 May 2011 03:40:17 GMT (envelope-from adrian) Date: Wed, 11 May 2011 03:40:17 GMT Message-Id: <201105110340.p4B3eHG5038741@freefall.freebsd.org> To: adrian@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-wireless@FreeBSD.org From: adrian@FreeBSD.org Cc: Subject: Re: kern/156904: [ath] AR9285 antenna diversity algorithm is buggy and chooses a sub-optimal antenna 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: Wed, 11 May 2011 03:40:17 -0000 Synopsis: [ath] AR9285 antenna diversity algorithm is buggy and chooses a sub-optimal antenna Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless Responsible-Changed-By: adrian Responsible-Changed-When: Wed May 11 03:40:03 UTC 2011 Responsible-Changed-Why: Bump http://www.freebsd.org/cgi/query-pr.cgi?pr=156904 From owner-freebsd-wireless@FreeBSD.ORG Wed May 11 06:10:13 2011 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8595106566C for ; Wed, 11 May 2011 06:10:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C6AD78FC18 for ; Wed, 11 May 2011 06:10:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4B6ADIV082111 for ; Wed, 11 May 2011 06:10:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4B6ADHR082110; Wed, 11 May 2011 06:10:13 GMT (envelope-from gnats) Date: Wed, 11 May 2011 06:10:13 GMT Message-Id: <201105110610.p4B6ADHR082110@freefall.freebsd.org> To: freebsd-wireless@FreeBSD.org From: Adrian Chadd Cc: Subject: Re: kern/156904: [ath] AR9285 antenna diversity algorithm is buggy and chooses a sub-optimal antenna X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Adrian Chadd 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: Wed, 11 May 2011 06:10:13 -0000 The following reply was made to PR kern/156904; it has been noted by GNATS. From: Adrian Chadd To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/156904: [ath] AR9285 antenna diversity algorithm is buggy and chooses a sub-optimal antenna Date: Wed, 11 May 2011 14:04:20 +0800 I've disabled the diversity combining algorithm for now. HEAD works fine now without it - cards that support fast diversity simply leave it enabled by default (and the hardware does it) but without the software changing the LNA/gain table/diversity bias configuration. I think the main/alt logic is mis-classifying packets. I'll do some further digging and reimplement things before I re-enable it. Adrian