pcmcia panic on thinkpad x60s, 4.1-beta and previous versions

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

pcmcia panic on thinkpad x60s, 4.1-beta and previous versions

Didier Wiroth
Hello,

PCMCIA trouble on thinkpad x60s and 4.1-BETA and *all* previous versions.
The pcmcia card slot is not usable as it always results in panics.

This bug reporting is related to a previous submission:
PR5239
I decided to resubmit it as it was made some time ago.

I'm inserting the pcmcia card:
# ohci0 at cardbus0 dev 0 function 0 "Opti 82C861" rev 0x10: irq 11,
version 0.0
ohci0: unsupported OHCI revision
ohci0: init failed, error=4

Here is the panic while removing the pcmcia card:
# panic: pmap_remove_pte: managed page without PG_PVLIST for 0xebafd000
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>

Trace output:
ddb> trace
Debugger(7f66717b,ebafd000,d0796280,2b6d,7cafa) at Debugger+0x4
panic(d069fce0,ebafd000,7f66717b,eb8f1d68,d07578e0) at panic+0x63
pmap_remove_pte(d0796280,0,cffaebf4,ebafd000,eb8f1d68,da415058,eb8f1d7c,d0430b1
6) at pmap_remove_pte+0xea
pmap_remove(d0796280,ebafd000,ebafe000,1,d075790c) at pmap_remove+0x2c4
uvm_unmap_remove(d07578e0,ebafd000,ebafe000,eb8f1ddc,0,10022,d0757984,ebafd000)
 at uvm_unmap_remove+0x10f
uvm_unmap_p(d07578e0,ebafd000,ebafe000,0,ebafe000) at uvm_unmap_p+0x8f
uvm_km_free(d07578e0,ebafd000,1000,1000) at uvm_km_free+0x2a
_bus_space_unmap(1,ebafd000,1000,eb8f1e5c,80160000) at _bus_space_unmap+0x93
rbus_space_free(d29d0d00,ebafd000,1000,0,d02024ed) at rbus_space_free+0x49
cardbus_mapreg_unmap(d29dad80,0,10,1,ebafd000) at cardbus_mapreg_unmap+0x5b
ohci_cardbus_detach(d2af8000,0,10,5af81,d0777220) at
ohci_cardbus_detach+0x65
config_detach(d2af8000,0,0,d29dae00) at config_detach+0x218
cardbus_detach_card(d29dad80,7f,0,eb8f0000,da427de8) at
cardbus_detach_card+0x2
d
cardslot_event_throw(d29dae00) at cardslot_event_throw+0x12c
Bad frame pointer: 0xd08aee78

PS output:
ddb> ps
   PID   PPID   PGRP    UID  S       FLAGS  WAIT       COMMAND
 20684      1  20684      0  3      0x4082  ttyin      sh
    20      0      0      0  3    0x100200  crypto_wa  crypto
    19      0      0      0  3    0x100200  aiodoned   aiodoned
    18      0      0      0  3    0x100200  syncer     update
    17      0      0      0  3    0x100200  cleaner    cleaner
    16      0      0      0  3    0x100200  reaper     reaper
    15      0      0      0  3    0x100200  pgdaemon   pagedaemon
    14      0      0      0  3    0x100200  pftm       pfpurge
    13      0      0      0  3    0x100200  wait       wskbd_hotkey
    12      0      0      0  3    0x100200  slacking   scsi
*   11      0      0      0  7    0x100200             cardslot0
    10      0      0      0  3    0x100200  mmctsk     sdmmc0
     9      0      0      0  3    0x100200  usbevt     usb4
     8      0      0      0  3    0x100200  usbevt     usb3
     7      0      0      0  3    0x100200  usbevt     usb2
     6      0      0      0  3    0x100200  usbevt     usb1
     5      0      0      0  3    0x100200  usbtsk     usbtask
     4      0      0      0  3    0x100200  usbevt     usb0
     3      0      0      0  3    0x100200  acpi_idle  acpi0
     2      0      0      0  3    0x100200  kmalloc    kmthread
     1      0      1      0  3      0x4080  wait       init
     0     -1      0      0  3     0x80200  scheduler  swapper

SHOW REGISTERS output:
ddb> show registers
ds                  0x10
es            0xd0200010        kernel_text+0x10
fs            0xeb8f0058
gs            0xeb8f0010
edi           0xd069fce0        i386_cpuid_ecxfeatures+0x860
esi           0xeb8f1d08
ebp           0xeb8f1cdc
ebx                    0
edx                    0
ecx           0xd0739964        kprintf_mutex
eax                  0x1
eip           0xd0460dfc        Debugger+0x4
cs                   0x8
eflags             0x202
esp           0xeb8f1cdc
ss            0xeb8f0010
Debugger+0x4:   leave

Here is a kernel output with acpi enabled.
The panic also happens with acpi disabled, so I don't think it is
related to acpi!

Here is the dmesg:
boot> boot bsd
booting hd0a:bsd: 5575028+871164 [52+284400+264625]=0x6abebc
entry point at 0x200120*
[ using 549452 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2007 OpenBSD. All rights reserved.  
http://www.OpenBSD.org

OpenBSD 4.1-beta (GENERIC) #1: Wed Feb 21 13:21:51 CET 2007
   
[hidden email]:/home/sources/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,xTPR
real mem  = 8964990453575680 (3499204608K)
avail mem = 8151660892753920 (3499204608K)
using 4278 buffers containing 106995712 bytes (104488K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 11/17/06, BIOS32 rev. 0 @ 0xfd690,
SMBIOS
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/0xea00! 0xcf000/0x1000 0xd0000/0x1000
0xdc000/0x4000! 0
xe0000/0x10000!
acpi0 at mainbus0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT SSDT SSDT
SSDT SSDT
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpi device at acpi0 from table DSDT not configured
acpi device at acpi0 from table FACP not configured
acpi device at acpi0 from table SSDT not configured
acpi device at acpi0 from table ECDT not configured
acpi device at acpi0 from table TCPA not configured
acpi device at acpi0 from table APIC not configured
acpi device at acpi0 from table MCFG not configured
acpihpet0 at acpi0 table HPET: 14318179 Hz
acpi device at acpi0 from table BOOT not configured
acpi device at acpi0 from table SSDT not configured
acpi device at acpi0 from table SSDT not configured
acpi device at acpi0 from table SSDT not configured
acpi device at acpi0 from table SSDT not configured
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 0 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 12 (EXP3)
acpiprt6 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0: EC__
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0: model: 93P5030 serial:  4732 type: LION oem: SONY
acpibat1 at acpi0: BAT1: not present
acpibat2 at acpi0: BAT2: not present
acpiac0 at acpi0: AC unit online
acpidock0 at acpi0: GDCK: docked (15)
acpitz0 at acpi0, critical temperature: 127 degC
acpitz1 at acpi0, critical temperature: 97 degC
cpu0 at mainbus0
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
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: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
biomask eded netmask eded 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
Automatic boot in progress: starting file system checks.
/dev/rwd0a: file system is clean; not checking
/dev/rwd0i: file system is clean; not checking
/dev/rwd0h: file system is clean; not checking
/dev/rwd0e: file system is clean; not checking
/dev/rwd0f: file system is clean; not checking
/dev/rwd0g: file system is clean; not checking
/dev/rwd0d: file system is clean; not checking
setting tty flags
kbd: keyboard mapping set to sf
machdep.allowaperture: 0 -> 2
starting network
DHCPREQUEST on em0 to 255.255.255.255 port 67
DHCPREQUEST on em0 to 255.255.255.255 port 67
DHCPACK from X
bound to Y -- renewal in 21600 seconds.
starting system logger
starting initial daemons:.
savecore: no core dump
checking quotas: done.
building ps databases: kvm dev.
clearing /tmp
starting pre-securelevel daemons:.
setting kernel security level: kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files
starting network daemons: sendmail inetd sshd.
starting local daemons:.
standard daemons: apmd cron.
Wed Feb 21 16:33:38 CET 2007

OpenBSD/i386 (lenovo.internal.local) (tty00)