From owner-freebsd-current@FreeBSD.ORG Fri Aug 20 06:56:55 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F03421065694 for ; Fri, 20 Aug 2010 06:56:54 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id ADAB78FC15 for ; Fri, 20 Aug 2010 06:56:54 +0000 (UTC) Received: by qyk4 with SMTP id 4so3091918qyk.13 for ; Thu, 19 Aug 2010 23:56:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.87.1 with SMTP id u1mr611318qal.292.1282287413814; Thu, 19 Aug 2010 23:56:53 -0700 (PDT) Received: by 10.229.25.130 with HTTP; Thu, 19 Aug 2010 23:56:53 -0700 (PDT) X-Originating-IP: [91.14.61.29] In-Reply-To: References: Date: Fri, 20 Aug 2010 08:56:53 +0200 Message-ID: From: Bernhard Schmidt To: Chris Ruiz Content-Type: multipart/mixed; boundary=00c09f8a4d8ccce85d048e3bcd34 Cc: freebsd-current Current Subject: Re: recent ath changes related panic X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2010 06:56:55 -0000 --00c09f8a4d8ccce85d048e3bcd34 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Fri, Aug 20, 2010 at 08:31, Bernhard Schmidt wr= ote: > On Fri, Aug 20, 2010 at 01:04, Chris Ruiz wrote: >> I run a PCI Atheros card in hostap mode on CURRENT. >> >> ath0@pci0:6:0:0: =A0 =A0 =A0 =A0class=3D0x020000 card=3D0x5a001385 chip= =3D0x0013168c >> rev=3D0x01 hdr=3D0x00 >> =A0 =A0vendor =A0 =A0 =3D 'Atheros Communications Inc.' >> =A0 =A0device =A0 =A0 =3D '802.11a/b/g Wireless Adapter (AR2312)' >> =A0 =A0class =A0 =A0 =A0=3D network >> =A0 =A0subclass =A0 =3D ethernet >> >> Everything works fine with r211193 but with newer kernels I receive >> the same panic related to the ath0 tasq. > > > I guess this also happens with post-r211314 kernels? Seems like I missed you wrap a few ieee80211_ratectl_node_init() calls. Please try attached patch, it should fix it. --=20 Bernhard --00c09f8a4d8ccce85d048e3bcd34 Content-Type: text/x-diff; charset=US-ASCII; name="node_init.diff" Content-Disposition: attachment; filename="node_init.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gd2ostx50 SW5kZXg6IHN5cy9uZXQ4MDIxMS9pZWVlODAyMTFfbm9kZS5jCj09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHN5cy9u ZXQ4MDIxMS9pZWVlODAyMTFfbm9kZS5jCShyZXZpc2lvbiAyMTE1MjQpCisrKyBzeXMvbmV0ODAy MTEvaWVlZTgwMjExX25vZGUuYwkod29ya2luZyBjb3B5KQpAQCAtODE3LDggKzgxNyw3IEBAIGll ZWU4MDIxMV9zdGFfam9pbihzdHJ1Y3QgaWVlZTgwMjExdmFwICp2YXAsIHN0cnVjCiAJaWYgKGll ZWU4MDIxMV9pc2VycF9yYXRlc2V0KCZuaS0+bmlfcmF0ZXMpKQogCQluaS0+bmlfZmxhZ3MgfD0g SUVFRTgwMjExX05PREVfRVJQOwogCWllZWU4MDIxMV9ub2RlX3NldHVwdHhwYXJtcyhuaSk7Ci0J aWYgKHZhcC0+aXZfY2FwcyAmIElFRUU4MDIxMV9DX1JBVEVDVEwpCi0JCWllZWU4MDIxMV9yYXRl Y3RsX25vZGVfaW5pdChuaSk7CisJaWVlZTgwMjExX3JhdGVjdGxfbm9kZV9pbml0KG5pKTsKIAog CXJldHVybiBpZWVlODAyMTFfc3RhX2pvaW4xKG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