Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:42360 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756584Ab0JZHJk convert rfc822-to-8bit (ORCPT ); Tue, 26 Oct 2010 03:09:40 -0400 MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 26 Oct 2010 12:39:38 +0530 Message-ID: Subject: Re: ath9k crashing the kernel From: Jaswinder Singh To: Linux Kernel Mailing List , linux-wireless , netdev , ath9k-devel@lists.ath9k.org, Linus Torvalds , shafi.wireless@gmail.com, Felix Fietkau , "John W. Linville" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hello, On Tue, Oct 26, 2010 at 10:36 AM, Jaswinder Singh wrote: > > ath9k is crashing the kernel : > > [ ? 21.276554] BUG: spinlock bad magic on CPU#1, NetworkManager/1056 > [ ? 21.277015] ?lock: f5be80a8, .magic: 00000000, .owner: /-1, > .owner_cpu: 0 > [ ? 21.277015] Pid: 1056, comm: NetworkManager Not tainted 2.6.36-netbook+ #20 > [ ? 21.277015] Call Trace: > [ ? 21.277015] ?[] ? printk+0xf/0x11 > [ ? 21.277015] ?[] spin_bug+0x7c/0x87 > [ ? 21.301365] ?[] do_raw_spin_lock+0x1e/0x125 > [ ? 21.301365] ?[] ? _raw_spin_unlock_bh+0x1a/0x1c > [ ? 21.301365] ?[] _raw_spin_lock_irqsave+0x17/0x1c > [ ? 21.318857] ?[] ath9k_config+0x255/0x38b > [ ? 21.318857] ?[] ieee80211_hw_config+0x10a/0x114 > [ ? 21.328034] ?[] ieee80211_do_open+0x3de/0x4cf > [ ? 21.328034] ?[] ? ieee80211_check_concurrent_iface+0x21/0x13a > [ ? 21.328034] ?[] ? raw_notifier_call_chain+0xc/0xe > [ ? 21.328034] ?[] ieee80211_open+0x5b/0x5e > [ ? 21.328034] ?[] __dev_open+0x80/0xa9 > [ ? 21.328034] ?[] __dev_change_flags+0xa1/0x116 > [ ? 21.328034] ?[] dev_change_flags+0x13/0x3f > [ ? 21.328034] ?[] do_setlink+0x226/0x507 > [ ? 21.328034] ?[] rtnl_setlink+0xce/0xd4 > [ ? 21.328034] ?[] ? copy_to_user+0x3a/0x118 > [ ? 21.328034] ?[] ? rtnl_setlink+0x0/0xd4 > [ ? 21.328034] ?[] rtnetlink_rcv_msg+0x17e/0x194 > [ ? 21.328034] ?[] ? rtnetlink_rcv_msg+0x0/0x194 > [ ? 21.328034] ?[] netlink_rcv_skb+0x30/0x76 > [ ? 21.328034] ?[] rtnetlink_rcv+0x1b/0x22 > [ ? 21.328034] ?[] netlink_unicast+0x1aa/0x20b > [ ? 21.328034] ?[] netlink_sendmsg+0x22c/0x27a > [ ? 21.328034] ?[] sock_sendmsg+0xa5/0xbb > [ ? 21.328034] ?[] ? sock_sendmsg+0xa5/0xbb > [ ? 21.328034] ?[] ? verify_iovec+0x3e/0x6b > [ ? 21.328034] ?[] sys_sendmsg+0x149/0x196 > [ ? 21.328034] ?[] ? unlock_page+0x40/0x43 > [ ? 21.328034] ?[] ? __do_fault+0x367/0x393 > [ ? 21.328034] ?[] ? handle_mm_fault+0x3bd/0x77a > [ ? 21.328034] ?[] ? destroy_inode+0x1f/0x30 > [ ? 21.328034] ?[] ? sys_recvmsg+0x2b/0x46 > [ ? 21.328034] ?[] sys_socketcall+0x146/0x18b > [ ? 21.328034] ?[] sysenter_do_call+0x12/0x26 > [ ? 21.344846] ADDRCONF(NETDEV_UP): wlan0: link is not ready > [ ? 21.487994] atl1c 0000:03:00.0: irq 42 for MSI/MSI-X > [ ? 21.543870] ADDRCONF(NETDEV_UP): eth0: link is not ready > > > Linux 2.6.36 f6f94e2ab1 is good > and > 229aebb873e2972 is bad > After further investigation bad commit is : 3430098ae463e31ab16926ac3eb295368a3ca5d9 is the first bad commit commit 3430098ae463e31ab16926ac3eb295368a3ca5d9 Author: Felix Fietkau Date: Sun Oct 10 18:21:52 2010 +0200 ath9k: implement channel utilization stats for survey Results for the active channel are updated whenever a new survey dump is requested, the old data is kept to allow multiple processes to make their own channel utilization averages. All other channels only contain the data for the last time that the hardware was on the channel, i.e. the last scan result or other off-channel activity. Running a background scan does not clear the data for the active channel. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville Thanks, -- Jaswinder Singh. > I am trying to bisect it but I am getting compilation error : > > ?LD ? ? ?.tmp_vmlinux1 > drivers/built-in.o: In function `ath_do_set_opmode': > /home/jaswinder/jaswinder-git/linux-2.6/drivers/net/wireless/ath/ath5k/base.c:567: > undefined reference to `ath_opmode_to_string' > /home/jaswinder/jaswinder-git/linux-2.6/drivers/net/wireless/ath/ath5k/base.c:568: > undefined reference to `ath_opmode_to_string' > make: *** [.tmp_vmlinux1] Error 1 > [jaswinder@ linux-2.6]$ >