kernel/5239: pcmcia panic on lenovo thinkpad x60s

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

kernel/5239: pcmcia panic on lenovo thinkpad x60s

didier-3
>Number:         5239
>Category:       kernel
>Synopsis:       inserting a pcmcia card results in a panic
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    bugs
>State:          open
>Quarter:        
>Keywords:      
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 20 07:20:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Didier Wiroth
>Release:        current (upcoming 4.0)
>Organization:
net
>Environment:
        <lenovo thinkpad x60s, current, target, libraries (multiple lines)>
        System      : OpenBSD 4.0
        Architecture: OpenBSD.i386
        Machine     : i386
>Description:
It is not possible to use pcmcia cards on this laptop. When inserting a pcmcia card
the laptop panics. I tried different cards from different vendors, all result in a
panic.

>How-To-Repeat:
Rebooting after panic, leaving the pcmcia card in the slot results in a new panic.
You have to eject the pcmcia card to be able to use the laptop.
Re-inserting the card afterwards results in a new panic.

Here is the panic on pcmcia card insertion:

# panic: pmap_remove_pte: managed page without PG_PVLIST for 0xebb68000
Stopped at      Debugger+0x4:   leave
RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
ddb> show panic
pmap_remove_pte: managed page without PG_PVLIST for 0xebb68000
ddb> show registers
ds                  0x10
es            0xd0200010        kernel_text+0x10
fs            0xeb950058
gs            0xeb950010
edi           0xd0683100        i386_cpuid_ecxfeatures+0x680
esi           0xeb95ea18
ebp           0xeb95e9ec
ebx                    0
edx                    0
ecx           0xd0716864        kprintf_mutex
eax                  0x1
eip           0xd04566f0        Debugger+0x4
cs                   0x8
eflags             0x202
esp           0xeb95e9ec
ss            0xeb950010
Debugger+0x4:   leave
ddb> ps
   PID   PPID   PGRP    UID  S       FLAGS  WAIT       COMMAND
 19734      1  19734      0  3      0x4086  ttyin      sh
    18      0      0      0  3    0x100204  crypto_wa  crypto
    17      0      0      0  3    0x100204  aiodoned   aiodoned
    16      0      0      0  2    0x100204             update
    15      0      0      0  3    0x100204  cleaner    cleaner
    14      0      0      0  3    0x100204  reaper     reaper
    13      0      0      0  3    0x100204  pgdaemon   pagedaemon
    12      0      0      0  2    0x100604             pfpurge
    11      0      0      0  3    0x100204  wait       wskbd_hotkey
*   10      0      0      0  7    0x100204             cardslot0
     9      0      0      0  3    0x100204  mmctsk     sdmmc0
     8      0      0      0  3    0x100204  usbevt     usb4
     7      0      0      0  3    0x100204  usbevt     usb3
     6      0      0      0  3    0x100204  usbevt     usb2
     5      0      0      0  3    0x100204  usbevt     usb1
     4      0      0      0  3    0x100204  usbtsk     usbtask
     3      0      0      0  3    0x100204  usbevt     usb0
     2      0      0      0  3    0x100204  kmalloc    kmthread
     1      0      1      0  3      0x4084  wait       init
     0     -1      0      0  3     0x80204  scheduler  swapper
ddb> trace
Debugger(7f66713b,ebb68000,d0787200,1,3) at Debugger+0x4
panic(d0683100,ebb68000,7f66713b,eb95eaa4,0) at panic+0x63
pmap_remove_pte_86(d0787200,0,cfbaeda0,ebb68000,eb95eaa4,d075e960,eb95eabc,d042
6330) at pmap_remove_pte_86+0x11b
pmap_remove_86(d0787200,ebb68000,ebb69000,1,d074920c) at pmap_remove_86+0x33d
uvm_unmap_remove(d07491e0,ebb68000,ebb69000,eb95eb1c,0,10022,d0749284,eb95eb64)
 at uvm_unmap_remove+0x110
uvm_unmap_p(d07491e0,ebb68000,ebb69000,0,ebb68000) at uvm_unmap_p+0x8f
uvm_km_free(d07491e0,ebb68000,1000,1000) at uvm_km_free+0x2a
_bus_space_unmap(1,ebb68000,1000,eb95eb9c,d2b800b8) at _bus_space_unmap+0xb2
rbus_space_free(d2b7fec0,ebb68000,1000,0,0) at rbus_space_free+0x49
pccbb_pcmcia_mem_free(d2b800b8,eb95ee34,eb95ec70,1,0) at pccbb_pcmcia_mem_free+
0x1e
pcmcia_scan_cis(d2b86e00,d05df7d4,eb95ee84,2a) at pcmcia_scan_cis+0x4d8
pcmcia_read_cis(d2b86e00,0,0,d08166d4,0) at pcmcia_read_cis+0x9b
pcmcia_card_attach(d2b86e00,0,0,eb95d000) at pcmcia_card_attach+0x27
cardslot_event_throw(d2b82800) at cardslot_event_throw+0x1d4
Bad frame pointer: 0xd089ee78

@LOCALHOST:~# dmesg
OpenBSD 4.0 (GENERIC) #1107: Sat Sep 16 19:15:58 MDT 2006
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Genuine Intel(R) CPU L2400 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,D
S,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130a2206000a22
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 1667 MHz (1244 mV): speeds: 1667, 1000 MHz
real mem  = 2137419776 (2087324K)
avail mem = 1941614592 (1896108K)
using 4256 buffers containing 106975232 bytes (104468K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(4a) BIOS, date 05/23/06, BIOS32 rev. 0 @ 0xfd690, SMB
IOS rev. 2.4 @ 0xe0010 (67 entries)
bios0: LENOVO 17025PG
pcibios0 at bios0: rev 2.1 @ 0xfd620/0x9e0
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdea0/272 (15 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #22 is the last bus
bios0: ROM list: 0xc0000/0xe400! 0xce800/0x1000 0xcf800/0x1000 0xdc000/0x4000! 0
xe0000/0x10000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GM MCH" rev 0x03
vga1 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03: aperture at 0xee10
0000, size 0x10000000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: irq 11
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: Analog Devices AD1981HD (rev. 2.0), HDA version 1.0
azalia0: codec: 0x04x/0x14f1 (rev. 0.0), HDA version 0.9
azalia0: codec[1]: No support for modem function groups
azalia0: codec[1]: No audio function groups
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02
pci1 at ppb0 bus 2
em0 at pci1 dev 0 function 0 "Intel PRO/1000MT (82573L)" rev 0x00: irq 11, addre
ss 00:16:d3:21:4b:b6
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02
pci2 at ppb1 bus 3
wpi0 at pci2 dev 0 function 0 "Intel PRO/Wireless 3945ABG" rev 0x02: irq 11, add
ress 00:13:02:16:27:0f
ppb2 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02
pci3 at ppb2 bus 4
ppb3 at pci0 dev 28 function 3 "Intel 82801GB PCIE" rev 0x02
pci4 at ppb3 bus 12
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: irq 11
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: irq 11
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: irq 11
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb4 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
pci5 at ppb4 bus 21
cbb0 at pci5 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0xb4: irq 11
"Ricoh 5C552 Firewire" rev 0x09 at pci5 dev 0 function 1 not configured
sdhc0 at pci5 dev 0 function 2 "Ricoh 5C822 SD/MMC" rev 0x18: irq 11
sdmmc0 at sdhc0
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 22 device 0 cacheline 0x0, lattimer 0xb0
pcmcia0 at cardslot0
ichpcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x02: PM disabled
pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x02: DMA, channel 0 c
onfigured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <MATSHITA, DVD-RAM UJ-842, RB01> SCSI0 5/cdrom rem
ovable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
pciide1 at pci0 dev 31 function 2 "Intel 82801GBM AHCI SATA" rev 0x02: DMA, chan
nel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide1: using irq 11 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <HTS541010G9SA00>
wd0: 16-sector PIO, LBA48, 95396MB, 195371568 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x02: irq 11
iic0 at ichiic0
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt2 at isa0 port 0x3bc/4: polled
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
biomask efed netmask efed ttymask ffef
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
uhub5 at uhub4 port 6
uhub5: vendor 0x17ef product 0x1000, rev 2.00/0.01, addr 2
uhub5: 4 ports with 4 removable, self powered, multiple transaction translators
ugen0 at uhub3 port 2
ugen0: STMicroelectronics Biometric Coprocessor, rev 1.00/0.01, addr 2
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted: