From owner-freebsd-current@FreeBSD.ORG Sun Jan 9 22:22:30 2011 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 86308106566B for ; Sun, 9 Jan 2011 22:22:30 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id 4420F8FC19 for ; Sun, 9 Jan 2011 22:22:30 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirj.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1Pc3ef-0003TO-1I for freebsd-current@freebsd.org; Sun, 09 Jan 2011 22:22:29 +0000 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Pc3ee-00049U-TC for freebsd-current@freebsd.org; Sun, 09 Jan 2011 22:22:28 +0000 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4) with ESMTP id p09MMSpd045635 for ; Sun, 9 Jan 2011 22:22:28 GMT (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4/Submit) id p09MMS2O045634 for freebsd-current@freebsd.org; Sun, 9 Jan 2011 22:22:28 GMT (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Sun, 9 Jan 2011 22:22:28 +0000 From: Anton Shterenlikht To: freebsd-current@freebsd.org Message-ID: <20110109222228.GA45587@mech-cluster241.men.bris.ac.uk> Mail-Followup-To: freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: console freeze after "ifconfig wlan0 scan" with wi(4) pccard device 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: Sun, 09 Jan 2011 22:22:30 -0000 On amd64 r217010 laptop (HP Compaq 6715s) I'm trying to use this wi(4) device: wi0: at port 0x100-0x13f irq 20 function 0 config 1 on pccard0 I do # ifconfig wlan0 create wlandev wi0 # ifconfig -a bge0: flags=8843 metric 0 mtu 1500 options=8009b ether 00:1a:4b:89:4b:4e inet 192.168.1.102 netmask 0xffffff00 broadcast 192.168.1.255 media: Ethernet autoselect (100baseTX ) status: active lo0: flags=8049 metric 0 mtu 16384 options=3 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8 nd6 options=21 wi0: flags=8802 metric 0 mtu 2290 ether 00:06:25:10:56:3b media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier wlan0: flags=8802 metric 0 mtu 1500 ether 00:06:25:10:56:3b media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier ssid "" channel 1 (2412 MHz 11b) country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60 bintval 0 But after # ifconfig wlan0 up scan I get console freeze requiring cold reboot. No panic, just a LOR: wi0: at port 0x100-0x13f irq 20 function 0 config 1 on pccard0 wlan0: Ethernet address: 00:06:25:10:56:3b lock order reversal: 1st 0xffffff80012be018 wi0_com_lock (wi0_com_lock) @ /usr/src/sys/net80211/ieee80211_scan.c:806 2nd 0xfffffe0001b8d010 wi0 (network driver) @ /usr/src/sys/dev/wi/if_wi.c:1083 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a kdb_backtrace() at kdb_backtrace+0x37 _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x807 _mtx_lock_flags() at _mtx_lock_flags+0x79 wi_raw_xmit() at wi_raw_xmit+0x68 ieee80211_send_probereq() at ieee80211_send_probereq+0x3f7 scan_curchan() at scan_curchan+0x49 scan_task() at scan_task+0x2d5 taskqueue_run_locked() at taskqueue_run_locked+0x93 taskqueue_thread_loop() at taskqueue_thread_loop+0x3f fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff80d401ad00, rbp = 0 --- In case it matters I've hw.cbb.start_memory="0xf4800000" in /boot/loader.conf, according to http://www.freebsd.org/cgi/query-pr.cgi?pr=115623 Please advise many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423