From owner-freebsd-wireless@FreeBSD.ORG Thu Dec 19 04:00:57 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BCD989A9 for ; Thu, 19 Dec 2013 04:00:57 +0000 (UTC) Received: from nm3-vm2.access.bullet.mail.bf1.yahoo.com (nm3-vm2.access.bullet.mail.bf1.yahoo.com [216.109.114.97]) by mx1.freebsd.org (Postfix) with SMTP id 759D4159B for ; Thu, 19 Dec 2013 04:00:57 +0000 (UTC) Received: from [66.196.81.161] by nm3.access.bullet.mail.bf1.yahoo.com with NNFMP; 19 Dec 2013 03:55:18 -0000 Received: from [98.139.244.49] by tm7.access.bullet.mail.bf1.yahoo.com with NNFMP; 19 Dec 2013 03:55:18 -0000 Received: from [127.0.0.1] by smtp111.sbc.mail.bf1.yahoo.com with NNFMP; 19 Dec 2013 03:55:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bellsouth.net; s=s1024; t=1387425318; bh=lDpbrU8Gfv+H+VJ45CL8kdfkJd8SSbNe32GaqsYFFTo=; h=X-Yahoo-Newman-Id:Message-ID:Date:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:From:To:CC:References:Subject; b=SzPAlDTrcqKhS3wLGrj8/RyTTehuKklnm257m67eiDpHZmmVih7GOJyPgheRglAnwmBiyfE6WP9M7a58xSnEvelt9ozJH/Oj0zYiKVmv/2pm27o9NjyjobVpfdKU32GK39NEaDRPsDd6Fs+vjRKGEI9ImvLKuBqZOQe2a0s5yt4= X-Yahoo-Newman-Id: 478349.87033.bm@smtp111.sbc.mail.bf1.yahoo.com Message-ID: <478349.87033.bm@smtp111.sbc.mail.bf1.yahoo.com> Date: Wed, 18 Dec 2013 19:55:18 -0800 (PST) X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: iLtHWu8VM1mDeWZX5G6iLnMb4rJd5nW2Uw26adHYypS9_D. P5tFgydmqcn8PfvNE1fMjDjvUpCXLYHrfEPjwhYBWSZo.Q7GzbKP.y5p03u1 .pOpgTMbLr6OFGHieshr0gImClnPJqx7OylxA1BMxI9V_hxOpxNJRhNvTJYQ qNTOt_niHTu6PW6zT7jq5rrR.ZlRUfi.lX8sSEWILUVfiQ3bzP_5HnKf35kY dBtizvTt28lmfgaPkY_qV97bgNTBRo7ave4rYoM12aPGEx0axfY2nEJfWQMV 7hEgHDcpSHTlPQJHR9PuH7Ao5kVfRCc5dwuxW9a91aTFwT4ocU2F8y169t7T 7m_R5yI3csBZS_sms.ScmOG7IDuB7RU8ibuUWhZuaF6TFW.1jMQVNOoNWnfJ Z7PZlxioe0L4TZl1PtX9jpTpUZe.do4UenMQKc.2OmeG.Mt9Y3_Jx6Vaw7UN 8ps9hffxztmyokJrfImQR9p__eRcCzj.6F1dB5hFxBNG6GzkYIjlDszWIkSr YLiCfEYfTCFvmzCECvQJoSEdI_Yet.ny8QDmSlrpfXbZoyTIIyIENk4Cqb3h z93hdVr8aP2pUCELaO_w- X-Yahoo-SMTP: Kz_aW1.swBBYof3zAD7.RWzXz9ZAQVDMml1VADsbgPT4Kq79LC0- X-Rocket-Received: from localhost (mueller6724@96.28.178.143 with plain [98.139.221.42]) by smtp111.sbc.mail.bf1.yahoo.com with SMTP; 18 Dec 2013 19:55:18 -0800 PST From: "Thomas Mueller" To: freebsd-wireless@freebsd.org References: <597989.6329.bm@smtp118.sbc.mail.bf1.yahoo.com> <610753.22725.bm@smtp119.sbc.mail.ne1.yahoo.com> Subject: Re: Atheros 9271 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.17 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: Thu, 19 Dec 2013 04:00:57 -0000 from Adrian Chadd: > I just don't want to be on the hook for supporting the USB side of things. > I've been slowly writing an AR9170 USB driver. I am still having > issues getting all of the USB stuff stable and bulletproof. The > existing USB drivers for wifi aren't really paragons of virtue from a > driver perspective. I understand what you mean, considering console messages I get, copied to /var/log/messages, and in one case on 10-stable amd64, a kernel crash. Evidence is not conclusive on rsu(0) being responsible. Considering that re(4) does not connect on MSI Z77 MPOWER motherboard and leaves memory in an unstable state, it may be best to go to loader prompt when booting and set hint.re.0.disabled="1" get that out of the way. Without that precaution, messages leading to crash, from /var/log/messages (times in UTC): Dec 16 07:01:27 amelia4 dhclient[3219]: send_packet: Invalid argument Dec 16 07:01:27 amelia4 kernel: wlan0: link state changed to UP Dec 16 07:01:27 amelia4 dhclient[3219]: send_packet: No buffer space available Dec 16 07:01:27 amelia4 devd: Executing '/etc/rc.d/dhclient quietstart wlan0' Dec 16 07:01:31 amelia4 dhclient: New IP Address (wlan0): 192.168.0.101 Dec 16 07:01:31 amelia4 dhclient: New Subnet Mask (wlan0): 255.255.255.0 Dec 16 07:01:31 amelia4 dhclient: New Broadcast Address (wlan0): 192.168.0.255 Dec 16 07:01:31 amelia4 dhclient: New Routers (wlan0): 192.168.0.1 Dec 16 07:02:29 amelia4 dhclient: New IP Address (wlan0): 192.168.0.101 Dec 16 07:02:29 amelia4 dhclient: New Subnet Mask (wlan0): 255.255.255.0 Dec 16 07:02:29 amelia4 dhclient: New Broadcast Address (wlan0): 192.168.0.255 Dec 16 07:02:29 amelia4 dhclient: New Routers (wlan0): 192.168.0.1 Dec 16 07:02:30 amelia4 dhclient: New Routers (wlan0): 192.168.0.1 Dec 16 07:06:40 amelia4 kernel: wlan0: link state changed to DOWN Dec 16 07:06:43 amelia4 kernel: wlan0: link state changed to UP Dec 16 07:06:43 amelia4 dhclient[3219]: send_packet: No buffer space available Dec 16 07:06:43 amelia4 devd: Executing '/etc/rc.d/dhclient quietstart wlan0' Dec 16 07:07:20 amelia4 kernel: wlan0: link state changed to DOWN Dec 16 07:07:20 amelia4 kernel: wlan0: link state changed to UP Dec 16 07:07:20 amelia4 dhclient[3219]: send_packet: No buffer space available Dec 16 07:07:20 amelia4 devd: Executing '/etc/rc.d/dhclient quietstart wlan0' Dec 16 07:07:22 amelia4 dhclient[3219]: send_packet: No buffer space available Dec 16 07:08:26 amelia4 kernel: wlan0: link state changed to DOWN Dec 16 07:08:29 amelia4 kernel: wlan0: link state changed to UP Dec 16 07:08:29 amelia4 dhclient[3219]: send_packet: No buffer space available Dec 16 07:08:29 amelia4 devd: Executing '/etc/rc.d/dhclient quietstart wlan0' Dec 16 07:08:47 amelia4 kernel: wlan0: link state changed to DOWN Dec 16 07:08:48 amelia4 dhclient[3219]: send_packet: Invalid argument Dec 16 07:08:56 amelia4 dhclient[3219]: send_packet: Network is down Dec 16 07:08:58 amelia4 kernel: wlan0: link state changed to UP Dec 16 07:08:58 amelia4 dhclient[3219]: send_packet: No buffer space available Dec 16 07:08:58 amelia4 devd: Executing '/etc/rc.d/dhclient quietstart wlan0' Dec 16 07:09:35 amelia4 kernel: wlan0: link state changed to DOWN Dec 16 07:09:38 amelia4 kernel: wlan0: link state changed to UP Dec 16 07:09:38 amelia4 dhclient[3219]: send_packet: No buffer space available Dec 16 07:09:38 amelia4 devd: Executing '/etc/rc.d/dhclient quietstart wlan0' Dec 16 07:09:47 amelia4 kernel: wlan0: link state changed to DOWN Dec 16 07:09:56 amelia4 dhclient[3219]: send_packet: Invalid argument Dec 16 07:09:59 amelia4 dhclient[3219]: send_packet: Network is down Dec 16 07:10:04 amelia4 kernel: Kernel page fault with the following non-sleepable locks held: Dec 16 07:10:04 amelia4 kernel: exclusive sleep mutex rsu0 (network driver) r = 0 (0xfffffe0003298140) locked @ /usr/src/sys/dev/usb/usb_transfer.c:2184 Dec 16 07:10:04 amelia4 kernel: KDB: stack backtrace: Dec 16 07:10:04 amelia4 kernel: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe07c2748440 Dec 16 07:10:04 amelia4 kernel: kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe07c27484f0 Dec 16 07:10:04 amelia4 kernel: witness_warn() at witness_warn+0x4a8/frame 0xfffffe07c27485b0 Dec 16 07:10:04 amelia4 kernel: trap_pfault() at trap_pfault+0x5a/frame 0xfffffe07c2748650 Dec 16 07:10:04 amelia4 kernel: trap() at trap+0x670/frame 0xfffffe07c2748870 Dec 16 07:10:04 amelia4 kernel: calltrap() at calltrap+0x8/frame 0xfffffe07c2748870 Dec 16 07:10:04 amelia4 kernel: --- trap 0xc, rip = 0xffffffff80700348, rsp = 0xfffffe07c2748930, rbp = 0xfffffe07c2748950 --- Dec 16 07:10:04 amelia4 kernel: ieee80211_tx_mgt_cb() at ieee80211_tx_mgt_cb+0x8/frame 0xfffffe07c2748950 Dec 16 07:10:04 amelia4 kernel: rsu_bulk_tx_callback() at rsu_bulk_tx_callback+0x107/frame 0xfffffe07c27489a0 Dec 16 07:10:04 amelia4 kernel: usbd_callback_wrapper() at usbd_callback_wrapper+0x5e4/frame 0xfffffe07c2748a00 Dec 16 07:10:04 amelia4 kernel: usb_command_wrapper() at usb_command_wrapper+0x143/frame 0xfffffe07c2748a20 Dec 16 07:10:04 amelia4 kernel: usb_callback_proc() at usb_callback_proc+0x76/frame 0xfffffe07c2748a40 Dec 16 07:10:04 amelia4 kernel: usb_process() at usb_process+0x10f/frame 0xfffffe07c2748a70 Dec 16 07:10:04 amelia4 kernel: fork_exit() at fork_exit+0x84/frame 0xfffffe07c2748ab0 Dec 16 07:10:04 amelia4 kernel: fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe07c2748ab0 Dec 16 07:10:04 amelia4 kernel: --- trap 0, rip = 0, rsp = 0xfffffe07c2748b70, rbp = 0 --- Dec 16 07:10:04 amelia4 kernel: Dec 16 07:10:04 amelia4 kernel: Dec 16 07:10:04 amelia4 kernel: Fatal trap 12: page fault while in kernel mode Dec 16 07:10:04 amelia4 kernel: cpuid = 4; apic id = 04 Dec 16 07:10:04 amelia4 kernel: fault virtual address = 0x0 Dec 16 07:10:04 amelia4 kernel: fault code = supervisor read data, page not present Dec 16 07:10:04 amelia4 kernel: instruction pointer = 0x20:0xffffffff80700348 Dec 16 07:10:04 amelia4 kernel: stack pointer = 0x28:0xfffffe07c2748930 Dec 16 07:10:04 amelia4 kernel: frame pointer = 0x28:0xfffffe07c2748950 Dec 16 07:10:04 amelia4 kernel: code segment = base 0x0, limit 0xfffff, type 0x1b Dec 16 07:10:04 amelia4 kernel: = DPL 0, pres 1, long 1, def32 0, gran 1 Dec 16 07:10:04 amelia4 kernel: processor eflags = interrupt enabled, resume, IOPL = 0 Dec 16 07:10:04 amelia4 kernel: current process = 20 (usbus1) Dec 16 07:10:04 amelia4 kernel: Kernel page fault with the following non-sleepable locks held: Dec 16 07:10:04 amelia4 kernel: exclusive sleep mutex rsu0 (network driver) r = 0 (0xfffffe0003298140) locked @ /usr/src/sys/dev/usb/usb_transfer.c:2184 Dec 16 07:10:04 amelia4 kernel: KDB: stack backtrace: Dec 16 07:10:04 amelia4 kernel: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe07c2748440 Dec 16 07:10:04 amelia4 kernel: kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe07c27484f0 Dec 16 07:10:04 amelia4 kernel: witness_warn() at witness_warn+0x4a8/frame 0xfffffe07c27485b0 Dec 16 07:10:04 amelia4 kernel: trap_pfault() at trap_pfault+0x5a/frame 0xfffffe07c2748650 Dec 16 07:10:04 amelia4 kernel: trap() at trap+0x670/frame 0xfffffe07c2748870 Dec 16 07:10:04 amelia4 kernel: calltrap() at calltrap+0x8/frame 0xfffffe07c2748870 Dec 16 07:10:04 amelia4 kernel: --- trap 0xc, rip = 0xffffffff80700348, rsp = 0xfffffe07c2748930, rbp = 0xfffffe07c2748950 --- Dec 16 07:10:04 amelia4 kernel: ieee80211_tx_mgt_cb() at ieee80211_tx_mgt_cb+0x8/frame 0xfffffe07c2748950 Dec 16 07:10:04 amelia4 kernel: rsu_bulk_tx_callback() at rsu_bulk_tx_callback+0x107/frame 0xfffffe07c27489a0 Dec 16 07:10:04 amelia4 kernel: usbd_callback_wrapper() at usbd_callback_wrapper+0x5e4/frame 0xfffffe07c2748a00 Dec 16 07:10:04 amelia4 kernel: usb_command_wrapper() at usb_command_wrapper+0x143/frame 0xfffffe07c2748a20 Dec 16 07:10:04 amelia4 kernel: usb_callback_proc() at usb_callback_proc+0x76/frame 0xfffffe07c2748a40 Dec 16 07:10:04 amelia4 kernel: usb_process() at usb_process+0x10f/frame 0xfffffe07c2748a70 Dec 16 07:10:04 amelia4 kernel: fork_exit() at fork_exit+0x84/frame 0xfffffe07c2748ab0 Dec 16 07:10:04 amelia4 kernel: fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe07c2748ab0 Dec 16 07:10:04 amelia4 kernel: --- trap 0, rip = 0, rsp = 0xfffffe07c2748b70, rbp = 0 --- Dec 16 07:10:04 amelia4 kernel: Dec 16 07:10:04 amelia4 kernel: Dec 16 07:10:04 amelia4 kernel: Fatal trap 12: page fault while in kernel mode Dec 16 07:10:04 amelia4 kernel: cpuid = 4; apic id = 04 Dec 16 07:10:04 amelia4 kernel: fault virtual address = 0x0 Dec 16 07:10:04 amelia4 kernel: fault code = supervisor read data, page not present Dec 16 07:10:04 amelia4 kernel: instruction pointer = 0x20:0xffffffff80700348 Dec 16 07:10:04 amelia4 kernel: stack pointer = 0x28:0xfffffe07c2748930 Dec 16 07:10:04 amelia4 kernel: frame pointer = 0x28:0xfffffe07c2748950 Dec 16 07:10:04 amelia4 kernel: code segment = base 0x0, limit 0xfffff, type 0x1b Dec 16 07:10:04 amelia4 kernel: = DPL 0, pres 1, long 1, def32 0, gran 1 Dec 16 07:10:04 amelia4 kernel: processor eflags = interrupt enabled, resume, IOPL = 0 Please, anybody who responds to this message, don't quote this log, I already have it! Tom