From owner-freebsd-current@FreeBSD.ORG Sat Jul 31 02:37:45 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1E0D1065677; Sat, 31 Jul 2010 02:37:45 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (m209-73.dsl.rawbw.com [198.144.209.73]) by mx1.freebsd.org (Postfix) with ESMTP id 9808B8FC15; Sat, 31 Jul 2010 02:37:45 +0000 (UTC) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.14.4/8.14.4) with ESMTP id o6V2biIR062237; Fri, 30 Jul 2010 19:37:44 -0700 (PDT) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.14.4/8.14.4/Submit) id o6V2bh2L062236; Fri, 30 Jul 2010 19:37:43 -0700 (PDT) (envelope-from david) Date: Fri, 30 Jul 2010 19:37:43 -0700 From: David Wolfskill To: Marko Zec Message-ID: <20100731023743.GJ12818@albert.catwhisker.org> Mail-Followup-To: David Wolfskill , Marko Zec , current@freebsd.org, Bjoern Zeeb References: <20100730204312.GA12818@albert.catwhisker.org> <201007310012.50975.zec@icir.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GNsO7fNsq+j2k5eo" Content-Disposition: inline In-Reply-To: <201007310012.50975.zec@icir.org> User-Agent: Mutt/1.4.2.3i Cc: Bjoern Zeeb , current@freebsd.org Subject: Re: PCcard NIC insert: "Fatal trap 12: page fault while in kernel mode" 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: Sat, 31 Jul 2010 02:37:46 -0000 --GNsO7fNsq+j2k5eo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 31, 2010 at 12:12:50AM +0200, Marko Zec wrote: > .... > VIMAGE kernels do not properly set curvnet context when dynamically attac= hing=20 > devices (such as USB or pccard NICs), that's why the dereferencing V_if_i= ndex=20 > fails. You can use the "show pcpu" and "show vnets" DDB commands to=20 > determine whether curvnet context is properly set or not. > ... Thanks again; rebuilding kernel after removing the VIMAGE option made the difference: g1-219(9.0-C)[1] uname -a FreeBSD g1-219.catwhisker.org. 9.0-CURRENT FreeBSD 9.0-CURRENT #75 r210635:= Fri Jul 30 16:06:13 PDT 2010 root@d254.dwolf.juniper.net.:/usr/obj/usr= /src/sys/CANARY i386 g1-219(9.0-C)[2] ifconfig ath0 ath0: flags=3D8843 metric 0 mtu 2290 ether 00:40:96:a7:a7:01 media: IEEE 802.11 Wireless Ethernet autoselect mode 11b status: associated g1-219(9.0-C)[3] ifconfig wlan0 wlan0: flags=3D8843 metric 0 mtu 15= 00 ether 00:40:96:a7:a7:01 inet 172.17.1.219 netmask 0xffff0000 broadcast 172.17.255.255 media: IEEE 802.11 Wireless Ethernet DS/2Mbps mode 11b status: associated ssid lmdhw-net channel 1 (2412 MHz 11b) bssid 00:04:5a:cd:d4:17 regdomain FCC indoor ecm authmode OPEN privacy ON deftxkey 1 wepkey 1:40-bit txpower 23 bmiss 7 scanvalid 60 bgscan bgscanintvl = 300 bgscanidle 250 roam:rssi 7 roam:rate 1 wme burst g1-219(9.0-C)[4] pciconf -lv | grep -A 6 '^ath0' ath0@pci0:5:0:0: class=3D0x020000 card=3D0xcb2114b9 chip=3D0x0013168= c rev=3D0x01 hdr=3D0x00 vendor =3D 'Atheros Communications Inc.' device =3D '802.11a/b/g Wireless Adapter (AR2312)' class =3D network subclass =3D ethernet g1-219(9.0-C)[5]=20 Peace, david --=20 David H. Wolfskill david@catwhisker.org Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --GNsO7fNsq+j2k5eo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkxTjHcACgkQmprOCmdXAD3yawCcD0zPEwWB0e+pSpT0cylwxLM8 0a8AnA4IiYc9VO01Iy1Jos3aYQwfCPKJ =D3xz -----END PGP SIGNATURE----- --GNsO7fNsq+j2k5eo--