Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jul 2010 19:37:43 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        Marko Zec <zec@icir.org>
Cc:        Bjoern Zeeb <bz@freebsd.org>, current@freebsd.org
Subject:   Re: PCcard NIC insert: "Fatal trap 12: page fault while in kernel mode"
Message-ID:  <20100731023743.GJ12818@albert.catwhisker.org>
In-Reply-To: <201007310012.50975.zec@icir.org>
References:  <20100730204312.GA12818@albert.catwhisker.org> <201007310012.50975.zec@icir.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Sat, Jul 31, 2010 at 12:12:50AM +0200, Marko Zec wrote:
> ....
> VIMAGE kernels do not properly set curvnet context when dynamically attaching 
> devices (such as USB or pccard NICs), that's why the dereferencing V_if_index 
> fails.  You can use the "show pcpu" and "show vnets" DDB commands to 
> 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=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        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=0x020000 card=0xcb2114b9 chip=0x0013168c rev=0x01 hdr=0x00
    vendor     = 'Atheros Communications Inc.'
    device     = '802.11a/b/g Wireless Adapter (AR2312)'
    class      = network
    subclass   = ethernet
g1-219(9.0-C)[5] 

Peace,
david
-- 
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.

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)

iEYEARECAAYFAkxTjHcACgkQmprOCmdXAD3yawCcD0zPEwWB0e+pSpT0cylwxLM8
0a8AnA4IiYc9VO01Iy1Jos3aYQwfCPKJ
=D3xz
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100731023743.GJ12818>