Re: recent ath changes related panic

2010-08-21 Thread Bernhard Schmidt
On Fri, Aug 20, 2010 at 22:51, Chris Ruiz yr.retar...@gmail.com wrote:
 On Fri, Aug 20, 2010 at 1:56 AM, Bernhard Schmidt
 bschm...@techwires.net wrote:
 On Fri, Aug 20, 2010 at 08:31, Bernhard Schmidt bschm...@techwires.net 
 wrote:
 On Fri, Aug 20, 2010 at 01:04, Chris Ruiz yr.retar...@gmail.com wrote:
 I run a PCI Atheros card in hostap mode on CURRENT.

 a...@pci0:6:0:0:        class=0x02 card=0x5a001385 chip=0x0013168c
 rev=0x01 hdr=0x00
    vendor     = 'Atheros Communications Inc.'
    device     = '802.11a/b/g Wireless Adapter (AR2312)'
    class      = network
    subclass   = 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()

s,you,to, of course.

 calls. Please try attached patch, it should fix it.

 Thanks!  My system no longer panics at the login prompt.

Committed, thanks.


-- 
Bernhard
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: recent ath changes related panic

2010-08-20 Thread Bernhard Schmidt
On Fri, Aug 20, 2010 at 08:31, Bernhard Schmidt bschm...@techwires.net wrote:
 On Fri, Aug 20, 2010 at 01:04, Chris Ruiz yr.retar...@gmail.com wrote:
 I run a PCI Atheros card in hostap mode on CURRENT.

 a...@pci0:6:0:0:        class=0x02 card=0x5a001385 chip=0x0013168c
 rev=0x01 hdr=0x00
    vendor     = 'Atheros Communications Inc.'
    device     = '802.11a/b/g Wireless Adapter (AR2312)'
    class      = network
    subclass   = 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.


-- 
Bernhard
Index: sys/net80211/ieee80211_node.c
===
--- sys/net80211/ieee80211_node.c	(revision 211524)
+++ sys/net80211/ieee80211_node.c	(working copy)
@@ -817,8 +817,7 @@ ieee80211_sta_join(struct ieee80211vap *vap, struc
 	if (ieee80211_iserp_rateset(ni-ni_rates))
 		ni-ni_flags |= IEEE80211_NODE_ERP;
 	ieee80211_node_setuptxparms(ni);
-	if (vap-iv_caps  IEEE80211_C_RATECTL)
-		ieee80211_ratectl_node_init(ni);
+	ieee80211_ratectl_node_init(ni);
 
 	return ieee80211_sta_join1(ieee80211_ref_node(ni));
 }
Index: sys/net80211/ieee80211_sta.c
===
--- sys/net80211/ieee80211_sta.c	(revision 211524)
+++ sys/net80211/ieee80211_sta.c	(working copy)
@@ -1597,8 +1597,7 @@ sta_recv_mgmt(struct ieee80211_node *ni, struct mb
 			 IEEE80211_F_JOIN | IEEE80211_F_DOBRS);
 			ieee80211_setup_basic_htrates(ni, htinfo);
 			ieee80211_node_setuptxparms(ni);
-			if (vap-iv_caps  IEEE80211_C_RATECTL)
-ieee80211_ratectl_node_init(ni);
+			ieee80211_ratectl_node_init(ni);
 		} else {
 #ifdef IEEE80211_SUPPORT_SUPERG
 			if (IEEE80211_ATH_CAP(vap, ni, IEEE80211_NODE_ATH))
Index: sys/net80211/ieee80211_ratectl.h
===
--- sys/net80211/ieee80211_ratectl.h	(revision 211524)
+++ sys/net80211/ieee80211_ratectl.h	(working copy)
@@ -77,7 +77,8 @@ ieee80211_ratectl_node_init(struct ieee80211_node
 {
 	const struct ieee80211vap *vap = ni-ni_vap;
 
-	vap-iv_rate-ir_node_init(ni);
+	if (vap-iv_caps  IEEE80211_C_RATECTL)
+		vap-iv_rate-ir_node_init(ni);
 }
 
 static void __inline
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: recent ath changes related panic

2010-08-20 Thread Bernhard Schmidt
On Fri, Aug 20, 2010 at 01:04, Chris Ruiz yr.retar...@gmail.com wrote:
 I run a PCI Atheros card in hostap mode on CURRENT.

 a...@pci0:6:0:0:        class=0x02 card=0x5a001385 chip=0x0013168c
 rev=0x01 hdr=0x00
    vendor     = 'Atheros Communications Inc.'
    device     = '802.11a/b/g Wireless Adapter (AR2312)'
    class      = network
    subclass   = 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?


 the panic -
 http://tinypic.com/r/11t3g39/4

 the backtrace -
 http://tinypic.com/r/nv4786/4

 Sorry about the pics,  I don't have access to serial or dcons.

 -- Chris Ruiz

 -
 http://twitter.com/chrisattack
 http://chrisattack.com
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org




-- 
Bernhard
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: recent ath changes related panic

2010-08-20 Thread Chris Ruiz
On Fri, Aug 20, 2010 at 1:56 AM, Bernhard Schmidt
bschm...@techwires.net wrote:
 On Fri, Aug 20, 2010 at 08:31, Bernhard Schmidt bschm...@techwires.net 
 wrote:
 On Fri, Aug 20, 2010 at 01:04, Chris Ruiz yr.retar...@gmail.com wrote:
 I run a PCI Atheros card in hostap mode on CURRENT.

 a...@pci0:6:0:0:        class=0x02 card=0x5a001385 chip=0x0013168c
 rev=0x01 hdr=0x00
    vendor     = 'Atheros Communications Inc.'
    device     = '802.11a/b/g Wireless Adapter (AR2312)'
    class      = network
    subclass   = 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.

Thanks!  My system no longer panics at the login prompt.


-- Chris

-
http://twitter.com/chrisattack
http://chrisattack.com
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org