Panic while unloadking if_ndis
Samuel Stringham
me at samuelstringham.com
Mon Jul 19 09:52:33 PDT 2004
Long time troller, first time poster.
I have a LinkSYS DWL 520+ wireless B PCI card. This is the card with the
Broadcom chipset, rather than the earlier 520s with the prism2 chipset. I am
pretty sure it is supposed to use the if_ndis driver. However, I am unable to
get the driver to work correctly. Upon loading the module, it does not attatch
ndis0 to the pci card (I found this by looking at pciconf -lv). I can load and
unload the module with no problems. However, if I run 'ifconfig ndis0', it
says something along the lines of:
ifconfig: interface ndis0 does not exist
If I then run 'kldunload if_ndis' I get the following panic:
Fatal trap 10: page fault while in kernel mode
fault virtual address = 0xc29f90e1
fault code = supervisor read, page not present
instruction pointer = 0x8:0xc29f90e1
stack pointer = 0x10:0xe2ea1d0c
frame pointer = 0x10:0xe2ea1d1c
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 801 (ndis swi)
trap number = 12
panic: page fault
syncing disks . . . etc.
Please excuse any typing mistakes, but I had to fat-finger the above. The
error is replicable on my machine. Attached is a transcript of my loading the
module, and looking at pciconf. Also in there is my full dmesg to aid in
finding the possible problem. My ndis_driver_data.h was generated with the
ndiscvt from -CURRENT as of 1900 CDT yesterday. In fact everything (world and
kernel) were both built from the -CURRENT as of 1900 yesterday. The files
used for my ndiscvt were WMP11NDS.[sys|inf].
Please help me get this wonderful ndis-based card working correctly.
Best regards,
Samuel Stringham
-------------- next part --------------
Script started on Sun Jul 18 21:15:53 2004
[31m[root: root]#[00m kldstat
Id Refs Address Size Name
1 7 0xc0400000 5acb28 kernel
2 1 0xc09ad000 1b378 linux.ko
3 14 0xc09c9000 50d74 acpi.ko
[31m[root: root]#[00m pciconfi -lv
agp0 at pci0:0:0: class=0x060000 card=0x00000000 chip=0x07301039 rev=0x02 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS 730 Host-to-PCI Bridge'
class = bridge
subclass = HOST-PCI
atapci0 at pci0:0:1: class=0x010180 card=0x55131039 chip=0x55131039 rev=0xd0 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS5513 EIDE Controller (A,B step)'
class = mass storage
subclass = ATA
isab0 at pci0:1:0: class=0x060100 card=0x00000000 chip=0x00081039 rev=0x00 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS PCI to ISA Bridge (LPC Bridge)'
class = bridge
subclass = PCI-ISA
sis0 at pci0:1:1: class=0x020000 card=0x09001039 chip=0x09001039 rev=0x82 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS900 Fast Ethernet/Home Networking Ctrlr'
class = network
subclass = ethernet
ohci0 at pci0:1:2: class=0x0c0310 card=0x70011039 chip=0x70011039 rev=0x07 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS5597/8 Universal Serial Bus Controller'
class = serial bus
subclass = USB
ohci1 at pci0:1:3: class=0x0c0310 card=0x70001039 chip=0x70011039 rev=0x07 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS5597/8 Universal Serial Bus Controller'
class = serial bus
subclass = USB
pcm0 at pci0:1:4: class=0x040100 card=0x70181039 chip=0x70181039 rev=0x02 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS7018 PCI Audio Accelerator'
class = multimedia
subclass = audio
pcib1 at pci0:2:0: class=0x060400 card=0x00000000 chip=0x00011039 rev=0x00 hdr=0x01
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS 530 Virtual PCI-to-PCI bridge (AGP)'
class = bridge
subclass = PCI-PCI
none0 at pci0:9:0: class=0x020000 card=0x00201737 chip=0x212017fe rev=0x00 hdr=0x00
vendor = 'InProComm Inc'
class = network
subclass = ethernet
none1 at pci0:11:0: class=0x040000 card=0x00031002 chip=0x036e109e rev=0x11 hdr=0x00
vendor = 'Brooktree Corporation'
device = 'Bt878 MediaStream Controller'
class = multimedia
subclass = video
none2 at pci0:11:1: class=0x048000 card=0x00031002 chip=0x0878109e rev=0x11 hdr=0x00
vendor = 'Brooktree Corporation'
device = 'Bt878/Fusion878A Video Capture (Audio Section)'
class = multimedia
none3 at pci1:0:0: class=0x030000 card=0x7161174b chip=0x51571002 rev=0x00 hdr=0x00
vendor = 'ATI Technologies Inc.'
device = 'Radeon 7500 Series (RV200)'
class = display
subclass = VGA
[31m[root: root]#[00m kldload /boot/kernel/if_ndis.ko
[31m[root: root]#[00m [Kkldstat
Id Refs Address Size Name
1 12 0xc0400000 5acb28 kernel
2 1 0xc09ad000 1b378 linux.ko
3 14 0xc09c9000 50d74 acpi.ko
4 1 0xc291d000 1a000 if_ndis.ko
5 1 0xc2937000 d000 ndis.ko
[31m[root: root]#[00m pciconf f -v lv
agp0 at pci0:0:0: class=0x060000 card=0x00000000 chip=0x07301039 rev=0x02 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS 730 Host-to-PCI Bridge'
class = bridge
subclass = HOST-PCI
atapci0 at pci0:0:1: class=0x010180 card=0x55131039 chip=0x55131039 rev=0xd0 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS5513 EIDE Controller (A,B step)'
class = mass storage
subclass = ATA
isab0 at pci0:1:0: class=0x060100 card=0x00000000 chip=0x00081039 rev=0x00 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS PCI to ISA Bridge (LPC Bridge)'
class = bridge
subclass = PCI-ISA
sis0 at pci0:1:1: class=0x020000 card=0x09001039 chip=0x09001039 rev=0x82 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS900 Fast Ethernet/Home Networking Ctrlr'
class = network
subclass = ethernet
ohci0 at pci0:1:2: class=0x0c0310 card=0x70011039 chip=0x70011039 rev=0x07 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS5597/8 Universal Serial Bus Controller'
class = serial bus
subclass = USB
ohci1 at pci0:1:3: class=0x0c0310 card=0x70001039 chip=0x70011039 rev=0x07 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS5597/8 Universal Serial Bus Controller'
class = serial bus
subclass = USB
pcm0 at pci0:1:4: class=0x040100 card=0x70181039 chip=0x70181039 rev=0x02 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS7018 PCI Audio Accelerator'
class = multimedia
subclass = audio
pcib1 at pci0:2:0: class=0x060400 card=0x00000000 chip=0x00011039 rev=0x00 hdr=0x01
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS 530 Virtual PCI-to-PCI bridge (AGP)'
class = bridge
subclass = PCI-PCI
none0 at pci0:9:0: class=0x020000 card=0x00201737 chip=0x212017fe rev=0x00 hdr=0x00
vendor = 'InProComm Inc'
class = network
subclass = ethernet
none1 at pci0:11:0: class=0x040000 card=0x00031002 chip=0x036e109e rev=0x11 hdr=0x00
vendor = 'Brooktree Corporation'
device = 'Bt878 MediaStream Controller'
class = multimedia
subclass = video
none2 at pci0:11:1: class=0x048000 card=0x00031002 chip=0x0878109e rev=0x11 hdr=0x00
vendor = 'Brooktree Corporation'
device = 'Bt878/Fusion878A Video Capture (Audio Section)'
class = multimedia
none3 at pci1:0:0: class=0x030000 card=0x7161174b chip=0x51571002 rev=0x00 hdr=0x00
vendor = 'ATI Technologies Inc.'
device = 'Radeon 7500 Series (RV200)'
class = display
subclass = VGA
[31m[root: root]#[00m pciconf -lv[4Pkldstatpciconf -lv[Kkldunload if_ndis
[31m[root: root]#[00m [Kkldstat
Id Refs Address Size Name
1 7 0xc0400000 5acb28 kernel
2 1 0xc09ad000 1b378 linux.ko
3 14 0xc09c9000 50d74 acpi.ko
[31m[root: root]#[00m pciconf -lv
agp0 at pci0:0:0: class=0x060000 card=0x00000000 chip=0x07301039 rev=0x02 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS 730 Host-to-PCI Bridge'
class = bridge
subclass = HOST-PCI
atapci0 at pci0:0:1: class=0x010180 card=0x55131039 chip=0x55131039 rev=0xd0 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS5513 EIDE Controller (A,B step)'
class = mass storage
subclass = ATA
isab0 at pci0:1:0: class=0x060100 card=0x00000000 chip=0x00081039 rev=0x00 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS PCI to ISA Bridge (LPC Bridge)'
class = bridge
subclass = PCI-ISA
sis0 at pci0:1:1: class=0x020000 card=0x09001039 chip=0x09001039 rev=0x82 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS900 Fast Ethernet/Home Networking Ctrlr'
class = network
subclass = ethernet
ohci0 at pci0:1:2: class=0x0c0310 card=0x70011039 chip=0x70011039 rev=0x07 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS5597/8 Universal Serial Bus Controller'
class = serial bus
subclass = USB
ohci1 at pci0:1:3: class=0x0c0310 card=0x70001039 chip=0x70011039 rev=0x07 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS5597/8 Universal Serial Bus Controller'
class = serial bus
subclass = USB
pcm0 at pci0:1:4: class=0x040100 card=0x70181039 chip=0x70181039 rev=0x02 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS7018 PCI Audio Accelerator'
class = multimedia
subclass = audio
pcib1 at pci0:2:0: class=0x060400 card=0x00000000 chip=0x00011039 rev=0x00 hdr=0x01
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS 530 Virtual PCI-to-PCI bridge (AGP)'
class = bridge
subclass = PCI-PCI
none0 at pci0:9:0: class=0x020000 card=0x00201737 chip=0x212017fe rev=0x00 hdr=0x00
vendor = 'InProComm Inc'
class = network
subclass = ethernet
none1 at pci0:11:0: class=0x040000 card=0x00031002 chip=0x036e109e rev=0x11 hdr=0x00
vendor = 'Brooktree Corporation'
device = 'Bt878 MediaStream Controller'
class = multimedia
subclass = video
none2 at pci0:11:1: class=0x048000 card=0x00031002 chip=0x0878109e rev=0x11 hdr=0x00
vendor = 'Brooktree Corporation'
device = 'Bt878/Fusion878A Video Capture (Audio Section)'
class = multimedia
none3 at pci1:0:0: class=0x030000 card=0x7161174b chip=0x51571002 rev=0x00 hdr=0x00
vendor = 'ATI Technologies Inc.'
device = 'Radeon 7500 Series (RV200)'
class = display
subclass = VGA
[31m[root: root]#[00m kldload if_ndis. /boot/kernel/if_ndis.ko
[31m[root: root]#[00m [Kkldstat
Id Refs Address Size Name
1 12 0xc0400000 5acb28 kernel
2 1 0xc09ad000 1b378 linux.ko
3 14 0xc09c9000 50d74 acpi.ko
5 1 0xc291d000 1a000 if_ndis.ko
6 1 0xc2937000 d000 ndis.ko
[31m[root: root]#[00m pcif conf -lv
agp0 at pci0:0:0: class=0x060000 card=0x00000000 chip=0x07301039 rev=0x02 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS 730 Host-to-PCI Bridge'
class = bridge
subclass = HOST-PCI
atapci0 at pci0:0:1: class=0x010180 card=0x55131039 chip=0x55131039 rev=0xd0 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS5513 EIDE Controller (A,B step)'
class = mass storage
subclass = ATA
isab0 at pci0:1:0: class=0x060100 card=0x00000000 chip=0x00081039 rev=0x00 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS PCI to ISA Bridge (LPC Bridge)'
class = bridge
subclass = PCI-ISA
sis0 at pci0:1:1: class=0x020000 card=0x09001039 chip=0x09001039 rev=0x82 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS900 Fast Ethernet/Home Networking Ctrlr'
class = network
subclass = ethernet
ohci0 at pci0:1:2: class=0x0c0310 card=0x70011039 chip=0x70011039 rev=0x07 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS5597/8 Universal Serial Bus Controller'
class = serial bus
subclass = USB
ohci1 at pci0:1:3: class=0x0c0310 card=0x70001039 chip=0x70011039 rev=0x07 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS5597/8 Universal Serial Bus Controller'
class = serial bus
subclass = USB
pcm0 at pci0:1:4: class=0x040100 card=0x70181039 chip=0x70181039 rev=0x02 hdr=0x00
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS7018 PCI Audio Accelerator'
class = multimedia
subclass = audio
pcib1 at pci0:2:0: class=0x060400 card=0x00000000 chip=0x00011039 rev=0x00 hdr=0x01
vendor = 'Silicon Integrated Systems (SiS)'
device = 'SiS 530 Virtual PCI-to-PCI bridge (AGP)'
class = bridge
subclass = PCI-PCI
none0 at pci0:9:0: class=0x020000 card=0x00201737 chip=0x212017fe rev=0x00 hdr=0x00
vendor = 'InProComm Inc'
class = network
subclass = ethernet
none1 at pci0:11:0: class=0x040000 card=0x00031002 chip=0x036e109e rev=0x11 hdr=0x00
vendor = 'Brooktree Corporation'
device = 'Bt878 MediaStream Controller'
class = multimedia
subclass = video
none2 at pci0:11:1: class=0x048000 card=0x00031002 chip=0x0878109e rev=0x11 hdr=0x00
vendor = 'Brooktree Corporation'
device = 'Bt878/Fusion878A Video Capture (Audio Section)'
class = multimedia
none3 at pci1:0:0: class=0x030000 card=0x7161174b chip=0x51571002 rev=0x00 hdr=0x00
vendor = 'ATI Technologies Inc.'
device = 'Radeon 7500 Series (RV200)'
class = display
subclass = VGA
[31m[root: root]#[00m dmesg
Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.2-CURRENT #1: Sun Jul 18 15:35:23 CDT 2004
root at home.samuelstringham.com:/usr/obj/usr/src/sys/MYKERNEL
WARNING: WITNESS option enabled, expect reduced performance.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Duron(tm) Processor (945.00-MHz 686-class CPU)
Origin = "AuthenticAMD" Id = 0x631 Stepping = 1
Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
AMD Features=0xc0440000<RSVD,AMIE,DSP,3DNow!>
real memory = 1073676288 (1023 MB)
avail memory = 1041203200 (992 MB)
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <AMIINT SiS730SX> on motherboard
acpi0: [GIANT-LOCKED]
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x5008-0x500b on acpi0
cpu0: <ACPI CPU (3 Cx states)> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <SiS 730 host to AGP bridge> mem 0xd0000000-0xd3ffffff at device 0.0 on pci0
atapci0: <SiS 730 UDMA100 controller> port 0xff00-0xff0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 0.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
sis0: <SiS 900 10/100BaseTX> port 0xd400-0xd4ff mem 0xcfffb000-0xcfffbfff irq 5 at device 1.1 on pci0
miibus0: <MII bus> on sis0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis0: Ethernet address: 00:0a:e6:4b:0c:4d
sis0: [GIANT-LOCKED]
ohci0: <SiS 5571 USB controller> mem 0xcfffc000-0xcfffcfff irq 11 at device 1.2 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: <SiS 5571 USB controller> on ohci0
usb0: USB revision 1.0
uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ums0: Logitech USB Receiver, rev 1.10/9.10, addr 2, iclass 3/1
ums0: 5 buttons and Z dir.
ohci1: <SiS 5571 USB controller> mem 0xcfffd000-0xcfffdfff irq 11 at device 1.3 on pci0
ohci1: [GIANT-LOCKED]
usb1: OHCI version 1.0, legacy support
usb1: <SiS 5571 USB controller> on ohci1
usb1: USB revision 1.0
uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
pcm0: <SiS 7018> port 0xd800-0xd8ff mem 0xcfffe000-0xcfffefff irq 11 at device 1.4 on pci0
pcm0: <C-Media Electronics CMI9738 AC97 Codec>
pcm0: [GIANT-LOCKED]
pcib1: <PCI-PCI bridge> at device 2.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
pci0: <network, ethernet> at device 9.0 (no driver attached)
pci0: <multimedia, video> at device 11.0 (no driver attached)
pci0: <multimedia> at device 11.1 (no driver attached)
acpi_button1: <Sleep Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
fdc0: <floppy drive controller> port 0x3f7,0x3f4-0x3f5,0x3f2-0x3f3 irq 6 drq 2 on acpi0
fdc0: I/O to control range incorrect
device_attach: fdc0 attach returned 6
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
ppc0 port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
fdc0: <floppy drive controller> port 0x3f7,0x3f4-0x3f5,0x3f2-0x3f3 irq 6 drq 2 on acpi0
fdc0: I/O to control range incorrect
device_attach: fdc0 attach returned 6
orm0: <ISA Option ROMs> at iomem 0xd0000-0xd7fff,0xc0000-0xcffff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 945003338 Hz quality 800
Timecounters tick every 10.000 msec
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
ata0-master: DMA limited to UDMA33, non-ATA66 cable or device
ad0: 57277MB <SAMSUNG SV6003H> [116374/16/63] at ata0-master UDMA33
ata1-slave: FAILURE - ATAPI_RESET no interrupt
acd0: CDRW <AOPEN CD-RW CRW2440> at ata1-slave PIO4
Mounting root from ufs:/dev/ad0s1a
WARNING: / was not properly dismounted
WARNING: /tmp was not properly dismounted
WARNING: /usr was not properly dismounted
/usr: mount pending error: blocks 4 files 1
WARNING: /var was not properly dismounted
link_elf: symbol callout_stop undefined
[31m[root: root]#[00m exit
exit
Script done on Sun Jul 18 21:17:44 2004
More information about the freebsd-current
mailing list