Date: Fri, 19 Jul 2002 14:44:43 +0400 From: "Vladimir B.Grebenschikov" <vova@sw.ru> To: FreeBSD-gnats-submit@FreeBSD.org Cc: imp@FreeBSD.org Subject: kern/40766: NEWCARD freeses system while card insertion Message-ID: <E17VVFb-0000Ez-00@vbook.express.ru>
next in thread | raw e-mail | index | archive | help
>Number: 40766 >Category: kern >Synopsis: NEWCARD freeses system while card insertion >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 19 03:50:06 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Vladimir B. Grebenschikov >Release: FreeBSD 5.0-CURRENT i386 >Organization: SWsoft >Environment: System: FreeBSD vbook.express.ru 5.0-CURRENT FreeBSD 5.0-CURRENT #4: Fri Jul 19 13:02:10 MSD 2002 root@vbook.express.ru:/usr/local/src/sys/i386/compile/VBOOK i386 Fresh -CURRENT, this night cvsup. Notebook SONY VAIO z505s ACPI enabled pccard part of dmesg output: pccbb0: <RF5C475 PCI-CardBus Bridge> at device 10.0 on pci0 cardbus0: <CardBus bus> on pccbb0 pccard0: <16-bit PCCard bus> on pccbb0 (see full dmesg -v at below) Cards tried: Lucent WaveLan Some ATA flash >Description: When I insert card into my notebook FreeBSD freeses, only DDB available stacktrace shows: Debugger(c031f9ef,4,1,0,1) at Debugger+0x58 scgetc(c38d8000,2,da879459,7ad12c1d,c38a37c0) at scgetc+0x454 sckbdevent(c0373ca0,0,c38d8000,c3831ab0,55) at sckbdevent+0x57 atkbd_intr(c0373ca0,0,cd4ffd04,c01c54ce,c0373ca0) at atkbd_intr+0xc1 atkbd_isa_intr(c0373ca0,0,0,0,c0d6a180) at atkbd_isa_intr+0x21 ithread_loop(c38c1000,cd4ffd48,0,0,0) at ithread_loop+0xbe fork_exit(c01c5410,c38c1000,cd4ffd48) at fork_exit+0x70 fork_trampoline() at fork_trampoline+0x1a and some stacktarces like this, all contains: ====================== <code leads to debugger call> ithread_loop fork_exit fork_trampoline ====================== If I boot with card inserted - I have working driver: pccbb0: <RF5C475 PCI-CardBus Bridge> at device 10.0 on pci0 cardbus0: <CardBus bus> on pccbb0 pccard0: <16-bit PCCard bus> on pccbb0 ... pccard0: CIS version PC Card Standard 5.0 pccard0: CIS info: Lucent Technologies, WaveLAN/IEEE, Version 01.01, pccard0: Manufacturer code 0x156, product 0x2 pccard0: function 0: network adapter, ccr addr 3e0 mask 1 pccard0: function 0, config table entry 1: I/O card; irq mask ffff; iomask 6, iospace 0-3f; rdybsy_active wp_active bvd_active io16 irqpulse irqlevel wi0: <WaveLAN/IEEE> at port 0x100-0x13f irq 9 function 0 config 1 on pccard0 wi0: 802.11 address: 00:02:2d:09:53:f6 wi0: using Lucent Technologies, WaveLAN/IEEE wi0: Lucent Firmware: Station 6.06.01 wi0: wi_has_wep = 1 Removing card - lead to exactly same situation as inserting - no any response Note: with OLDCARD I have seen similar behaviour (can get card working only if card preinserted). Any suggestions ? >How-To-Repeat: Insert any pccard into SONY VAIO z505s with CURRENT dated 19/07/2002 >Fix: do not know Full dmesg output (card was not inserted while boot): Copyright (c) 1992-2002 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.0-CURRENT #4: Fri Jul 19 13:02:10 MSD 2002 root@vbook.express.ru:/usr/local/src/sys/i386/compile/VBOOK Preloaded elf kernel "/boot/kernel/kernel" at 0xc0493000. Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc04930b4. Preloaded elf module "/boot/kernel/snd_neomagic.ko" at 0xc0493160. Preloaded elf module "/boot/kernel/ukbd.ko" at 0xc0493214. Preloaded elf module "/boot/kernel/usb.ko" at 0xc04932c0. Preloaded elf module "/boot/kernel/ums.ko" at 0xc0493368. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0493410. Calibrating clock(s) ... TSC clock: 331562419 Hz, i8254 clock: 1193123 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency Timecounter "i8254" frequency 1193182 Hz CLK_USE_TSC_CALIBRATION not specified - using old calibration method Timecounter "TSC" frequency 331580673 Hz CPU: Pentium II/Pentium II Xeon/Celeron (331.58-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x66a Stepping = 10 Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PA T,PSE36,MMX,FXSR> real memory = 201261056 (196544K bytes) Physical memory chunk(s): 0x00001000 - 0x0009efff, 647168 bytes (158 pages) 0x004ba000 - 0x0bfe7fff, 196272128 bytes (47918 pages) avail memory = 189980672 (185528K bytes) bios32: Found BIOS32 Service Directory header at 0xc00f6c40 bios32: Entry = 0xfd7c0 (c00fd7c0) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0xfd7c0+0x214 pnpbios: Found PnP BIOS data at 0xc00f6c70 pnpbios: Entry = f0000:b5cb Rev = 1.0 Other BIOS signatures found: random: <entropy source> mem: <memory & I/O> Pentium Pro MTRR support enabled null: <null device, zero device> pci_open(1): mode 1 addr port (0x0cf8) is 0x80003ac0 pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=71928086) Using $PIR table, 7 entries at 0xc00fdf50 npx0: <math processor> on motherboard npx0: INT 16 interface acpi0: <PTLTD RSDT > on motherboard acpi0: power button is handled as a fixed feature programming model. ACPI timer looks BAD min = 2, max = 7, width = 6 ACPI timer looks BAD min = 2, max = 8, width = 7 ACPI timer looks BAD min = 2, max = 9, width = 8 ACPI timer looks BAD min = 2, max = 9, width = 8 ACPI timer looks BAD min = 2, max = 8, width = 7 ACPI timer looks BAD min = 2, max = 11, width = 10 ACPI timer looks BAD min = 2, max = 9, width = 8 ACPI timer looks BAD min = 2, max = 8, width = 7 ACPI timer looks BAD min = 2, max = 8, width = 7 ACPI timer looks BAD min = 2, max = 8, width = 7 Timecounter "ACPI-safe" frequency 3579545 Hz acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0 acpi_cpu0: <CPU> on acpi0 acpi_tz0: <thermal zone> on acpi0 acpi_button0: <Power Button> on acpi0 acpi_pcib0: <Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: physical bus=0 map[10]: type 3, range 32, base 00000000, size 26, enabled found-> vendor=0x8086, dev=0x7192, revid=0x03 bus=0, slot=0, func=0 class=06-00-00, hdrtype=0x00, mfdev=0 map[10]: type 1, range 32, base fedef000, size 12, enabled map[14]: type 4, range 32, base 0000fcc0, size 6, enabled map[18]: type 1, range 32, base fec00000, size 20, enabled found-> vendor=0x8086, dev=0x1229, revid=0x08 bus=0, slot=6, func=0 class=02-00-00, hdrtype=0x00, mfdev=0 intpin=a, irq=9 powerspec 2 supports D0 D1 D2 D3 current D0 found-> vendor=0x8086, dev=0x7110, revid=0x02 bus=0, slot=7, func=0 class=06-80-00, hdrtype=0x00, mfdev=1 map[20]: type 4, range 32, base 0000fc90, size 4, enabled found-> vendor=0x8086, dev=0x7111, revid=0x01 bus=0, slot=7, func=1 class=01-01-80, hdrtype=0x00, mfdev=0 map[20]: type 4, range 32, base 0000fca0, size 5, enabled found-> vendor=0x8086, dev=0x7112, revid=0x01 bus=0, slot=7, func=2 class=0c-03-00, hdrtype=0x00, mfdev=0 intpin=d, irq=9 map[90]: type 4, range 32, base 00002180, size 4, enabled found-> vendor=0x8086, dev=0x7113, revid=0x02 bus=0, slot=7, func=3 class=06-80-00, hdrtype=0x00, mfdev=0 map[10]: type 3, range 32, base fd000000, size 24, enabled map[14]: type 1, range 32, base fe400000, size 22, enabled map[18]: type 1, range 32, base feb00000, size 20, enabled found-> vendor=0x10c8, dev=0x0005, revid=0x20 bus=0, slot=8, func=0 class=03-00-00, hdrtype=0x00, mfdev=1 intpin=a, irq=9 powerspec 1 supports D0 D1 D2 D3 current D0 map[10]: type 3, range 32, base fe000000, size 22, enabled map[14]: type 1, range 32, base fea00000, size 20, enabled found-> vendor=0x10c8, dev=0x8005, revid=0x20 bus=0, slot=8, func=1 class=04-01-00, hdrtype=0x00, mfdev=1 intpin=b, irq=9 powerspec 1 supports D0 D3 current D0 map[10]: type 1, range 32, base fedeec00, size 9, enabled found-> vendor=0x104d, dev=0x8009, revid=0x01 bus=0, slot=9, func=0 class=0c-00-00, hdrtype=0x00, mfdev=0 intpin=a, irq=9 powerspec 1 supports D0 D3 current D0 found-> vendor=0x1180, dev=0x0475, revid=0x00 bus=0, slot=10, func=0 class=06-07-00, hdrtype=0x02, mfdev=0 intpin=a, irq=255 powerspec 1 supports D0 D1 D2 D3 current D0 map[10]: type 1, range 32, base fedf0000, size 16, enabled map[14]: type 4, range 32, base 0000fc88, size 3, enabled found-> vendor=0x127a, dev=0x2005, revid=0x01 bus=0, slot=11, func=0 class=07-80-00, hdrtype=0x00, mfdev=0 intpin=a, irq=9 powerspec 2 supports D0 D3 current D3 pci0: <PCI bus> on acpi_pcib0 pci0: <network, ethernet> at device 6.0 (no driver attached) PCI-ISA bridge with incorrect subclass 0x80 PCI-ISA bridge with incorrect subclass 0x80 isab0: <PCI-ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel PIIX4 ATA33 controller> port 0xfc90-0xfc9f at device 7.1 on pci0 ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xfc90 ata0: mask=03 ostat0=50 ostat2=00 ata0-master: ATAPI 00 00 ata0-slave: ATAPI 00 00 ata0: mask=03 stat0=50 stat1=00 ata0-master: ATA 01 a5 ata0: devices=01 ata0: at 0x1f0 irq 14 on atapci0 ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xfc98 ata1: mask=03 ostat0=50 ostat2=50 ata1-master: ATAPI 00 00 ata1-slave: ATAPI 00 00 ata1: mask=03 stat0=50 stat1=50 ata1-master: ATA 01 a5 ata1-slave: ATA 01 a5 ata1: devices=03 ata1: at 0x170 irq 15 on atapci0 uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xfca0-0xfcbf irq 9 at dev ice 7.2 on pci0 usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered intpm0: <Intel 82371AB Power management controller> port 0x2180-0x218f irq 9 at device 7.3 on pci0 intpm0: I/O mapped 2180 intpm0: intr IRQ 9 enabled revision 0 smbus0: <System Management Bus> on intsmb0 smb0: <SMBus generic I/O> on smbus0 intpm0: PM I/O mapped 8000 pci0: <display, VGA> at device 8.0 (no driver attached) pcm0: <NeoMagic 256AV> mem 0xfea00000-0xfeafffff,0xfe000000-0xfe3fffff irq 9 at device 8.1 on pci0 pcm0: buftop is 0x0027ec00 pcm0: buftop is changed to 0x0027ec00 pcm0: ac97 codec id 0x414b4d01 (Asahi Kasei AK4542) pcm0: ac97 codec features headphone, 5 bit master volume, AKM 3D Audio pcm0: rec buf 0xce9ffc00 pcm0: play buf 0xce9fbc00 pci0: <serial bus, FireWire> at device 9.0 (no driver attached) pccbb0: <RF5C475 PCI-CardBus Bridge> at device 10.0 on pci0 cardbus0: <CardBus bus> on pccbb0 pccard0: <16-bit PCCard bus> on pccbb0 acpi_pcib0: matched entry for 0.10.INTA (source \\_SB_.LNKB) acpi_pcib0: device is routed to IRQ 9 pci0: <simple comms> at device 11.0 (no driver attached) atspeaker0 port 0x61 on acpi0 atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 atkbd: the current kbd controller command byte 0047 atkbd: keyboard ID 0x41ab (2) kbd0 at atkbd0 kbd0: atkbd0, AT 101/102 (2), config:0x1, flags:0x1d0000 psm0: unable to allocate IRQ psmcpnp0 irq 12 on acpi0 psm0: current command byte:0047 psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: model GlidePoint, device ID 0-00, 2 buttons psm0: config:00000000, flags:00000000, packet size:3 psm0: syncmask:c0, syncbits:00 sio0: irq maps: 0x1 0x11 0x1 0x1 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A, console sio1: irq maps: 0x1 0x401 0x1 0x1 sio1 port 0x140-0x147,0x3e8-0x3ef irq 10 drq 0 on acpi0 sio1: type 16550A unknown: not probed (disabled) unknown: not probed (disabled) ppc0: using extended I/O port range ppc0: ECP SPP ECP+EPP SPP ppc0 port 0x778-0x77f,0x378-0x37f irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold plip0: <PLIP network interface> on ppbus0 bpf: lp0 attached lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 vpo0: can't connect to the drive imm0: (disconnect) s1=0x38 s2=0x38, s3=0x38 imm0: (connect) s1=0x38 s2=0x38, s3=0x38 imm0: (connect) s1=0x38 s2=0x38, s3=0x38 imm0: (connect) s1=0x38 s2=0x38, s3=0x38 unknown: not probed (disabled) acpi_cmbat0: <Control method Battery> on acpi0 acpi_acad0: <AC adapter> on acpi0 unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) ata: ata0 already exists; skipping it ata: ata1 already exists; skipping it atkbdc: atkbdc0 already exists; skipping it ppc: ppc0 already exists; skipping it sc: sc0 already exists; skipping it sio: sio0 already exists; skipping it sio: sio1 already exists; skipping it vga: vga0 already exists; skipping it Trying Read_Port at 203 Trying Read_Port at 243 Trying Read_Port at 283 Trying Read_Port at 2c3 Trying Read_Port at 303 Trying Read_Port at 343 Trying Read_Port at 383 Trying Read_Port at 3c3 isa_probe_children: disabling PnP devices isa_probe_children: probing non-PnP devices orm0: <Option ROMs> at iomem 0xdc000-0xdffff,0xc0000-0xcbfff on isa0 sc0: <System console> on isa0 sc0: VGA <16 virtual consoles, flags=0x0> sc0: fb0, kbd0, terminal emulator: sc (syscons terminal) vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 fb0: vga0, vga, type:VGA (5), flags:0x7007f fb0: port:0x3c0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000 fb0: init mode:24, bios mode:3, current mode:24 fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k VGA parameters upon power-up 50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 07 80 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff VGA parameters in BIOS for mode 24 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff EGA/VGA parameters to be used for mode 24 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff fdc0 failed to probe at port 0x3f0 irq 6 drq 2 on isa0 pcic0 failed to probe at port 0x3e0 iomem 0xd0000 irq 10 on isa0 pmtimer0 on isa0 vt0 failed to probe on isa0 isa_probe_children: probing PnP devices BIOS Geometries: 0:03feef3f 0..1022=1023 cylinders, 0..239=240 heads, 1..63=63 sectors 0 accounted for Device configuration finished. procfs registered Timecounters tick every 10.000 msec bpf: lo0 attached DUMMYNET initialized (011031) IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to deny, logging logging unlimited acpi_cpu0: set speed to 100.0% acpi_cpu: CPU throttling enabled, 8 steps from 100% to 12.5% acpi_acad0: On Line ata1-slave: timeout waiting for interrupt ata1-slave: ATA identify failed ad0: success setting UDMA2 on Intel chip Creating DISK ad0 ar: FreeBSD check1 failed ad0: <IC25N020ATDA04-0/DA3OA70A> ATA-5 disk at ata0-master ad0: 19077MB (39070080 sectors), 38760 C, 16 H, 63 S, 512 B ad0: 16 secs/int, 1 depth queue, UDMA33 ad0: piomode=4 dmamode=2 udmamode=5 cblid=1 ad1: success setting PIO1 on generic chip Creating DISK ad1 ar: FreeBSD check1 failed ad1: <MEMORYSTICK 4M 8K/SONY1.00> ATA-0 disk at ata1-master ad1: 3MB (7904 sectors), 247 C, 2 H, 16 S, 512 B ad1: 1 secs/int, 1 depth queue, PIO1 ad1: piomode=1 dmamode=-1 udmamode=-1 cblid=0 Mounting root from ufs:/dev/ad0s2a ad0s1: type 0xb, start 63, end = 8376479, size 8376417 : OK ad0s2: type 0xa5, start 8388576, end = 16777151, size 8388576 ad0s2: C/H/S end 1023/143/63 (15476831) != end 16777151: invalid ad0s3: type 0xa0, start 16777152, end = 17191439, size 414288 : OK ad0s4: type 0xa5, start 17200512, end = 39070079, size 21869568 : OK WARNING: / was not properly dismounted start_init: trying /sbin/init # output of 'devlist -r' card was inserted while boot: nexus0 npx0 pcib0 acpi0 Interrupt request lines: 9 acpi_timer0 I/O ports: 0x8008-0x800b acpi_cpu0 I/O ports: 0x8010-0x8015 acpi_tz0 acpi_button0 acpi_pcib0 pci0 hostb0 fxp0 I/O memory addresses: 0xfedef000-0xfedeffff miibus0 inphy0 isab0 isa0 sc0 vga0 I/O ports: 0x3c0-0x3df I/O memory addresses: 0xa0000-0xbffff fdc0 pcic0 pmtimer0 vt0 orm0 I/O memory addresses: 0xc0000-0xcbfff 0xdc000-0xdffff atapci0 ata0 Interrupt request lines: 14 I/O ports: 0x1f0-0x1f7 0x3f6 0xfc90-0xfc97 ata1 Interrupt request lines: 15 I/O ports: 0x170-0x177 0x376 0xfc98-0xfc9f uhci0 I/O ports: 0xfca0-0xfcbf usb0 uhub0 uhub1 ums0 ukbd0 ums1 intpm0 I/O ports: 0x2180-0x218f intsmb0 smbus0 smb0 pcm0 I/O memory addresses: 0xfe000000-0xfe3fffff 0xfea00000-0xfeafffff pccbb0 I/O memory addresses: 0x84000000-0x84000fff cardbus0 pccard0 I/O memory addresses: 0x84001000-0x840013ff wi0 I/O ports: 0x100-0x13f acpi_sysresource0 I/O ports: 0x72-0x73 0x80 0xb2-0xb3 0x4d0-0x4d1 0x8016-0x8065 atdma0 attimer0 atpic0 npxisa0 attimer1 atspeaker0 atkbdc0 I/O ports: 0x60 0x64 atkbd0 Interrupt request lines: 1 psm0 Interrupt request lines: 12 psmcpnp0 acpi_cmbat0 acpi_acad0 sio0 Interrupt request lines: 4 I/O ports: 0x3f8-0x3ff sio1 Interrupt request lines: 10 I/O ports: 0x3e8-0x3ef ppc0 Interrupt request lines: 7 DMA request lines: 3 I/O ports: 0x378-0x37f ppbus0 plip0 lpbb0 lpt0 ppi0 vpo0 eisa0 mca0 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E17VVFb-0000Ez-00>